03-10-2017 11:02 AM - edited 03-05-2019 08:10 AM
Hello everyone,
I'm trying to get some statistics on two bgp connections (multihoming, 1 router connected to two different ISP's, different AS numbers ). I've read this documentation -> http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_bgp/configuration/15-mt/irg-15-mt-book/bgp_policy_accounting.html#d78151e506a1635 which covers almost everything I intend to do. However, I'd like to do the same without communities, matching by destination AS number. According to the docs it's possible but I can't seem to find a way to do this. I'm thinking the config steps should be something like this:
1) route-map my-map permit 10
2) match.... -> Here's where i don't know how to match with the destination AS number
3) set traffic-index <>
then applying:
1) router bgp xxx
2) table-map my-map
3) interface xxx
4) no ip directed-broadcast
5) bgp-policy accounting
Any help would be appreciated. Thanks!
Solved! Go to Solution.
03-10-2017 03:57 PM
Hi
Under the route-map it will be something like match as-path x.
Indeed you need to build as-path acl using regular expression.
If you never done that take a look on this INE blog that explain how to achieve that. They're including some examples depending if you want to catch originated as-path or passing through certain as-path...
http://blog.ine.com/2008/01/06/understanding-bgp-regular-expressions/
If you need more help, let new know.
Thanks
PS: Please don't forget to rate and mark as correct answer if this answered your question
03-10-2017 03:57 PM
Hi
Under the route-map it will be something like match as-path x.
Indeed you need to build as-path acl using regular expression.
If you never done that take a look on this INE blog that explain how to achieve that. They're including some examples depending if you want to catch originated as-path or passing through certain as-path...
http://blog.ine.com/2008/01/06/understanding-bgp-regular-expressions/
If you need more help, let new know.
Thanks
PS: Please don't forget to rate and mark as correct answer if this answered your question
03-14-2017 05:57 AM
Thanks Francesco, I haven't had the chance to try this out but seems the way to go. Thanks for the link!
03-14-2017 06:01 AM
You're welcome
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