CLI Reference Guide-R03

Table Of Contents
Chapter 26
| IP Interface Commands
IPv4 Interface
– 646
Basic IPv4 Configuration This section describes commands used to configure IP addresses for VLAN
interfaces on the switch.
ip address This command sets the IPv4 address for the currently selected VLAN interface. Use
the no form to restore the default IP address.
Syntax
ip address {ip-address netmask [default-gateway ip-address] | [secondary] |
autoip | bootp | dhcp}
no ip address [ip-address netmask | autoip | dhcp]
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 ip default-gateway
command which provides the same function.)
secondary - Specifies a secondary IP address.
autoip - Randomly selects an IPv4 link-local address from the range
169.254.0.1 - 169.254.255.254.
bootp - Obtains IP address from BOOTP.
dhcp - Obtains IP address from DHCP.
Default Setting
DHCP
Command Mode
Interface Configuration (VLAN)
Table 138: Basic IP Configuration Commands
Command Function Mode
ip address Sets the IP address for the current interface IC
ip default-gateway Defines the default gateway through which this router can
reach other subnetworks
GC
show ip default-gateway Displays the default gateway configured for this device PE
show ip interface Displays the IP settings for this device PE
show ip traffic Displays statistics for IP, ICMP, UDP, TCP and ARP protocols PE
traceroute Shows the route packets take to the specified host PE
ping Sends ICMP echo request packets to another node on the
network
NE, PE