03-07-2013 01:09 AM - edited 03-07-2019 12:06 PM
Hello Cisco Experts,
We are trying the BGP backdoor command...but this command requires we explicitly specify the prefix/route that the router learns via BGP which should be set as backdoor route when it is also being learnt via an IGP in conditions when the IGP learnt route should be set as more preferable....
network 1.x.x.x mask 255.255.255.0 backdoor is the command...we were having a real situation where we wanted all prefixes learnt via BGP to be set as backdoor...is there a way to do this? the command "network 0.0.0.0 mask 0.0.0.0 backdoor" under BGP did not help...
Thanks in advance for your time and help !!!
03-07-2013 03:10 AM
Hi,
no via backdoor, but there are other ways to do it. As the network backdoor changes the AD of eBGP to 200, You can change this for all the routes with distance command:
distance bgp 200
Or
distance 200 0.0.0.0 255.255.255.255 1
access-list 1 permit 0.0.0.0 255.255.255.255
Hope this helps,
Jose
03-07-2013 05:13 AM
Thanks Jose....in-fact, that was the command we used in our Prod network (although Cisco Docs recommend not to use it ;-) )...however we used the other flavor of this "distance...." command (distance
the only caveat of the "distance...." command is that we have to hard reset the BGP Peers...else this command will NOT work... which is very much a Big NO-NO in a Prod network where we have multiple BGP peers...
however, the "network....backdoor" command does NOT require a hard reset (tested this in GNS3... )...so, i think Cisco may take a look at including this command to do a "catch all"...
03-07-2013 05:36 AM
Cannan,
a hard reset is not necessary, as changing the AD affects only locally. The backdoor command clears the route from the route table automatically for the change of the AD, so you can achieve the same behavior with distance command and clearing the routes manually:
clear ip route -prefix- or clear ip route *.
Hope this helps,
Jose.
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