698
Command Reference for AT-IX5-28GPX High Availability, High Power Video Surveillance PoE Switch
C613-50057-01 REV A
AlliedWare Plus™ Operating System - Version 5.4.5-0.x
R
OUTING
C
OMMANDS
IP
ROUTE
ip route
Overview
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
variant of this command removes the static route from the RIB and FIB.
Syntax
ip route
<subnet&mask>
{
<gateway-ip>
|
<interface>
}
[<distance>]
no ip route
<subnet&mask>
{
<gateway-ip>
|
<interface>
}
[<distance>]
Mode
Global Configuration
Default
The default administrative distance for a static route is 1 for priority over non-static
routes.
Usage
Administrative distance can be modified so static routes do not take priority over
other routes.
Specify a ‘Null’ interface to add a null or blackhole route to the switch. A null or
blackhole route is a routing table entry that does not forward packets, so any
packets sent to it are dropped.
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 the default administrative
distance, use the commands:
awplus#
configure terminal
awplus(config)#
ip route 192.168.3.0 255.255.255.0 10.10.0.2
Parameter
Description
<
subnet&mask
>
The IPv4 address of the destination subnet defined using 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, also in dotted decimal notation.
The IPv4 subnet address in dotted decimal notation, followed by a
forward slash, then the prefix length.
<
gateway-ip
>
The IPv4 address of the gateway device.
<
interface
>