BGP backdoor route

When implementing BGP there are instances where it is not desirable for eBGP-learned routes to be preferred over Interior Gateway Protocol (IGP)-learned routes. However, because eBGP has an AD of 20, which will take precedence over the AD of any IGP, this will not occur by default.

It is possible to advertise a network using the backdoor keyword like so:

R1(config-router)#network mask backdoor

This will cause the route being advertised by eBGP to have an AD of 200. The eBGP neighbor will see something like this in their BGP table:

R2#show ip route | incl 1.1 B [200/0] via, 00:00:10

This allows any IGP-learned route to take precedence since its AD will be lower.