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

PBR Not Changing the default route

Virgil Wilson
Level 1
Level 1

I have a MPLS cloud in our data center.  I want one network coming into our core router to have a different default route than the other networks coming in. I'm getting hits on the acl but the route isn't applied and goes to the default route that is configured in the router.  I have other PBR for setting local-preferences and as-paths and they are working fine. 

The router is a 7206 Version 12.4(11)T3

!

ip route 0.0.0.0 0.0.0.0 1.2.3.4

!

ip access-list extended 2nd_Default_Route

deny   tcp 10.154.192.0 0.0.0.255 10.128.0.0 0.31.255.255

permit ip any any

!

route-map 2nd_Default_Route permit 10

match ip address AI_Cloud_Collapse

set ip default next-hop 10.154.3.30

!

Extended IP access list 2nd_Default_Route

    10 deny tcp 10.154.192.0 0.0.0.255 10.128.0.0 0.31.255.255

    20 permit ip any any (3462604 matches)

1 Reply 1

John Blakley
VIP Alumni
VIP Alumni

You acl isn't applied anywhere from what I can see. You're matching an acl named "Al_Cloud_Collapse", but your showing the 2nd_Default_Route acl. Your route-map doesn't need to match the acl name, but the acl that you're referencing does. Try changing it to the following:

route-map 2nd_Default_Route permit 10

match ip address 2nd_Default_Route

set ip default next-hop 10.154.3.30

The policy map also needs to be applied to an interface. Assuming you expect this traffic to come in on the lan interface, you would configure:

int

ip policy route-map 2nd_Default_Route

Let me know if this doesn't answer the question....

HTH,

John

HTH, John *** Please rate all useful posts ***
Review Cisco Networking for a $25 gift card