9.IP Commands
An IP address may be used for management access to the switch over your net-
work. By default, the switch uses DHCP to assign IP settings to VLAN 1 on the
switch. If you wish to manually configure IP settings, you need to change the
switch’s user-specified defaults (IP address 0.0.0.0 and netmask 255.0.0.0) to
values that are compatible with your network. You may also need to a establish a
default gateway between the switch and management stations that exist on
another network segment.
Command Function
Mode
Page
ip address
Sets the IP address for this device
IC
3-51
ip dhcp restart
Submits a BOOTP or DCHP client request
PE
3-52
ip
Defines the default gateway through which an GC
3-53
default-gateway
in-band management station can reach this
device
show ip interface Displays the IP settings for this device
PE
3-54
show ip redirects Displays the default gateway configured for
PE
3-55
this device
ping
Sends ICMP echo request packets to another NE,
3-55
node on the network
PE
ip address
Use this command to set the IP address for this device. Use the no form to
restore the default IP address.
Syntax
ip address {ip-address netmask | bootp | dhcp}
no ip address
> ip-address - IP address
> netmask - Network mask for the associated IP subnet. This mask identifies the
host address bits used for routing to specific subnets.
> bootp - Obtains IP address from BOOTP.
> dhcp - Obtains IP address from DHCP.
154