Command Reference Guide Enable Mode Command Set
61200510L1-35E Copyright © 2005 ADTRAN 208
Usage Examples
In the following example, all BGP routes are displayed whose community numbers match those listed in
the show ip bgp community command.
>enable
#show ip bgp community local-as 10:405
BGP local router ID is 10.22.131.241, local AS is 302.
Status codes: * valid, > best, i - internal, o - local
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Path
10.22.152.20/30 10.22.131.10 304 302 300 1 3 4 i
10.22.152.24/29 10.22.131.10 304 30 2 300 1 3 4 5 i
10.22.152.36/30 10.22.131.10 304 302 300 1 3 4 i
10.22.152.52/30 10.22.131.10 304 302 300 1 3 4 i
11.0.0.0/30 10.22.131.10 304 302 300 1 3 4 6 i
12.0.0.0/30 10.22.131.10 304 302 300 1 3 4 6 i
13.0.0.0/30 10.22.131.10 304 302 300 1 3 4 6 i
14.0.0.0/30 10.22.131.10 304 302 300 1 3 4 6 i
20.0.0.0/30 10.22.131.10 304 302 300 1 3 4 5 i
21.0.0.0/30 10.22.131.10 304 302 300 1 3 4 5 i
Total RIB entries = 10
Information displayed includes: the ID of this router and its Autonomous System (AS) number; the
destination Network address of the route learned; the Next Hop address to that network; the Metric; the
Local Preference value (set using the set local-preference command); and the AS Path to the destination
network.
The following is a sample output for the show-ip bgp communi ty command with an exact match specified:
BGP routes with the community numbers specified and only those specified are shown
>enable
#show ip bgp community 1001 2001 3001 exact
BGP local router ID is 192.168.9.1, local AS is 252.
Status codes: * valid, > best, i - internal, o - local
Origin codes: i - IGP, e - EGP, ? - incomplete
Network NextHop Metric LocPrf Path
* 192.168.11.0/24 10.22.27.251 249 251 i
* 192.168.12.0/24 10.22.27.251 249 251 i
*> 192.168.32.0/24 10.22.27.249 249 i
*> 192.168.33.0/24 10.22.27.249 249 i
Total RIB entries = 4