300-415 · Question #169
Refer to the exhibit showing a GUI configuration snippet with 'Address Family' set to On and 'ipv4-unicast', 'Route Policy In' and 'Route Policy Out' set to On, and 'Policy Name' as 'eBGP_Community_Po
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
How the community answered
(31 responses)- A16% (5)
- B3% (1)
- C74% (23)
- D6% (2)
Why each option
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.
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'.
The 'local-as' community is typically used within BGP confederations, and the 'default-action reject' would prevent all other server networks from being advertised.
The 'set community 999:65000 no-export' command correctly applies the desired community tag and ensures that the specified server networks are not advertised to external BGP peers, fulfilling the 'must not be advertised outside AS' requirement. The 'default-action accept' allows other routes not matching the prefix list to be processed normally.
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
Source: https://www.cisco.com/c/en/us/td/docs/routers/sdwan/configuration/routing/ios-xe-17/routing-book-sdwan/bgp-config.html
Topics
Community Discussion
No community discussion yet for this question.