16
3.2.
IP Address Configuration
Configure the IP address settings of this switch in "Interface configuration mode."
Confirm the configuration information by entering "show ip conf" in "Privileged
mode."
IP address configuration command
Global configuration mode
ip address
<ip-address> <mask> [<default-gateway>]
Default gateway configuration command
Global configuration mode
ip default-gateway <ip-address>
DHCP client configuration command
Global configuration mode
ip address dhcp
DHCP address reacquisition command
Global configuration mode
ip address renew
DHCP client configuration disable command
Global configuration mode
no ip address dhcp
IP address display command
Privileged mode
show ip conf
Example 1: Configuration example of IP address as 192.168.0.1, subnet mask as
255.255.255.0, and default gateway as 192.168.0.254
M> enable
M# configure
M(config)# ip address 192.168.0.1 255.255.255.0
M(config)# ip default-gateway 192.168.0.254
M(config)# end
M# show ip conf
MAC Address : xx:xx:xx:xx:xx:xx
IP Address : 192.168.0.1
Subnet Mask : 255.255.255.0
Default Gateway : 192.168.0.254
DHCP Mode : Disabled
M#
Fig. 3-2 Display of the IP address configuration
(show ip conf)