Command Line Interface
1018 1553-KDU 137 365 Uen D 2006-06-16
Example
In the following example, the device is assigned an address in VLAN 246.
Related Commands
ip dhcp restart client (section 7.23.2 on page 976)
7.25.2 ip default-gateway
This command specifies the default gateway for destinations not
found in the
local routing tables. Use the no form to remove a default gateway.
Syntax
ip default-gateway <gateway>
no ip default-gateway
gateway - IP address of the default gateway
Default Setting
No default gateway is established.
Command Mode
Global Configuration
Command Usage
• The gateway specified in this command is only valid if routing is disabled
with the no ip routing command. If IP routing is disabled, a gateway
must be defined if the target device is located in a different subnet.
• If routing is enabled, the gateway must be defined with the ip route
command.
Console(config)#interface vlan 246
Console(config-if)#ip address 192.168.1.5 255.255.255.0
Console(config-if)#