Example:
RP/0/RSP0/CPU0:router(config-static)# maximum path ipv4 10000
Changes the maximum number of allowable static routes.
•
Specify IPv4 or IPv6 address prefixes.
•
Specify the maximum number of static routes for the given address family. The range is from 1 to 140000.
•
This example sets the maximum number of static IPv4 routes to 10000.
Step 4
commit
Configuring a static route to point at interface null 0 may be used for discarding traffic to a particular prefix.
For example, if it is required to discard all traffic to prefix 2001:0DB8:42:1/64, the following static route
would be defined:
configure
router static
address-family ipv6 unicast
2001:0DB8:42:1::/64 null 0
end
Associate VRF with a Static Route
This task explains how to associate a VRF with 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 ] {next-hop ip-address | interface-name } {path-id } [ 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
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
562 OL-30423-03
Implementing Static Routes
Associate VRF with a Static Route