Cisco Systems OL-14356-01 Network Router User Manual


 
Implementing Routing Policy on Cisco IOS XR Software
Information About Implementing Routing Policy on Cisco IOS XR Software
RC-404
Cisco IOS XR Routing Configuration Guide
OL-14356-01
Global-Inbound, page RC-404
Global-Outbound, page RC-404
Interface-Inbound, page RC-405
Interface-Outbound, page RC-405
Default-Information Originate
The default-information originate attach point allows you to conditionally inject the default route
0.0.0.0/0 into RIP updates by evaluating the attached policy. If any routes in the local RIB pass the
policy, then the default route is inserted.
The following example shows how to generate a default route if any of the routes that match 10.0.0.0/8
ge 8 le 25 are present in the RIB:
route-policy rip-originate
if rib-has-route in (10.0.0.0/8 ge 8 le 25) then
pass
endif
end-policy
router rip
default-information originate route-policy rip-originate
Redistribute
The redistribution attach point within RIP allows you to inject routes from other routing protocol sources
into the RIP database.
The following example shows how to inject OSPF routes into RIP:
route-policy redist-ospf
set rip-metric 5
end-policy
router rip
redistribute ospf 1 route-policy redist-ospf
Global-Inbound
The global-inbound attach point for RIP allows you to filter or update inbound RIP routes that match a
route policy.
The following example shows how to filter the inbound RIP routes that match the route policy named
rip-in:
router rip
route-policy rip-in in
Global-Outbound
The global-outbound attach point for RIP allows you to filter or update outbound RIP routes that match
a route-policy.
The following example shows how to filter the outbound RIP routes that match the route policy named
rip-out:
router rip
route-policy rip-out out