switch(bgp)# show ip bgp community 200:20 100:50 exact regexp “2”
Local AS : 100 Local Router-id : 10.0.102.138
Status codes: * - valid, > - best, i - internal, e - external, s - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Nexthop Metric LocalPref Weight AsPath
------------------------------------------------------------
* e 11.0.0.0/8 10.0.102.40 0 0 200 ?
Synopsis:
show ip bgp regex
reg-ex
Displays all routes whose AS_PATH matches the regular-expression given.
switch(bgp)# show ip bgp regexp “^300"
Local AS : 100 Local Router-id :
Status codes: * - valid, > - best, i - internal, e - external, s - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Nexthop Metric LocalPref Weight AsPath
------------------------------------------------------------
* e 22.0.0.0/8 10.0.102.198 0 0 300 500 ?
* e 33.0.0.0/8 10.0.102.198 0 0 300 400 ?
Synopsis:
show ip bgp [
ipv4-addr/masklen
[longer-prefix]] route community
Displays basic route information (destination and nexthop) and the communities tagged to the route in full. This
show routine is especially helpful when you want to look at the communities that are tagged to all routes at a
glance.
switch(bgp)# show ip bgp 22.0.0.0/8 route community
Local AS : 100 Local Router-id :
Status codes: * - valid, > - best, i - internal, e - external, s - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Nexthop Community
------------------------------------------------------------
*>e 22.0.0.0/8 10.0.102.40 200:20 100:50 ?
*e 22.0.0.0/8 10.0.102.198 no-export ?
Synopsis:
show ip bgp neighbor [
ipv4-addr
]
Displays information about the state of BGP’s IPv4 peering sessions.
switch(bgp)# show ip bgp neighbor 10.0.102.40
BGP Neighbor 10.0.102.40
BGP Version : 4
Chapter 17 Border Gateway Protocol (BGP)
405