■
If you filter the display with field options, the usual introductory information
about BGP attributes is displayed only if you issue the
intro
fields option. See
show ip bgp for descriptions of the fields displayed by this keyword.
■
See show ip bgp regexp.
■
See show bgp ipv6 regexp.
Examples for regexp and
quote-regexp
In many cases, you can use either
show ip bgp regexp
or
show ip bgp quote-regexp
with the same results. For example, to show all routes whose AS-path starts with
200 you can use either command as follows:
host1#
show ip bgp regexp ^200
Local router ID 192.168.1.232, local AS 100
6 paths, 3 distinct prefixes (324 bytes used)
3 paths selected for route table installation
7 path attribute entries (872 bytes used)
Prefix Next-hop MED CalPrf Weight AS-path
10.99.1.2/32 10.1.1.2 100 100 200
10.99.1.3/32 10.1.1.2 100 100 200 10
10.99.1.4/32 10.1.1.2 100 100 200 10 20
host1#
show ip bgp quote-regexp ^200
Local router ID 192.168.1.232, local AS 100
6 paths, 3 distinct prefixes (324 bytes used)
3 paths selected for route table installation
7 path attribute entries (872 bytes used)
Prefix Next-hop MED CalPrf Weight AS-path
10.99.1.2/32 10.1.1.2 100 100 200
10.99.1.3/32 10.1.1.2 100 100 200 10
10.99.1.4/32 10.1.1.2 100 100 200 10 20
If the regular expression contains one or more spaces, you must place quotation
marks around the expression in the
show ip bgp quote-regexp
command but not
in the
show ip bgp regexp
command. For example, to show all routes whose AS-path
contains AS number 10 followed immediately by AS number 20:
host1#
show ip bgp regexp 10 20
Local router ID 192.168.1.232, local AS 100
6 paths, 3 distinct prefixes (324 bytes used)
3 paths selected for route table installation
7 path attribute entries (872 bytes used)
Prefix Next-hop MED CalPrf Weight AS-path
10.99.1.4/32 10.1.1.2 100 100 200 10 20
host1#
show ip bgp quote-regexp 10 20
^
% Invalid input detected at '^' marker.
host1#
show ip bgp quote-regexp “ 10 20"
Local router ID 192.168.1.232, local AS 100
6 paths, 3 distinct prefixes (324 bytes used)
3 paths selected for route table installation
7 path attribute entries (872 bytes used)
Prefix Next-hop MED CalPrf Weight AS-path
10.99.1.4/32 10.1.1.2 100 100 200 10 20
The
show ip bgp regexp
command accepts multiple strings as arguments. If you try
to apply output filtering, the command interprets the filter information as a regular
expression and fails:
192
■
Monitoring BGP
JUNOSe 11.1.x BGP and MPLS Configuration Guide
Summary of Contents for BGP
Page 6: ...vi ...
Page 8: ...viii JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1 ...
Page 38: ...2 Border Gateway Protocol JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 234: ...198 Monitoring BGP JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 236: ...200 Multiprotocol Layer Switching JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 542: ...506 Monitoring BGP MPLS VPNs JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 544: ...508 Layer 2 Services Over MPLS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 610: ...574 Virtual Private LAN Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 624: ...588 VPLS References JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 680: ...644 Virtual Private Wire Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 724: ...688 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 725: ...Part 6 Index Index on page 691 Index 689 ...
Page 726: ...690 Index JUNOSe 11 1 x BGP and MPLS Configuration Guide ...