
Routing Commands
©2008 Allied Telesis Inc. All rights reserved.
26.2
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
Introduction
This chapter provides an alphabetized reference for the routing commands that are common
across the routing IP protocols.
ip route
This command adds a static route to the Routing Information Base (RIB). If this route is the best
route for the destination, then your device adds it to the Forwarding Information Base (FIB).
Your device uses the FIB to advertise routes to neighbors and forward packets.
The
no
form removes the static route from the RIB and FIB.
Syntax
ip route
SUBNET&MASK
{
GATEWAYIP
|
INTERFACE
} [<1-255>]
no ip route
SUBNET&MASK
{
GATEWAYIP
|
INTERFACE
} [<1-255>]
Mode
Configure mode
Examples
To add the destination 192.168.3.0 with the mask 255.255.255.0 as a static route available
through the device at “10.10.0.2” with an administrative distance of 128, use the command:
awplus(config)#
ip route 192.168.3.0 255.255.255.0 10.10.0.2 128
To add the destination 10.0.0.0 with a prefix length of 8 as a static route available through vlan4
with an administrative distance of 32, use the command:
awplus(config)#
ip route 10.0.0.0/8 vlan4 32
Related Commands
show ip route
Parameter
Description
SUBNET&MASK
The IPv4 address of the destination prefix with either a prefix length or a
separate mask specified in one of the following formats:
The IPv4 subnet address in dotted decimal notation followed by the
subnet mask in dotted decimal notation.
The IPv4 subnet address in dotted decimal notation followed by a forward
slash, then the prefix length.
GATEWAYIP
The IPv4 address of the gateway device.
INTERFACE
The name of the interface that connects your device to the network.
<1-255>
The administrative distance for this route. For more information about
setting administrative distances, see
“Administrative Distance” on
page 25.4
.