Show Bgp - Cisco ASR 9000 Series Configuration Manual

Aggregation services router
Hide thumbs Also See for ASR 9000 Series:
Table of Contents

Advertisement

Implementing Routing Policy
.
.

Show BGP

The show bgp attach point allows the user to display selected BGP routes that pass the given policy. Any
routes that are not dropped by the attached policy are displayed in a manner similar to the output of the show
bgp command.
In the following example, the show bgp route-policy command is used to display any BGP routes carrying
a MED of 5:
route-policy sample-display
if med eq 5 then
endif
end-policy
!
show bgp route-policy sample-display
A show bgp policy route-policy command also exists, which runs all routes in the RIB past the named policy
as if the RIB were an outbound BGP policy. This command then displays what each route looked like before
it was modified and after it was modified, as shown in the following example:
show rpl route-policy test2
route-policy test2
if (destination in
endif
end-policy
!
show bgp
BGP router identifier 10.0.0.1, local AS number 2
BGP main routing table version 11
BGP scan interval 60 secs
Status codes:s suppressed, d damped, h history, * valid, > best
Origin codes:i - IGP, e - EGP, ? - incomplete
Network
*> 10.0.0.0
*> 10.0.0.0/9
*> 10.0.0.0/10
*> 10.0.0.0/11
*> 10.1.0.0/16
*> 10.3.30.0/24
*> 10.3.30.128/25
*> 10.128.0.0/9
*> 10.255.0.0/24
*> 10.255.64.0/24
....
show bgp policy route-policy test2
10.0.0.0/8 is advertised to 10.0.101.2
Path info:
Attributes after inbound policy was applied:
OL-30423-03
pass
(10.0.0.0/8 ge 8 le 32)) then
set med 333
i - internal, S stale
Next Hop
10.0.1.2
10.0.1.2
10.0.1.2
10.0.1.2
10.0.1.2
10.0.1.2
10.0.1.2
10.0.1.2
10.0.101.2
10.0.101.2
neighbor:10.0.1.2
valid
external
best
next hop:10.0.1.2
MET ORG AS
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.1.x
Metric LocPrf Weight Path
10
10
10
10
10
10
10
10
1000
555
1000
555
neighbor router id:10.0.1.2
Attach Points
0 3 ?
0 3 ?
0 3 ?
0 3 ?
0 3 ?
0 3 ?
0 3 ?
0 3 ?
0 100 e
0 100 e
495

Advertisement

Table of Contents
loading

Table of Contents