IP Addressing Commands
78-20269-01 Command Line Interface Reference Guide
35.4
ip default-gateway
The ip default-gateway Global Configuration mode command defines a default
gateway (device). Use the no form of this command to restore the default
configuration.
Syntax
ip-address
ip default-gateway
no ip default-gateway
Parameters
ip-address—Specifies the default gateway IP address.
Command Mode
Global Configuration mode
Default Configuration
No default gateway is defined.
Example
The following example defines default gateway 192.168.1.1.
Console(config)#
ip default-gateway
35.5
show ip interface
Use the show ip interface EXEC mode command to display the usability status of
configured IP interfaces.
Syntax
[interface-id]
show ip interface
Parameters
interface-id—Specifies an interface ID. The interface ID can be one of the
following types: Ethernet port, Port-channel or VLAN.
192.168.1.1
35
482