PurposeCommand or Action
Enters static route configuration mode.router static
Example:
RP/0/RSP0/CPU0:router(config)#router static
Step 2
Enters the address family or VRF
address family configuration mode.
Use one of these commands:
Step 3
•
address-family {ipv4 | ipv6} unicast
•
vrf vrf-name address-family { ipv4 | ipv6} unicast
Example:
RP/0/RSP0/CPU0:router(config-static)#address-family ipv6
unicast
Or
RP/0/RSP0/CPU0:router(config-static)#vrf vrf_1 address-family
ipv6 unicast
Enables tracking for the specified object.
ip-address / length [vrf vrf-name] {next-hop | type interface-path-id}
track object-name
Step 4
Example:
RP/0/RSP0/CPU0:router(config-static-afi)#2001:db8::/32
1080::8:800:200c:417a track objetc2
commit
Step 5
Configuration Examples
This section provides the following configuration examples:
Configuring Traffic Discard: Example
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
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
564 OL-30423-03
Implementing Static Routes
Configuration Examples