cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
595
Views
0
Helpful
4
Replies

PBR questions

gongya001
Level 1
Level 1

 

PBR.PNG

On R1

ip access-list standard PBR-ACL

  permit 10.10.51.0 0.0.0.255

 

route-map PBR-MAP permit 10

  match ip address PBR-ACL

  set ip next-hop 172.16.13.3

int e0/2

  ip address 10.10.51.1 255.255.255.0

  ip policy route-map PBR-MAP

 

When I like to access the direct connected subnet on R1, the traffic is sent to R3, then sent back to R1 ---> R6. Anyway to avoid this to get the path R5----> R1-----> R6 ?

 

 

2 Accepted Solutions

Accepted Solutions

gongya001
Level 1
Level 1
I figured it out.

thanks !!

View solution in original post

Hello,

 

use an extended access list where you can specify the source AND the destination. If there is no match, the general routing logic will be used:

 

So.e.g. with the access list below, only traffic destined for 192.168.47.0/24 will be policy routed, if you try to access the directly connected subnet 10.10.61.0/24, it will bypass the route map.

 

ip access-list 101 permit ip 10.10.51.0 0.0.0.255 192.168.47.0 0.0.0.255

 

route-map PBR-MAP permit 10

match ip address 101

set ip next-hop 172.16.13.3

 

View solution in original post

4 Replies 4

gongya001
Level 1
Level 1
I figured it.

thanks !!

gongya001
Level 1
Level 1
I figured it out.

thanks !!

Hello,

 

use an extended access list where you can specify the source AND the destination. If there is no match, the general routing logic will be used:

 

So.e.g. with the access list below, only traffic destined for 192.168.47.0/24 will be policy routed, if you try to access the directly connected subnet 10.10.61.0/24, it will bypass the route map.

 

ip access-list 101 permit ip 10.10.51.0 0.0.0.255 192.168.47.0 0.0.0.255

 

route-map PBR-MAP permit 10

match ip address 101

set ip next-hop 172.16.13.3

 

thanks so much !!

Review Cisco Networking for a $25 gift card