set interface-alias
Description
Configure the settings for an alias IP.
Syntax
set interface-alias <name> [ ipv4-address <ipv4-address> ] [ { mask-length <mask-length> | subnet-mask <subnet-mask> } ] [ state <state> ] |
Parameters
Parameter |
Description |
---|---|
ipv4 address |
Enter the IP address of the interface Type: IP address |
mask-length |
Represents the network’s mask length Type: A string that contains numbers only |
name |
Network name Type: A string that contains [A-Z], [0-9], ’_’, ’.’, ’-’ and ’/’ characters |
state |
The mode of the network - enabled or disabled Options: on, off |
subnet-mask |
The subnet mask of the specified network Type: A subnet mask, or 255.255.255.255 |
Example
set interface-alias My_Network ipv4-address 192.168.1.1 mask-length 20 state on |