02-02-2016 04:52 AM - edited 03-12-2019 05:21 PM
have a Cat3850 running Ver 03.03.03SE IP Services.
configured BGP to per with one of the Internet providers and the pering is working as expected except that we want to send out two sets of routes with the second set having a higher AS path. I have it configured like an older 3900 router. Looks like it is hitting the first route-map and then not bothering with the second. What am I missing?
here is what we are doing:
route-map To-Provider permit 10
match ip address prefix-list BGP-Out
!
route-map To-Provider permit 20
match ip address prefix-list BGP-Out2
set as-path prepend xxxx xxxx xxxx
Thoughts?
05-10-2016 12:44 PM
Hi,
If it only hits the first one, I would suggest changing the numbering of them. I would probably want to have the set command on the first route-map entry.
How do the prefix-lists look like?
05-11-2016 01:03 AM
This post is 3 months old but I thought there were restrictions for PBR on 3850s as below only set ip next hop is valid in 3.3
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_pi/configuration/xe-3se/3850/iri-xe-3se-3850-book/iri-pbr.html#GUID-06E58E4A-6D37-4DEE-919A-F7321E4A2329
To define the route map to be used for policy-based routing, use the route-map map-tag [permit | deny] [sequence-number] global configuration command.
Only set ip next-hop command can be used under route-map configuration mode when you configure policy-based routing
05-11-2016 06:05 AM
Hello
Your route map stanza look okay, I am wondering if your prefix-lists are correct in relation to what your are advertising in the bpg process via the network command?
Another way for the route-map would be:
route-map To-Provider permit 10
match ip address prefix-list BGP-Out2
set as-path prepend xxxx xxxx xxxx
route-map To-Provider permit 90
res
Paul
05-11-2016 06:22 AM
Hi!
Please check hit counters in the show access-list command specifically for your BGP-Out2.
If it is not registering hits can you check that the prefix-list is actually matching the route you are trying to advertise?
(Please check the routing table or that the prefix/mask is correct).
Hope it helps, best regards!
JC
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