Huawei Certified Network Professional – Routing and Switching v2 (HCNP-RS) — Question 4
Which statements about the MED attribute are true? (Choose three.)
Answer options
- A. Based on BGP route selection rules, the MED attribute takes precedence over the AS_Path, Preferred-Value, Local-Preference, and Origin attributes.
- B. The MED attribute of a BGP route defaults to 100.
- C. By default, BGP compares MED attributes of only the routes from the same AS. If the compare-different-as-med command is configured, BGP can compare the MED attributes of the routes from different ASs.
- D. By default, if the MED value of a BGP route is not specified, the value 0 is used. If the bestroute med-none-as-maximum command is configured, the maximum
Correct answer: A, C, D
Explanation
The correct answers are A, C, and D. Option A is correct because the MED attribute is considered after Local-Preference but before AS_Path in route selection. Option C is accurate as it describes the default behavior of BGP comparing MED values only within the same AS, with an option to compare across ASs. Option D is misleading because the default MED value is 100, not 0; thus, it is incorrect.