| IP Interface Commands
C
40
HAPTER
IPv4 Interface
B
IP
4
ASIC
V
C
ONFIGURATION
ip address
This section describes commands used to configure IP addresses for VLAN
interfaces on the switch.
Table 143: Basic IP Configuration Commands
Command
Function
ip address
Sets the IP address for the current interface
ip default-gateway
Defines the default gateway through which this router
can reach other subnetworks
show ip default-gateway
Displays the default gateway configured for this device PE
show ip interface
Displays the IP settings for this device
show ip traffic
Displays statistics for IP, ICMP, UDP, TCP and ARP
protocols
traceroute
Shows the route packets take to the specified host
ping
Sends ICMP echo request packets to another node on
the network
This command sets the IPv4 address for the currently selected VLAN
interface. Use the no form to restore the default IP address.
S
YNTAX
ip address {ip-address netmask [default-gateway ip-address] |
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.
default-gateway - The default gateway. (Refer to the
gateway
command which provides the same function.)
bootp - Obtains IP address from BOOTP.
dhcp - Obtains IP address from DHCP.
D
S
EFAULT
ETTING
DHCP
C
M
OMMAND
ODE
Interface Configuration (VLAN)
C
U
OMMAND
SAGE
An IP address must be assigned to this device to gain management
◆
access over the network or to connect the switch to existing IP subnets.
A specific IP address can be manually configured, or the switch can be
directed to obtain an address from a BOOTP or DHCP server. Valid IP
addresses consist of four numbers, 0 to 255, separated by periods.
Anything other than this format is not be accepted by the configuration
program.
– 962 –
Mode
IC
GC
PE
PE
PE
NE, PE
ip default-