cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
673
Views
0
Helpful
4
Replies

Cat3850 and BGP Issue

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?

4 Replies 4

Borgenstrand
Level 1
Level 1

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?

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

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


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Carlos Villagran
Cisco Employee
Cisco Employee

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