System information

3-42
Command Line Interface
3
DHCP requires the server to reassign the client’s last address if available.
If the BOOTP or DHCP server has been moved to a different domain, the
network portion of the address provided to the client will be based on this new
domain.
Example
In the following example, the device is reassigned the same address.
Related Commands
ip address (3-43)
IP Interface Commands
There are no IP addresses assigned to this switch by default. You must manually
configure a new address to manage the switch over your network or to connect the
switch to existing IP subnets. You may also need to a establish a default gateway
between this device and management stations or other devices that exist on another
network segment.
Basic IP Configuration
Console(config)#interface vlan 1
Console(config-if)#ip address dhcp
Console(config-if)#end
Console#ip dhcp restart
Console#show ip interface
IP address and netmask: 192.168.1.54 255.255.255.0 on VLAN 1,
and address mode: DHCP.
Console#
Table 3-19. IP Interface Commands
Command Function Mode Page
ip address Sets the IP address for the current interface IC 3-43
ip default-gateway Defines the default gateway through which an in-band
management station can reach this device
GC 3-44
show ip interface Displays the IP settings for this device PE 3-44
show ip redirects Displays the default gateway configured for this device PE 3-45
ping Sends ICMP echo request packets to another node on the
network
NE, PE 3-45