cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
952
Views
10
Helpful
3
Replies

Policy Based route

John Levy
Level 1
Level 1

Hello , i have the next topology  -

1234.JPG

 

 

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.

--------------------------------------------------------------------------------------------

R1#show route-map

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

--------------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------------------

R1#show ip route

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 ?

3 Replies 3

cassiolange
Level 1
Level 1

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,

Jon Marshall
Hall of Fame
Hall of Fame

 

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

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

HTH

Rick