There are four ways to distribute a default route in BGP.
Three of them, the network 0.0.0.0 , the default-information originate and redistribution from
another routing protocol, are all similar in the resulting effect: they will inject the default route into
BGP RIB and it will be advertised to all BGP neighbors. The difference is in the origin of the default
route that is injected into BGP. Specifically:
- network 0.0.0.0 will inject the default route into BGP only if the default route is currently
present in the routing table
- redistribution will inject the default route into BGP only if the default route is currently
present in the routing table and if it has been learned by a specific source protocol we are
redistributing from.
- default-information originate causes the default route to be artificially generated and
injected into the BGP RIB, regardlessly of whether it is present in the routing table. The newly
injected default will be advertised to all BGP peers (because it now resides in the BGP RIB)
- neighbor X.X.X default-originate is similar to the default-information originate in that the
default route is “artificially generated” (it does not need to be present in the routing table in
order to make the advertisement effective)
1
.
However, the neighbor X.X.X.X default-originate is different from the the defaultinformation originate in that the default route will be advertised only to this specific BGP
neighbor and not to all existing BGP neighbors as with the previous approaches. The default
route will not be installed in the BGP RIB of the router that is configured with the neighbor
X.X.X.X default-originate command and so it won't be generally advertised to all BGP
neighbors.
No comments:
Post a Comment