08-13-2018 03:54 PM
Hello , i have the next topology -
I tried to practice on PBR , when R1 ping R3 Loopback address it will match the Policy based routing.
I did the following configuration on R1 but don't see any match:
access-list 101 permit ip any host 200.200.200.1
!
route-map PBR permit 10
match ip address 101
set ip next-hop 1.1.1.2
!
interface FastEthernet0/0
ip address 1.1.1.1 255.255.255.0
ip policy route-map PBR
!
But on the show route-map / debug ip policy i can not see any output.
--------------------------------------------------------------------------------------------
route-map PBR, permit, sequence 10
Match clauses:
ip address (access-lists): 101
Set clauses:
ip next-hop 1.1.1.2
Policy routing matches: 0 packets, 0 bytes
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
Gateway of last resort is not set
D 200.200.200.0/24 [90/435200] via 1.1.1.2, 00:17:07, FastEthernet0/0
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/307200] via 1.1.1.2, 00:18:02, FastEthernet0/0
--------------------------------------------------------------------------------------------
Any ideas ?
08-13-2018 06:57 PM
Hello John,
When router generate the packets, you need use ip local policy route-map
https://www.cisco.com/c/en/us/td/docs/ios/12_2/qos/configuration/guide/fqos_c/qcfpbr.html
http://blog.ine.com/2008/02/13/tricks-with-local-policy-routing/
Regards,
08-14-2018 05:04 AM
As a side note, if you want to practice PBR it is better to have multiple paths to the same destination IP address.
Your topology only have one path so using PBR is not really relevant.
Jon
08-14-2018 09:01 AM
I agree with the point made by Jon. I will also point out that the routing table posted indicates that the routers are running EIGRP and the destination would be reached using normal routing in exactly the same way that PBR would use. So it would be very difficult to determine whether PBR was working as desired or not. Remember that the point of PBR is to send traffic some way that is different from what normal routing would do.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide