Command Reference Guide Global Configuration Mode Command Set
61200510L1-35E Copyright © 2005 ADTRAN 448

ip route <ip address> <subnet mask> <interface or ip address>

<administrative distance>

Use the ip route command to add a static route to the route table. This command can be used to add a
default route by entering ip route 0.0.0.0 0.0.0. 0 and specifying the interface or IP address. Use the no
form of this command to remove a configured static route.
Syntax Description
<ip address> Specifies the ne twor k address (in do tted decimal notation) to add to the route
table.
<subnet mask> Specifies the subnet mask (in dotted decimal notation) associated with the
listed network IP address.
<interface or ip address> Specifies the gateway peer IP address (in dotted decimal notation) or a
configured interface in the unit. Use the ip route interface ? command to
display a complete list of interfaces.
<administrative distance> Specifies an administrative distance as so ciat ed w ith a particula r router used
to determine the best route when multiple routes to the same destination
exist. The smaller the administrative distance the more reliable the route.
(Range is 1 to 255.)
Default Values
By default, there are no configured routes in the route table.
Applicable Platforms
This command applies to the NetVanta 300, 1000R, 2000, 3000, 4000, and 5000 and Total Access 900
Series units.
Command History
Release 1.1 Command was introduced.
Release 9.1 Tunnel added as a supported interface.
Release 11.1 Demand added as a supported interface.
Usage Examples
The following example adds a static route to the 10.220.0.0/16 network through the next-hop router
192.22.45.254 and a default route to 175.44.2.10:
(config)#ip route 10.220.0.0 255.255.0.0 192.22.45.254
(config)#ip route 0.0.0.0 0.0.0.0 175.44.2.10