Juniper JUNOSE SOFTWARE FOR E SERIES 11.0.X - BGP AND MPLS CONFIGURATION GUIDE 2009-12-30 Configuration Manual page 228

Software for e series routing platforms bgp and mpls configuration guide
Table of Contents

Advertisement

JUNOSe 11.0.x BGP and MPLS Configuration Guide
In many cases, you can use either show ip bgp regexp or show ip bgp quote-regexp
Examples for regexp and
with the same results. For example, to show all routes whose AS-path starts with
quote-regexp
200 you can use either command as follows:
host1#show ip bgp regexp ^200
Local router ID 192.168.1.232, local AS 100
Prefix
10.99.1.2/32
10.99.1.3/32
10.99.1.4/32
host1#show ip bgp quote-regexp ^200
Local router ID 192.168.1.232, local AS 100
Prefix
10.99.1.2/32
10.99.1.3/32
10.99.1.4/32
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
Prefix
10.99.1.4/32
host1#show ip bgp quote-regexp 10 20
% Invalid input detected at '^' marker.
host1#show ip bgp quote-regexp
Local router ID 192.168.1.232, local AS 100
Prefix
10.99.1.4/32
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
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.
6 paths, 3 distinct prefixes (324 bytes used)
3 paths selected for route table installation
7 path attribute entries (872 bytes used)
Next-hop
MED
10.1.1.2
10.1.1.2
10.1.1.2
6 paths, 3 distinct prefixes (324 bytes used)
3 paths selected for route table installation
7 path attribute entries (872 bytes used)
Next-hop
MED
10.1.1.2
10.1.1.2
10.1.1.2
6 paths, 3 distinct prefixes (324 bytes used)
3 paths selected for route table installation
7 path attribute entries (872 bytes used)
Next-hop
MED
10.1.1.2
6 paths, 3 distinct prefixes (324 bytes used)
3 paths selected for route table installation
7 path attribute entries (872 bytes used)
Next-hop
MED
10.1.1.2
CalPrf
Weight
AS-path
100
100
200
100
100
200 10
100
100
200 10 20
CalPrf
Weight
AS-path
100
100
200
100
100
200 10
100
100
200 10 20
CalPrf
Weight
AS-path
100
100
200 10 20
^
10 20"
CalPrf
Weight
AS-path
100
100
200 10 20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose

Table of Contents