• Post author:
  • Post category:Blog
  • Reading time:2 mins read
  • Post last modified:June 12, 2024

Refer to the exhibit. A network administrator is troubleshooting BGP configuration and wants to display only routes with AS 300 being the first AS in the AS_Path value. Which regular expression should the administrator use in the command show bgp ipv4 unicast regex regex-pattern ?

CCNPv8 ENCOR (Version 8.0) – Chapters 11 – 12 BGP Exam Answers 09
CCNPv8 ENCOR (Version 8.0) – Chapters 11 – 12 BGP Exam Answers 09
  • show bgp ipv4 unicast regex .300.
  • show bgp ipv4 unicast regex $300
  • show bgp ipv4 unicast regex _300_
  • show bgp ipv4 unicast regex ^300_
Answers Explanation & Hints:

In troubleshooting BGP, Regular expressions (regex) can be used to parse through the large number of available ASNs. Regular expressions are based on query modifiers used to select the appropriate content. The regex pattern ^300_ indicates to only include the lines that list the exact phrase of 300 as the first AS. Some regex query modifiers are as follows:
_ (underscore) – matches a space
^ (caret) – indicates the start of a string
$ (dollar sign) – indicates the end of a string
. (period) – matches a single character, including a space

For more Questions and Answers:

CCNPv8 ENCOR (Version 8.0) – Chapters 11 – 12: BGP Exam Answers Full 100%

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments