Cisco Systems IOS XR Laptop User Manual


 
Implementing Static Routes on Cisco IOS XR Software
Configuration Examples
RC-255
Cisco IOS XR Routing Configuration Guide
Configuration Examples
This section provides the following configuration examples:
Configuring Traffic Discard: Example
Configuring a Fixed Default Route: Example
Configuring a Floating Static Route: Example
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
route ipv6 unicast 2001:0DB8:42:1::/64 null 0
end
Configuring a Fixed Default Route: Example
A default static route is often used in simple router topologies. In the following example, a router is
configured with an administrative distance of 110.
configure
route ipv4 unicast 10.0.0.0/8 172.20.16.6 110
end
Configuring a Floating Static Route: Example
A floating static route often is used to provide a backup path if connectivity fails. In the following
example, a router is configured with an administrative distance of 201.
configure
route ipv6 unicast 2001:0DB8::/32 2001:0DB8:3000::1 201
end
Where to Go Next
For additional information on static routes, routing protocols, and RIB, consult the following
publications:
Implementing and Monitoring RIB on Cisco IOS XR Software
Implementing BGP on Cisco IOS XR Software
Implementing IS-IS on Cisco IOS XR Software
Implementing OSPF on Cisco IOS XR Software
Implementing OSPFv3 on Cisco IOS XR Software
RIB Commands on Cisco IOS XR Software