Multicast and Routing Guide K/KA/KB.15.15
127.0.0.0/8 reject static 0 0
127.0.0.1/32 lo0 connected 1 0
Synopsis:
show ip route bgp [ipv4-addr]
Displays only the BGP routes in the IP routing table.
ipv4-addr IP address entered to filter the output to display only a particular
host or network in the BGP routing table.
HP Switch(bgp)# show ip route bgp
IP Route Entries
Destination Gateway VLAN Type Sub-Type Metric Dist.
----------------------------------------------------------------
11.0.0.0/8 10.0.102.153 1 bgp 0 20
22.0.0.0/8 10.0.102.40 1 bgp 0 20
33.0.0.0/8 10.0.102.40 1 bgp 0 20
Synopsis:
show bgp community comm-nums
Displays the list of routes who have specific communities tagged to them.
HP Switch(bgp)# show ip community 200:20 200:30
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 11.0.0.0/8 10.0.102.40 0 0 200 ?
*>e 33.0.0.0/8 10.0.102.40 0 0 200 ?
Synopsis:
show ip bgp community regexp community-reg-ex
Displays the routes whose community information matches the supplied regular
expression.
HP Switch(bgp)# show ip bgp community 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 ?
*>e 11.0.0.0/8 10.0.102.153 0 0 200 i
*>e 22.0.0.0/8 10.0.102.40 0 0 200 ?
Synopsis:
show ip bgp community comm-num... regexp aspath-reg-ex
Displays the routes whose community information matches the supplied community
numbers and also the AS_PATH information matches the supplied regular expression.
332 Border Gateway Protocol (BGP)










