Configuration Guide Vol. 3


29.6.2 Checking the Community

<Structure of this section>

(1) List of operation commands

The following table lists the operation commands related to communities.

Table 29-20: List of operation commands

Command name

Description

show ipv6 route

Displays routing information stored in the routing table.

show ipv6 bgp

Shows information about the BGP4+ protocol.

(2) Displaying Communities for Learned Routes

[29.5.2 The display corresponding to "Community Configuration" is shown below.

To display routes that have a specific community, use the show ipv6 bgp command with the community parameter specified.

Figure 29-21: Result of executing show ipv6 bgp command (specifying community parameter)
> show ipv6 bgp community 1000:1002
Date 20XX/10/20 21:00:00 UTC
Local AS: 65531, Local Router ID: 192.168.1.100
Status Codes: d dampened, * valid, > active, S Stale, r RIB failure
Origin Codes: i - IGP, e - EGP, ? - incomplete
Network                                     NextHop
         MED      LocalPref  Weight  Path
*> 3ffe:10:10::/64                          fe80::200:87ff:fe16:90d5%VLAN0005
         -        100        0       65532 i
*> 3ffe:10:20::/64                          fe80::200:87ff:fe16:90d5%VLAN0005
         -        100        0       65532 i

To display the communities that a route belongs to, use the show ipv6 bgp command with the route parameter specified.

Figure 29-22: Result of executing show ipv6 bgp command (specifying route parameter)
> show ipv6 bgp route 3ffe:10:10::/64
Date 20XX/10/20 21:09:12 UTC
BGP4+ Peer: 3ffe:172:16:2::2  , Remote AS: 65532
Local AS: 65531, Local Router ID: 192.168.1.100
Status Codes: d dampened, * valid, > active, S Stale, r RIB failure
Route 3ffe:10:10::/64
*> Next Hop fe80::200:87ff:fe16:90d5%VLAN0005
     MED: -, LocalPref: 100, Weight: 0, Type: External route
     Origin: IGP, IGP Metric: 0
     Path: 65532
     Communities: 1000:1002

(3) Displaying learned route filtering results

To display the result of learned route filtering based on the COMMUNITIES attribute, use the show ipv6 bgp operation command.

Figure 29-23: Result of executing show ipv6 bgp command
> show ipv6 bgp
Date 20XX/10/20 21:10:09 UTC
Local AS: 65531, Local Router ID: 192.168.1.100
Status Codes: d dampened, * valid, > active, S Stale, r RIB failure
Origin Codes: i - IGP, e - EGP, ? - incomplete
   Network                                  Next Hop
         MED    LocalPref weight Path
*> 3ffe:10:10::/64                          fe80::200:87ff:fe16:90d5%VLAN0005
         -      120       0      65532 i
*  3ffe:10:10::/64                          3ffe:10:2:2::2
         -      80        0      65533 i
*> 3ffe:10:20::/64                          fe80::200:87ff:fe16:90d5%VLAN0005
         -      120       0      65532 i
*  3ffe:10:20::/64                          3ffe:10:2:2::2
         -      80        0      65533 i
*> 3ffe:192:169:10::/64                     3ffe:192:168:2::2
         -      100       0      i 
*> 3ffe:192:169:20::/64                     3ffe:192:168:2::2
         -      100       0      i 

(4) Displaying Communities for Advertised Routes

To display the COMMUNITIES attribute of advertised BGP4+ routes, use the show ipv6 bgp operation command with the advertised-routes parameter specified.

Figure 29-24: Result of executing show ipv6 bgp command (specifying advertised-routes parameter)
> show ipv6 bgp advertised-routes 3ffe:192:169:10::/64
Date 20XX/10/18 22:44:54 UTC
BGP4+ Peer: 3ffe:10:2:2::2     , Remote AS: 65533
Local AS: 65531, Local Router ID: 192.168.1.100
Status Codes: * valid, > active
Route 3ffe:192:169:10::/64
*> Next Hop 3ffe:192:168:2::2
     MED: -, LocalPref: -, Type: Internal route 
     Origin: IGP
     Path: 65531
     Next Hop Attribute: 3ffe:10:1:2::1
     Communities: 1000:1001
 
BGP4+ Peer: 3ffe:172:16:2::2  , Remote AS: 65532
Local AS: 65531, Local Router ID: 192.168.1.100
Status Codes: * valid, > active
Route 3ffe:192:169:10::/64
*> Next Hop 3ffe:192:168:2::2
     MED: -, LocalPref: - , Type: Internal route
     Origin: IGP
     Path: 65531
     Next Hop Attribute: 3ffe:172:16:2::1
                         fe80::200:87ff:fe21:90da
     Communities: 1000:1001