Chapter 12: IP Management Commands
204 Section III: Layer 2 Switching
SET IP
Syntax
set ip [ipaddress=
ip_address
|dhcp] [mask=
subnet_mask
]
[gateway=
ip_address
] [directedbroadcast=yes|no|on|off]
Parameters
ipaddress
Assigns an IPv4 address to the VLAN interface statically or
dynamically.
dhcp
Specifies DHCP to assign an IPv4 address.
mask
Specifies the subnet mask of the IPv4 address.
gateway
Specifies the IPv4 address of the gateway.
ip_address
Specifies an IPv4 address.
directedbroadcast
Specifies whether the interface responds to the directed broadcast
ping. By default is no.
yes, on
Specifies the interface responds to the directed broadcast ping.
no, off
Specifies the interface does not respond to the directed broadcast
ping.
Description
Use this command to change the IP settings.
Confirmation Command
“SHOW IP” on page 206
Example
The following command changes the IP address to 192.168.1.6/24 and
the gateway to 192.168.1.254: