Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Policy-Based Routing problem

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

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Policy-Based Routing problem

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

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
1 REPLY
Cisco Employee

Policy-Based Routing problem

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

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
133
Views
0
Helpful
1
Replies
CreatePlease to create content