Other BGP Attributes: Origin Code, IGP Metric to Next-hop, BGP Multipath :
Origin Code:
BGP routes with origin attribute of ‘i’ > ‘e’ > ‘?’ is the order of preference
Usually, we will never see any routes with ‘e’ as origin code since that meant the routes originated on the old EGP routing protocol which is unused
In modern scenarios, we will see either routes having Origin code as
- ‘i’ which means the routes originated via IGP and was injected into BGP via “network” command or “aggregate-address” command or “neighbor default-originate” command
- ‘?’ which means the origin is unclear as the routes were redistributed into BGP