How to Implement Static Routes
This section contains the following procedures:
Configure Static Route
Static routes are entirely user configurable and can point to a next-hop interface, next-hop IP address, or both.
In the software, if an interface was specified, then the static route is installed in the Routing Information Base
(RIB) if the interface is reachable. If an interface was not specified, the route is installed if the next-hop address
is reachable. The only exception to this configuration is when a static route is configured with the permanent
attribute, in which case it is installed in RIB regardless of reachability.
Currently, only default VRF is supported. VPNv4, VPNv6 and VPN routing and forwarding (VRF) address
families will be supported in a future release.
Note
This task explains how to configure a static route.
SUMMARY STEPS
1.
configure
2.
router static
3.
vrf vrf-name
4.
address-family { ipv4 | ipv6 } { unicast | multicast }
5.
prefix mask [vrf vrf-name ] { ip-address | interface-type interface-instance } [ distance ] [ description
text ] [ tag tag ] [ permanent ]
6.
commit
DETAILED STEPS
Step 1
configure
Step 2
router static
Example:
RP/0/RSP0/CPU0:router(config)# router static
Enters static route configuration mode.
Step 3
vrf vrf-name
Example:
RP/0/RSP0/CPU0:router(config-static)# vrf vrf_A
(Optional) Enters VRF configuration mode.
If a VRF is not specified, the static route is configured under the default VRF.
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
OL-30423-03 557
Implementing Static Routes
How to Implement Static Routes