03-31-2025, 05:06 AM
This question is testing our knowledge of regular expressions.
The correct list of distractors are:
- Replace as-path access-list 1 with the ip as-path access-list 1 permit ^300$ command <---correct answer
- Replace as-path access-list 1 with the ip as-path access-list 1 permit _300_ command
- Replace as-path access-list 1 with the ip as-path access-list 1 permit ^300_ command
- Replace as-path access-list 1 with the ip as-path access-list 1 permit ^300_ command
The ^300$ regular expression ensures that the route’s AS-PATH begins and ends with 300, meaning the route originated from AS300.
The correct list of distractors are:
- Replace as-path access-list 1 with the ip as-path access-list 1 permit ^300$ command <---correct answer
- Replace as-path access-list 1 with the ip as-path access-list 1 permit _300_ command
- Replace as-path access-list 1 with the ip as-path access-list 1 permit ^300_ command
- Replace as-path access-list 1 with the ip as-path access-list 1 permit ^300_ command
The ^300$ regular expression ensures that the route’s AS-PATH begins and ends with 300, meaning the route originated from AS300.