Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

PBR/route maps

I'm running into a weird situation here or at least I think I'm but anyways here is the situation. I have static route that points to a network called SNET and that is where the subnet is being learned from, also I have a PBR that I have in place that states an anything coming from the subnet that wants to hit the will be routed over my BGP router to a new work that is called VMNET. So when I start advertising the subnet via the bgp router the PBR works and I can hit the subnet without issues the problem is all my other subnet chooses that route as well even though I have a static route pointing to the SNET connection for some reason they all want to go over the BGP route. I would pronbably need to paste my settings so if anyone can help let me know and I will send it to you. Thank you in advance


Accepted Solutions
Hall of Fame Super Bronze

Re: PBR/route maps

The easier solution would be creating two /24 static routes.

Hall of Fame Super Bronze

Re: PBR/route maps

If you post configs and topology of your network, it will be most helpful.

Perhaps the BGP routes have a longer mask than your static routes and that's the reason is choosing that path over the SNET connection ?

New Member

Re: PBR/route maps

You know you I think you are right cause when it is advertised via SNET it is a /23 subnet and when it is being advertised via the BGP it is being advertised as a /24. So even though the SNET connection is a static route the BGP route will win cause it is longer. So if I get the BGP route to advertise a /23 instead of a /24 then my route map should work. Here is the config I have for my route map

New Member

Re: PBR/route maps

Sorry hit send to fast:

Here is the static route:

ip route

and here is the route map information:

ip prefix-list to-VNET seq 70 permit le 32

ip prefix-list from-VNET seq 260 permit

access-list 100 permit ip

route-map sfs-inside-filter permit 30

match ip address 100

set ip next-hop

ip access-list extended sfs-to-vnet

141 permit ip

But what you are saying about the length is correct the static route is a /23 while the bgp route is a /24 so that is probably why when I activate this everything is taking the

BGP route

Hall of Fame Super Bronze

Re: PBR/route maps

The easier solution would be creating two /24 static routes.

CreatePlease login to create content