
236
1.8.5.1.12 show ip bgp quote-regexp
Command: show ip bgp [<ADDRESS-FAMILY>] quote-regexp [<WORD>]
Function:
For displaying the BGP route meets the specific AS related regular expression.
Parameter: <ADDRESS-FAMILY>
: address-family such as “ipv4 unicast”
<WORD>
: Regular expression
Default:
None
Command Mode:
All modes
Usage Guide:
Selecting the required route through regular expressions.
Example:
Switch#sh ip bgp quote-regexp ^300$
BGP table version is 2, local router ID is 11.1.1.100
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 100.1.1.0/24 10.1.1.68 0 0 300 ?
Total number of prefixes 1
Switch#sh ip bgp quote-regexp 100
BGP table version is 2, local router ID is 11.1.1.100
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* 100.1.1.0/24 10.1.1.64 0 0 500 100 600 ?
Total number of prefixes 1
1.8.5.1.13 show ip bgp regexp
Command: show ip bgp [<ADDRESS-FAMILY>] regexp [<LINE>]
Function:
For displaying the BGP routes meets specific AS related normal expressions
Parameter: <ADDRESS-FAMILY>
:
>
: address-family such as “ipv4 unicast”
<LINE>
: Regular expression
Default:
None
Command Mode:
all modes.
Usage Guide:
We can select BGP route of the required AS with normal expression
Example: