Multicast and Routing Guide K/KA/KB.15.15

HP Switch(bgp)# show ip bgp community 20 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 community comm-num... exact regexp aspath-reg-ex
Displays the routes whose community information matches exactly the supplied
community numbers and also whose AS_PATH information matches the supplied
regular expression.
HP 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.
HP 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.
HP 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
BGP show routines 333