CLI Guide

Table Of Contents
Layer 3 Routing Commands 1512
Only IPv4 routes are supported with the vrf parameter.
Adding a static route with a Null 0 next hop specified configures a routing
black hole (a static reject route). Packets destined to that prefix are dropped.
If an interface for the next hop is specified, it may be a numbered or
unnumbered interface.
A static route entry is only installed if the next hop IP address matches one of
the local subnets (i.e., the next hop is reachable). In case of unnumbered
interfaces, static routes entries created for an unnumbered-peer do not match
with any of the local subnets. By specifying the interface explicitly in the
static route command along with the next hop IP address, the switch can
correctly install static route entries for unnumbered-peers. It is also possible
to configure ‘unnumbered interface routes’ where the next hop IP address is
not specified and only the unnumbered nexthop interface is configured.
Enter a track track-number in the ip route command to specify that the static
route is installed only if the configured SLA tracking object is up. When the
track object is down, the route is removed from the Route Table. Only one
tracking object can be associated with a static route. Configuring a different
tracking object replaces the previously configured tracking object.
To display the tracked IPv4 static routes, use the show ip route track-table
command.
Command History
Command updated in version 6.6 firmware.
Examples
Route Leaking Example 1
The following shows the configuration for VRF red-1 configured in VLAN 10.
A static global route for the 172.16.0.0 with a next hop of 172.16.0.2 is
injected into VRF red-1.
configure
vlan 10
exit
ip vrf red-1
ip routing
exit
ip routing
ip route vrf red-1 172.16.0.0 255.240.0.0 172.16.0.2