cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
403
Views
0
Helpful
1
Replies

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

Harold Ritter
Spotlight
Spotlight

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

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

1 Reply 1

Harold Ritter
Spotlight
Spotlight

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

Regards,
Harold Ritter, CCIE #4168 (EI, SP)