ECS4660-28F_Management Guide-R03

Table Of Contents
C
HAPTER
49
| IP Interface Commands
IPv4 Interface
– 1651
EXAMPLE
The following example defines a default gateway for this device:
Console(config)#ip default-gateway 10.1.1.254
Console(config)#end
Console#show ip route
Codes: C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default
S* 0.0.0.0/0 [1/0] via 10.1.1.254, VLAN1
C 127.0.0.0/8 is directly connected, lo0
C 192.168.2.0/24 is directly connected, VLAN1
Console#
RELATED COMMANDS
ip address (1648)
ip route (1724)
ipv6 default-gateway (1664)
show ip interface This command displays the settings of an IPv4 interface.
COMMAND MODE
Privileged Exec
EXAMPLE
Console#show ip interface
VLAN 1 is Administrative Up - Link Up
Address is 00-00-0C-00-00-FD
Index: 1001, MTU: 1500
Address Mode is DHCP
IP Address: 192.168.0.3 Mask: 255.255.255.0
Proxy ARP is disabled
Console#
RELATED COMMANDS
ip address (1648)
show ipv6 interface (1672)