C
HAPTER
40
| IP Interface Commands
IPv4 Interface
– 964 –
EXAMPLE
The following example defines a default gateway for this device:
Console(config)#ip default-gateway 10.1.1.254
Console(config)#
RELATED COMMANDS
ip address (962)ipv6 default-gateway (971)
show ip
default-gateway
This command shows the IPv4 default gateway configured for this device.
DEFAULT SETTING
None
COMMAND MODE
Privileged Exec
EXAMPLE
Console#show ip redirects
ip default gateway 10.1.0.254
Console#
RELATED COMMANDS
ip default-gateway (963)
show ipv6 default-gateway (979)
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-E0-0C-00-00-FD (bia 00-E0-0C-00-00-FD)
Index: 1001, MTU: 1500, Bandwidth: 1g
Address Mode is DHCP
IP Address: 192.168.0.3 Mask: 255.255.255.0
Proxy ARP is disabled
Console#
RELATED COMMANDS
ip address (962)
show ipv6 interface (980)