05-08-2015 08:46 AM - edited 03-05-2019 01:25 AM
I have a question regarding Nat translation and BGP
I have 1 network that I am using nat and would like to add this network into bgp. I have been told the only way to do this is via null route is there a better way of doing this?
05-08-2015 06:52 PM
Anybody have a suggestion thank you
05-09-2015 06:54 AM
there are various ways to inject a route into BGP.
either you have a route in your routing table that you can advertise via the "network x.x.x.x mask y.y.y.y" command. If that route is not available, then yes, using the static route to null puts that network in your routing table that allows for the network command under router BGP to pick it up.
You could also redistribute static, once you have that configured, but that "tags" the route as "incomplete" in eBGP terminology, which gneerally is not even an issue btw.
another option is to advertise an atomic aggregate, once you have PART of that netowkr in your routing table of some sort, you can use the summary address option to advertise a larger subnet.
Now just to note, generally eBGP peering SP's will validate and filter your routing updates to make sure what you advertise is what belongs to you.
IF this is just within your own AS, then there is no issue of course as you have full administrative control over what you advertise and how.
regards!
xander
----
Xander Thuijs CCIE #6775
Principal Engineer IOS-XR/XR routing
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