Specifications
12-201
Cisco SN 5428-2 Storage Router Software Configuration Guide
78-15471-01
Chapter 12 Command Line Interface Reference
ip default-gateway
ip default-gateway
To add a gateway to the default route in the SN 5428-2 Storage Router routing table, use the
ip default-gateway command. To delete the gateway, use the no form of this command.
ip default-gateway E.F.G.H [administrative-distance]
no ip default-gateway [A.B.C.D]
Syntax Description
Defaults The default administrative distance for a static route is 1.
Command Modes Administrator.
Command History
Usage Guidelines All IP interfaces in the SN 5428-2 use the routing table to reach services and networks outside their local
network. Other facilities, such as SNMP and connections to an NTP server or DNS servers, may also use
the routing table. Use the ip default-gateway command to add a gateway to the default route in this
table.
Only one default route is allowed in the routing table.
Note This command is functionally equivalent to issuing the ip route command for IP address 0.0.0.0/00.
The administrative distance is used to determine which route to install in the routing table when there
are multiple routes to the same destination. The default administrative distance for static routes is 1; the
administrative distance for dynamic routes created by RIP is 120. The route with the lower
administrative distance is installed in the routing table (as long as the interface used by the route is up).
By default, a static route will always override a dynamic route learned by RIP. To modify this behavior,
change the administrative distance of a static route to a value greater than 120.
Examples The following example adds a default route to gateway 10.3.40.1 in the routing table. The administrative
distance is 1, by default.
[SN5428-2A]# ip default-gateway 10.3.40.1
E.F.G.H The default gateway IP address.
administrative-distance (Optional) The administrative distance for the route. Valid values are 0 to
255 inclusive. The default administrative distance is 1.
A.B.C.D (Optional) The IP address of the default route. The gateway to this route will
be removed.
Release Modification
3.2.1 This command was introduced.