Chapter 25
| IP Interface Commands
IPv4 Interface
Basic IPv4 Configuration
ip address
This section describes commands used to configure IP addresses for VLAN
interfaces on the switch.
Table 119: Basic IP Configuration Commands
Command
ip address
ip default-gateway
show ip interface
show ip route
show ip traffic
traceroute
ping
This command sets the IPv4 address for the currently selected VLAN interface. Use
the no form to remove an IP address.
Syntax
ip address {ip-address netmask [default-gateway] | bootp | dhcp} [secondary]
no ip address ip-address netmask
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
command which provides the same function.)
bootp - Obtains IP address from BOOTP.
dhcp - Obtains IP address from DHCP.
secondary - Specifies a secondary IP address.
Default Setting
DHCP
Command Mode
Interface Configuration (VLAN)
Command Usage
◆
If this router is directly connected to end node devices (or connected to end
nodes via shared media) that will be assigned to a specific subnet, then you
must create a router interface for each VLAN that will support routing. The
router interface consists of an IP address and subnet mask. This interface
address defines both the network number to which the router interface is
Function
Sets the IP address for the current interface
Defines the default gateway through which this router can
reach other subnetworks
Displays the IP settings for this device
Displays specified entries in the routing table
Displays statistics for IP, ICMP, UDP, TCP and ARP protocols PE
Shows the route packets take to the specified host
Sends ICMP echo request packets to another node on the
network
– 538 –
Mode
IC
GC
PE
PE
PE
NE, PE
ip default-gateway