Specifications
Implementing RIP on Cisco IOS XR Software
Configuration Examples for Implementing RIP on Cisco IOS XR Software
RC-333
Cisco IOS XR Routing Configuration Guide
Configuring Redistribution for RIP: Example
The following example shows how to redistribute Border Gateway Protocol (BGP) and static routes into 
RIP.
The RIP metric used for redistributed routes is determined by the route policy. If a route policy is not 
configured or the route policy does not set RIP metric, the metric is determined based on the redistributed 
protocol. For VPNv4 routes redistributed by BGP, the RIP metric set at the remote PE router is used, if 
valid. 
In all other cases (BGP, IS-IS, OSPF, EIGRP, connected, static), the metric set by the default-metric 
command is used. If a valid metric cannot be determined, then redistribution does not happen.
route-policy ripred
 set rip-metric 5
end-policy
!
router rip
 vrf vpn0
 interface GigabitEthernet0/6/0/2
 !
 redistribute connected 
 default-metric 3 
 !
 vrf vpn1
 interface GigabitEthernet0/6/0/3
 !
 redistribute bgp 100 route-policy ripred 
 redistribute static 
 default-metric 3 
 !
!
Configuring Route Policies for RIP: Example
The following example shows how to configure inbound and outbound route policies that are used to 
control which route updates are received by a RIP interface or sent out from a RIP interface.
prefix-set pf1
 10.1.0.0/24
end-set
!
prefix-set pf2
 150.10.1.0/24
end-set
!
route-policy policy_in
 if destination in pf1 then
 pass
 endif
end-policy
!
route-policy pass-all
 pass
end-policy
!










