350-501 · Question #553
Refer to the exhibit. BGP is configured in the network. A network engineer must implement a route filtering policy to manipulate traffic flow between BGP peers. Traffic that matches access list 12 and
The correct answer is A. Implement the continue clause within sequence 10 to check sequence 30 for a match. To apply a BGP route filtering policy where traffic matching both an access list and a prefix list should have its metric set to 200, the engineer must implement a 'continue' clause within the route-map sequence that matches the access list.
Question
Refer to the exhibit. BGP is configured in the network. A network engineer must implement a route filtering policy to manipulate traffic flow between BGP peers. Traffic that matches access list 12 and prefix-list 1 should have its metric set to 200. Which task must the engineer perform to meet the requirement?
Exhibit
Options
- AImplement the continue clause within sequence 10 to check sequence 30 for a match
- BImplement a new sequence number between 10 and 20 to set the metric to 200
- CImplement a set command within sequence 10 to set the metric to 200
- DImplement a new sequence number between 10 and 20 to match access-list and prefix-list 1
How the community answered
(22 responses)- A82% (18)
- B9% (2)
- C5% (1)
- D5% (1)
Why each option
To apply a BGP route filtering policy where traffic matching both an access list and a prefix list should have its metric set to 200, the engineer must implement a 'continue' clause within the route-map sequence that matches the access list.
Implementing the 'continue' clause within sequence 10 (which matches access-list 12) allows the route-map to proceed and evaluate subsequent sequences, specifically sequence 20 (matching prefix-list 1). This ensures that both match conditions (access-list 12 AND prefix-list 1) can be checked before the 'set metric 200' action in sequence 30 is applied to the routes that satisfy both criteria, fulfilling the requirement.
Implementing a new sequence number between 10 and 20 to set the metric to 200 would apply the metric prematurely if only access-list 12 is matched, without checking for a match against prefix-list 1, thus not meeting the 'both match' requirement.
Implementing a 'set' command within sequence 10 to set the metric to 200 would apply the metric if only access-list 12 is matched. This would bypass the check for prefix-list 1 and not achieve the desired 'AND' logic for both conditions.
Implementing a new sequence number between 10 and 20 to match access-list and prefix-list 1 would not resolve the issue as route-maps evaluate sequences in order; a single sequence matching both would be effective, but inserting it between 10 and 20 without `continue` on 10 or 20 would still not achieve the desired flow if using separate match statements.
Concept tested: BGP route-map 'continue' clause for sequential matching
Source: https://www.cisco.com/c/en/us/td/docs/ios/12_0s/feature/guide/sr_bgrt.html
Topics
Community Discussion
No community discussion yet for this question.
