12 show ip bgp quote-regexp – Accton Technology ES4626 User Manual

Page 588

Advertising
background image

588

Usage Guide:

We can select the required BGP route by regular expression

Example:

Switch(config)#ip prefix-list PL permit any

Switch(config)#

Switch#sh ip bgp prefix-list PL

BGP table version is 1, local router ID is 10.1.1.64

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.66 0 200 300 ?

*> 10.1.1.100 0 32768 ?

Total number of prefixes 1

13.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

Advertising
This manual is related to the following products: