Chapter 25
| IP Interface Commands
IPv4 Interface
– 540 –
Related Commands
ip dhcp restart client (532)
ip default-gateway (540)
ipv6 address (550)
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
ip route
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.
◆
A gateway must be defined if the management station is located in a different
IP segment.
◆
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 from which the ping is sent.
Example
The following example defines a default gateway for this device:
Console(config)#ip default-gateway 10.1.1.254
Console(config)#
Summary of Contents for EX-3524
Page 2: ......
Page 28: ...Figures 28 ...
Page 34: ...Section I Getting Started 34 ...
Page 58: ...Chapter 1 Initial Switch Configuration Setting the System Clock 58 ...
Page 72: ...Chapter 2 Using the Command Line Interface CLI Command Groups 72 ...
Page 156: ...Chapter 5 SNMP Commands Notification Log Commands 156 ...
Page 164: ...Chapter 6 Remote Monitoring Commands 164 ...
Page 218: ...Chapter 7 Authentication Commands Management IP Filter 218 ...
Page 268: ...Chapter 8 General Security Measures Port based Traffic Segmentation 268 ...
Page 292: ...Chapter 9 Access Control Lists ACL Information 292 ...
Page 312: ...Chapter 10 Interface Commands Power Savings 312 ...
Page 324: ...Chapter 11 Link Aggregation Commands Trunk Status Display Commands 324 ...
Page 366: ...Chapter 15 Address Table Commands 366 ...
Page 428: ...Chapter 17 VLAN Commands Configuring Voice VLANs 428 ...
Page 572: ...Chapter 25 IP Interface Commands IPv6 Interface 572 ...
Page 578: ...Section I Appendices 578 ...