07-29-2018 02:03 PM
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 ?
Solved! Go to Solution.
07-29-2018 02:26 PM
07-29-2018 02:28 PM
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
07-29-2018 02:25 PM
07-29-2018 02:26 PM
07-29-2018 02:28 PM
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
07-30-2018 06:50 AM
thanks so much !!
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