Which origin code is preferred by BGP?
Which origin code is preferred by BGP?
The origin code preferred by BGP is internal. In BGP path selection, the route with the lowest origin type is preferred. The origin types in order of preference are IGP (internal), EGP (external), and Incomplete. IGP has the lowest origin code, making it the most preferred.
A is correct. IGP > EGP > ? (incomplete) which has values 0>1>2. I the path selection lower origin value is preferred.
Selected Answer: A Prefer the route with the lower origin code. Routes learned from an IGP have a lower origin code than those learned from an exterior gateway protocol (EGP), and both have lower origin codes than incomplete routes (routes whose origin is unknown). https://www.juniper.net/documentation/us/en/software/junos/vpn-l2/bgp/topics/concept/routing-protocols-address-representation.html
A is correct.
A is correct. IGP > EGP > ? (incomplete) which has values 0>1>2. I the path selection lower origin value is preferred.
C is correct. IGP > EGP > ? (incomplete).
IGP is "A", not "C"