CLI Commands
The following table summarizes the equivalent CLI commands for items in the Switch/IP Address page.
Command
ip address {ip-address netmask |
bootp | dhcp}
ip default-gateway gateway
show ip interface
show ip redirects
Example
Console(config)#interface vlan 1
Console(config-if)#ip address 192.168.1.5 255.255.255.0
Console(config-if)#exit
Console(config)#ip default-gateway 192.168.1.254
Console(config)#
DHCP
In the DHCP page, click Restart DHCP to release the current IP address and obtain a new one through DHCP.
NOTICE:
If Restart DHCP is selected when IP settings have been configured statically, a warning message indicating that the IP Address Mode is not
set to DHCP displays.
Usage
Sets the primary IP address for this device. Use the no form command to remove the IP address, or to disable IP
address assignment through BOOTP or DHCP.
Establishes a static route between the switch and management stations that exist on another network segment.
Displays the usability status of an IP interface.
Shows the default gateway configured for this device.