04-29-2014 02:18 PM - edited 03-04-2019 10:52 PM
Hi All,
I have just taken over supporting a network, and have come accross a route map, that I don't really understand. The route-map is copied below. Can anyone please tell me step by step how its processed, and what the outcome is?
Solved! Go to Solution.
05-01-2014 11:28 PM
Hello Russ,
Yes that is indeed the case.
04-30-2014 12:44 AM
Hello Russ,
It seems like the route-map is controlling which routes to be advertised to its peer. You can see which routes are being advertised with "show ip bgp neighbors 1.1.1.1 advertised-routes"
Route-map test permit 5 calls to match a specific prefix - 10.10.0.0/16 this seems to be permitted
Route-map test permit 10 calls an AS path of _65000_ anything that transits AS 65000 (I think)
Route-map test permit 20 calls on a prefix list route-filter which sets the AS path prepend which is permited. This route-map prepends all other prefix's with 65100 except for the prefix's in the route filter one (which are deny statements - so the logic is "not these prefix's") - which may not even be advertised.
Depending on your routing table, if you have the relevant routes and with the show command above you should be able to see things match and correlate with the filtering policy if configured correctly.
hth
04-30-2014 01:35 AM
Hello Bial
Route-map test permit 10 calls an AS path of _65000_ anything that transits AS 65000 (I think)
This is incorrect mate - stanza 10 is set to match on as-path attribute 3 -
match as-path 3
res
Paul
04-30-2014 02:04 AM
Hi Paul,
I re-read, and am bit puzzled as to what is wrong with the statement? It match's the AS path - the Reg Expression has _65000_
What does that mean then?
04-30-2014 02:24 AM
Hello
04-30-2014 02:27 AM
I don't get your point?
You said:
This is incorrect mate - stanza 10 is set to match on as-path attribute 3 -
match as-path 3
Which you said was incorrect.
I said:
Route-map test permit 10 calls an AS path of _65000_ anything that transits AS 65000 (I think)
So.... the AS-Path ACL is:
ip as-path access-list 3 permit _65000_
So to me, in my mind this reads
route-map 10 to permit
Anything that matches the AS path _65000_
And that's exactly what I said here... Is my understanding of this wrong?
04-30-2014 02:51 AM
Helo
You are correct- I am misreading the posting- stanza 10 is indeed referring the _6500_ for the attribute aspath 3
I am looking at the dam prefix list not the as-path list -
Apologies Bilal
res
Paul
04-30-2014 02:15 AM
Hi, thanks for pointing that out - probably typing quicker than I could think. (Its Bilal btw, not Bial or mate) :)
Ta
04-30-2014 01:34 AM
Hello
Anything that matches the first stanza 5 = advertise and DONT proceed to check any further down the route-map
Anything that doesn't match 5 but stanza 10 with as path of 3 = advertise and DONT proceed to check any further down the route-map
Anything that doesn't match 5 or 10 will match stanza 20 and filter on those routes and prepend as path 6500 once to any prefix that has traverse the 6500 AS and as this in its as path attribute
I don't see a catch all statement at the end so everything else is denied
Res Paul
04-30-2014 01:34 PM
Hi Guys
Thanks for all of your help with this question. Are you sure if a 'match' is found without a 'set' then the router will not proceed any further?
Anything that doesn't match 5 or 10 will match stanza 20 and filter on those routes and prepend as path 6500 once to any prefix that has traverse the 6500 AS and as this in its as path attribute
I don't understand the above... not all routes will match stanza 20. Are you also saying that only routes that have 6500 in the path will be prepended with 6500?
Thanks
Russ
05-01-2014 12:09 AM
Hello Russ, The logic is like an ACL, if it doesn't match, move on to the next one... If it does match then it may be denied or permitted depending on the route-map statement. Because you can have...
route-map xxxxxx permit or
route-map xxxxxx deny
so.....
Route-map test permit 5 calls to match a specific prefix - 10.10.0.0/16 this seems to be permitted
if no match found move to next line (10)
Route-map test permit 10 calls an AS path of _65000_ anything that transits AS 65000 to be permitted
if no match found move to next line (20)
Route-map test permit 20 calls on a prefix list route-filter which sets the AS path prepend which is permited.
This route-map prepends all other prefix's with 65100 except for the prefix's in the route filter one (which are deny statements - so the logic is "not these prefix's") - which may not even be advertised.
Everything else will be denied (although line 20 is like your catch all by the looks of it)
So everything apart from the prefix's in route-filter set an AS-PATH prepend of 65100 to anything else.
Hope this makes it more clear.
05-01-2014 01:08 PM
Thanks Bilal..
last question, does this mean that 10.10.0.0/16 subnets and everything that transits AS65000 also gets its AS path prepended with 65100 as well ?
Thanks
05-01-2014 01:51 PM
Hello Russ,
No, so to explain this - anything that match prefix line 5 and 10 are permitted without anything being done to the routes. (there is no set commands for line 5 and 10)
If I wanted to change the AS-Path for the 10.10.0.0/16 subnet I would have done it in line 5 like this:
05-01-2014 03:52 PM
Thanks :).. Does route map 20 also deny the networks in the prefix list from being advertised?
Cheers
Russ
05-01-2014 11:28 PM
Hello Russ,
Yes that is indeed the case.
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