Refer to the exhibit. A network administrator is troubleshooting BGP configuration and wants to display only routes that originated in AS 40. Which regular expression should the administrator use in the command show bgp ipv4 unicast regex regex-pattern ?

Last Updated on April 27, 2021 by Admin

Refer to the exhibit. A network administrator is troubleshooting BGP configuration and wants to display only routes that originated in AS 40. 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 10

CCNPv8 ENCOR (Version 8.0) – Chapters 11 – 12 BGP Exam Answers 10

  • show bgp ipv4 unicast regex .40.
  • show bgp ipv4 unicast regex _40$
  • show bgp ipv4 unicast regex *40_
  • show bgp ipv4 unicast regex ^40_
    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 _40$ indicates to only include the lines that originated in AS 40 (the last AS in the AS-Path). 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
    * (asterisk) – matches zero or more characters or patterns

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments