Concept Guide

show ip bgp regexp
Display the subset of the BGP routing table matching the regular expressions specied.
Syntax
show ip bgp regexp regular-expression [character]
Parameters
regular-expression
[character]
Enter a regular expression then use one or a combination of the following characters to
match:
. = (period) any single character (including a white space).
* = (asterisk) the sequences in a pattern (zero or more sequences).
+ = (plus) the sequences in a pattern (one or more sequences).
? = (question mark) sequences in a pattern (either zero or one sequences).
NOTE: Enter an escape sequence (CTRL+v) prior to entering the ? regular
expression.
[ ] = (brackets) a range of single-character patterns.
( ) = (parenthesis) groups a series of pattern elements to a single element.
{ } = (braces) minimum and the maximum match count.
^ = (caret) the beginning of the input string. If you use the caret at the beginning of a
sequence or range, it matches on everything BUT the characters specied.
$ = (dollar sign) the end of the output string.
Command Modes
EXEC
EXEC Privilege
Supported Modes Full–Switch
Command History
Version Description
9.9(0.0) Introduced on the FN IOM.
9.2(0.0) Introduced on the MXL 10/40GbE Switch IO Module.
Usage Information
The following describes the show ip bgp regexp command shown in the following example.
Field Description
Network Displays the destination network prex of each BGP route.
Next Hop Displays the next hop address of the BGP router. If 0.0.0.0 is listed in this column, then
non-BGP routes exist in the router’s routing table.
Metric Displays the BGP router’s metric, if assigned.
LocPrf Displays the BGP LOCAL_PREF attribute for the route.
Weight Displays the route’s weight
Path Lists all the AS paths the route passed through to reach the destination network.
Example (S4810)
Dell#show ip bgp regexp ^2914+
BGP table version is 3700481, local router ID is 63.114.8.35
Status codes: s suppressed, S stale, d damped, h history, * valid, > best
362 Border Gateway Protocol IPv4 (BGPv4)