C613-50100-01 REV C Command Reference for x930 Series 1505
AlliedWare Plus™ Operating System - Version 5.4.6-1.x
VRF LITE COMMANDS
IP
ROUTE
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
To remove 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)# no ip route 192.168.3.0 255.255.255.0 10.10.0.2
To specify a null or blackhole route 192.168.4.0/24, so packets forwarded to this
route are dropped, use the commands:
awplus# configure terminal
awplus(config)# ip route 192.168.4.0/24 null
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 commands:
awplus# configure terminal
awplus(config)# ip route 192.168.3.0 255.255.255.0 10.10.0.2
128
Examples (VRF
lite)
To create a static route from source VRF instance red, to the subnet
192.168.50.0/24 with a next hop of 192.168.20.6, use the following commands for
static intra-VRF routing configuration:
awplus# configure terminal
awplus(config)# ip route vrf red 192.168.50.0/24 192.168.20.6
vrf Applies the command to the specified VRF instance.
<vrf-name> The name of the VRF instance to enter IPv4 Address-Family mode
for.
Parameter Description