BGP-Weight 2 Flashcards
Multiple-Choice Questions on BGP Weight Attribute
If a router receives multiple paths to a destination, which path is selected first based on BGP Weight?
A) The path with the highest Weight
B) The path with the lowest AS Path
C) The path with the lowest MED
D) The path with the lowest Router ID
Answer: A) The path with the highest Weight
📌 Explanation: The Weight attribute has the highest priority in BGP path selection. If two paths exist, the one with the highest Weight is preferred.
How is BGP Weight applied to routes?
A) It is manually set on outbound advertisements
B) It is automatically set and cannot be changed
C) It can be manually assigned using a route-map
D) It is dynamically learned from the BGP peer
Answer: C) It can be manually assigned using a route-map
📌 Explanation: BGP Weight can be set manually using a route-map applied to a neighbor statement.
Which command correctly sets the BGP Weight attribute for routes learned from a specific neighbor?
A) neighbor 192.168.1.1 weight 5000
B) set weight 5000 in a route-map
C) neighbor 192.168.1.1 set local-preference 5000
D) set as-path prepend 65000
Answer: B) set weight 5000 in a route-map
📌 Explanation: The set weight command within a route-map can be used to apply the Weight attribute to BGP routes.
If two paths exist with the following Weights, which will be preferred?
Path A: Weight = 200
Path B: Weight = 500
A) Path A
B) Path B
C) Both are equal
D) Neither
Answer: B) Path B
📌 Explanation: The path with the highest Weight is always preferred.
What happens to the BGP Weight attribute when a route is advertised to a BGP neighbor?
A) The Weight value is reset to 0
B) The Weight value is propagated unchanged
C) The Weight value is multiplied by 2
D) The Weight value is ignored by the receiving router
Answer: D) The Weight value is ignored by the receiving router
📌 Explanation: Weight is a local attribute and is not advertised to BGP neighbors. It is only relevant to the router that assigns it.