300-415 · Question #169
300-415 Question #169: Real Exam Question with Answer & Explanation
The correct answer is C: policy route-policy eBGP_Community_Policy sequence 1 match address Community_Prefix action accept set community 999:65000 no-export default-action accept lists prefix-list Community_Prefix ip-prefix 20.20.20.0/24 ip-prefix 21.21.21.0/24 ip-prefix 22.22.22.0/24. To prevent specific server networks from being advertised outside the AS while applying a community tag, a route policy should match those networks and set the BGP 'no-export' community.
Question
Options
- Apolicy route-policy eBGP_Community_Policy sequence 1 match address Community_Prefix action accept set community 999:65000 no-advertise default-action accept lists prefix-list Community_Prefix ip-prefix 20.20.20.0/24 ip-prefix 21.21.21.0/24 ip-prefix 22.22.22.0/24
- Bpolicy route-policy eBGP_Community_Policy sequence 1 match address Community_Prefix action accept set community 999:65000 local-as default-action reject lists prefix-list Community_Prefix ip-prefix 20.20.20.0/24 ip-prefix 21.21.21.0/24 ip-prefix 22.22.22.0/24
- Cpolicy route-policy eBGP_Community_Policy sequence 1 match address Community_Prefix action accept set community 999:65000 no-export default-action accept lists prefix-list Community_Prefix ip-prefix 20.20.20.0/24 ip-prefix 21.21.21.0/24 ip-prefix 22.22.22.0/24
- Dpolicy route-policy eBGP_Community_Policy sequence 1 match address Community_Prefix action accept set community 999:65000 no-advertise default-action reject lists prefix-list Community_Prefix ip-prefix 20.20.20.0/24 ip-prefix 21.21.21.0/24 ip-prefix 22.22.22.0/24
Explanation
To prevent specific server networks from being advertised outside the AS while applying a community tag, a route policy should match those networks and set the BGP 'no-export' community.
Common mistakes.
- A. Using 'no-advertise' prevents the routes from being advertised to any BGP peer, including internal ones, which is a stricter restriction than 'not advertised outside AS'.
- B. The 'local-as' community is typically used within BGP confederations, and the 'default-action reject' would prevent all other server networks from being advertised.
- D. Similar to A, 'no-advertise' is too restrictive, preventing advertisement even within the AS, and 'default-action reject' would block other server networks.
Concept tested. BGP communities for route advertisement control
Topics
Community Discussion
No community discussion yet for this question.