As shown:
R1 gets the upstream route through R4. R2 gets the upstream route through R5. The configuration operation is as follows: R1:Interfacefastethernet0/0IP Address13.1.1.1 255.255.255.0router OSPF1Network13.1.1.0 0.0.0.255Area0R2:Interfacefastethernet0/1IP Address23.1.1.2 255.255.255.0router OSPF1Network23.1.1.0 0.0.0.255Area0R3:Interfacefastethernet0/0IP Address13.1.1.3 255.255.255.0IP Policy Route-map R1Interfacefastethernet0/1IP Address23.1.1.3 255.255.255.0IP Policy Route-map R2Interfacefastethernet1/0IP Address34.1.1.3 255.255.255.0Interfacefastethernet1/1IP Address35.1.1.3 255.255.255.0router OSPF1Network13.1.1.0 0.0.0.255Area0Network23.1.1.0 0.0.0.255Area0Network34.1.1.0 0.0.0.255Area0Network35.1.1.0 0.0.0.255Area0Access-list1Permit13.1.1.0 0.0.0.255Access-list2Permit23.1.1.0 0.0.0.255Route-map R1 PermitTenMatch IP Address1 SetIP Precedence prioritySetIP next-hop34.1.1.4Route-map R2 PermitTenMatch IP Address2 SetIP Precedence CriticalSetIP next-hop35.1.1.5R4:Interfacefastethernet0/0IP Address45.1.1.4 255.255.255.0Interfacefastethernet0/1IP Address34.1.1.4 255.255.255.0router OSPF1Network34.1.1.0 0.0.0.255Area0Network45.1.1.0 0.0.0.255Area0R5:Interfacefastethernet0/0IP Address45.1.1.5 255.255.255.0Interfacefastethernet0/1IP Address35.1.1.5 255.255.255.0router OSPF1Network35.1.1.0 0.0.0.255Area0Network45.1.1.0 0.0.0.255Area0R1#traceroute45.1.1.5Type escape sequence to abort. Tracing the route to45.1.1.5 1 13.1.1.3 -msec Amsec Amsec2 34.1.1.4 +msec +msec -msec3 45.1.1.5 -msec Aboutmsec -Msecr2#traceroute45.1.1.4Type escape sequence to abort. Tracing the route to45.1.1.4 1 23.1.1.3 -msec Amsec Amsec2 35.1.1.5 +msec $msec +msec3 45.1.1.4 +msec +msec -msec
Cisco PBR Case2