Chapter 25
| IP Interface Commands
IPv4 Interface
– 602 –
Related Commands
ip dhcp restart client (592)
ip default-gateway (602)
ipv6 address (612)
ip default-gateway
This command specifies the default gateway for destinations not found in 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 default gateway can also be defined using the following Global
configuration command:
ip route 0.0.0.0 0.0.0.0
gateway-address
.
◆
Static routes can also be defined using the
command to ensure
that traffic to the designated address or subnet passes through a preferred
gateway.
◆
A default gateway can only be successfully set when a network interface
that directly connects to the gateway has been configured on the router.
◆
The same link-local address may be used by different interfaces/nodes in
different zones (RFC 4007). Therefore, when specifying a link-local
address for a default gateway, include zone-id information indicating the
VLAN identifier after the % delimiter. For example, FE80::7272%1
identifies VLAN 1 as the interface.
Example
The following example defines a default gateway for this device:
Console(config)#ip default-gateway 192.168.0.1
Console(config)#
Related Commands
Содержание SC30010
Страница 1: ...C 300 Series Gigabit Managed Switch CLI Reference Guide SOFTWARE RELEASE V1 1 10 171 www signamax com ...
Страница 2: ...CLI Reference Guide SC30010 C 300 48 Port Gigabit Managed Switch E122017 KS R01 ...
Страница 482: ...Chapter 19 Class of Service Commands Priority Commands Layer 3 and 4 482 ...
Страница 670: ......
Страница 671: ...E122017 KS R01 ...