which route becomes active?

Your router is receiving four BGP route advertisements for the 192.168.100.0/24 network. By
default, which route becomes active?

Your router is receiving four BGP route advertisements for the 192.168.100.0/24 network. By
default, which route becomes active?

A.
Route A, which is learned through EBGP with an AS path of 8001 and a MED of 175.

B.
Route B, which is learned through IBGP with an AS path of 9900, a MED of 150, and an IGP
cost of 15.

C.
Route C, which is learned through IBGP with an AS path of 8001, a MED of 100, and an IGP
cost of 10

D.
Route D, which is learned through EBGP with an AS path of 9900 and a MED of 200.

Explanation:



Leave a Reply 7

Your email address will not be published. Required fields are marked *


DanyG

DanyG

I think it should be A as EBGP is always preferred:

Some vendors have a preference (distance) of 20 for external BGP (EBGP) and a distance of 200 for internal BGP (IGBP). Junos OS uses the same value (170) for both EBGP and IBGP. However, this difference between vendors has no operational impact because Junos OS always prefers EBGP routes over IBGP routes.

http://www.juniper.net/techpubs/en_US/junos13.3/topics/example/bgp-preference.html

juni

juni

BGP Route Selection in Junos:

1. Route Preference –
2. Local Preference –
3. AS Path – *
4. Origin –
5. MED – *
6. EBGP over IBGP – *
7. Lowest IGP cost – *
8. Shortest Route Reflection Cluster List –
9. Lowest Router ID –
10. Lowest peer address –

Ref: http://dataplumber.wordpress.com/2012/02/22/bgp-route-selection-in-junos/

So MED is the tiebreaker even source is EBGP or IBGP, pls confirm???

jslaven

jslaven

Same AS path length.
IGP over EGP over Imcomplete << route learned via IGP with a cost of 10, which is lower than a cost of 15

If cost was the same for the IGP route, the MED would be the tie-breaker.

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).

RFC 1771

ORIGIN is a well-known mandatory attribute that defines the origin of the path information.
0 IGP – Network Layer Reachability Information is interior to the originating AS
1 EGP – Network Layer Reachability Information learned via EGP
2 INCOMPLETE – Network Layer Reachability Information learned by some other means

9.4 Originating BGP routes
A BGP speaker may originate BGP routes by injecting routing information acquired by some other means (e.g. via an IGP) into BGP.

Ong

Ong

C is correct
AS path length is same
Origin IGP prefer over EGP (only B and C left here)
Med (can’t compare because different AS number)
Both come from IBGP (Still B and C)
IGP metric (C lower than B)

miro312

miro312

C is correct unless the option always-compare-med is not used

moneim

moneim

answer C , MED is used between different ASs when you use (ALWAYS COMPARE MED)