08-02-2013 09:05 AM - edited 03-04-2019 08:38 PM
Hi all,
I have configured Policy-Based Routing on Cisco 3825 ( C3825-ADVENTERPRISEK9-M, Version 15.1(4)M5 ), but it isn't working as expected.
This is config:
!
route-map PBR_ROUTE permit 10
match ip address PBR_LIST
set interface Tunnel1
!
route-map PBR_ROUTE permit 20
match ip address PBR_LIST
set interface Tunnel2
!
route-map PBR_ROUTE permit 30
match ip address PBR_LIST
set interface Tunnel3
!
route-map PBR_ROUTE permit 40
match ip address PBR_LIST
set interface Tunnel4
!
When interface Tunnel1 is up all ok, but when I shutdown interface Tunnel1, traffic doesn't go through interface Tunnel2.
"show route-map" shows matching only for sequence 10 even when interface Tunnel1 is down:
route-map PBR_ROUTE, permit, sequence 10
Match clauses:
ip address (access-lists): PBR_LIST
Set clauses:
interface Tunnel1
Policy routing matches: 716 packets, 104664 bytes
route-map PBR_ROUTE, permit, sequence 20
Match clauses:
ip address (access-lists): PBR_LIST
Set clauses:
interface Tunnel2
Policy routing matches: 0 packets, 0 bytes
route-map PBR_ROUTE, permit, sequence 30
Match clauses:
ip address (access-lists): PBR_LIST
Set clauses:
interface Tunnel3
Policy routing matches: 0 packets, 0 bytes
route-map PBR_ROUTE, permit, sequence 40
Match clauses:
ip address (access-lists): PBR_LIST
Set clauses:
interface Tunnel4
Policy routing matches: 0 packets, 0 bytes
I also tried this PBR with IP SLA but result is the same.
So what is wrong and what to do?
Thanks
Solved! Go to Solution.
08-02-2013 10:51 AM
Hi Haratyun,
This is normal behavior as the match statement in instance 10 keeps matching the incoming traffic even if tu1 goes down. If you want traffic to be forwarded to tu2 when tun1 is down, you need to add tu2 on the "set interface" statement under instance 10 as follow:
!
route-map PBR_ROUTE permit 10
match ip address PBR_LIST
set interface Tunnel1 Tunnel2
!
Regards
08-02-2013 10:51 AM
Hi Haratyun,
This is normal behavior as the match statement in instance 10 keeps matching the incoming traffic even if tu1 goes down. If you want traffic to be forwarded to tu2 when tun1 is down, you need to add tu2 on the "set interface" statement under instance 10 as follow:
!
route-map PBR_ROUTE permit 10
match ip address PBR_LIST
set interface Tunnel1 Tunnel2
!
Regards
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