Example
The following example acquires an IP address for Ethernet port 1/e16 from DHCP .
Console(config)# interface ethernet 1/e16
Console(config-if)# ip address dhcp
ip default-gateway
The ip default-gateway Global Configuration mode command defines a default gateway
(router). To return to the default configuration, use the no form of this command.
Syntax
ip default-gateway ip-address
no ip default-gateway
•
ip-address — Valid IP address of the default gateway.
Default Configuration
No default gateway is defined.
Command Mode
Global Configuration mode
User Guidelines
There are no user guidelines for this command.
Example
The following example defines default gateway 192.168.1.1.
Console(config)# ip default-gateway 192.168.1.1
show ip interface
The show ip interface User EXEC mode command displays the usability status of configured IP
interfaces.
Syntax
show ip interface [ethernet interface-number | vlan vlan-id | port-channel port-channel
number.]
•
interface-number — Valid Ethernet port.
•
vlan-id — Valid VLAN number.
•
port-channel number. — Valid Port-channel number.
D E L L C O N F I D E N T I A L – P R E L I M I N A R Y 9 / 1 3 / 0 6 – F O R P R O O F O N LY
IP Addressing Commands
191