routes that were learned via redistribution will give you an origin code of ? or incomplete... learned from a source other than igp...
routes learned through an igp will give you an origin code of "i" as below... these things we know...
isp#sh ip bgp | b Network
Network Next Hop Metric LocPrf Weight Path
* 172.16.0.0 192.168.1.6 0 0 64512 i
*> 192.168.1.2 0 0 64512 i
*> 192.168.1.0/30 0.0.0.0 0 32768 i
*> 192.168.1.4/30 0.0.0.0 0 32768 i
*> 192.168.100.0 0.0.0.0 0 32768 i
look ma, no routes learned through redistribution...
if you receive routes with an origin code of "e" then immediately check yourself into the EGP mental ward because you're seeing things...
however, a redistributed route that has been defined as a network in bgp, ie, network 10.1.1.0 mask 255.255.255.0, will still have as it's origin "i", not "?", even though it has been redistributed...
lay it on them habibi:
Although network X has been injected into BGP via explicit redistribution of static routes, it is also defined natively to BGP via the network command, which is why it is sent out with an ORIGIN of IGP(i). If network X had not been defined with a static network command, it would have been sent out with an ORIGIN of INCOMPLETE. It should be noted that network X did not need to be redistributed because defining it statically and listing it via the network command would suffice to inject it into BGP.
No comments:
Post a Comment