29.6.2 コミュニティの確認
(1) 運用コマンド一覧
|
コマンド名 |
説明 |
|---|---|
|
show ipv6 route |
ルーティングテーブルで保持する経路情報を表示します。 |
|
show ipv6 bgp |
BGP4+プロトコルに関する情報を表示します。 |
(2) 学習経路のコミュニティの表示
「29.5.2 コミュニティのコンフィグレーション」に対応する表示を以下に示します。
特定のコミュニティを持つ経路を表示する場合はshow ipv6 bgpコマンドのcommunityパラメータ指定を使用します。
> 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 |
経路が持つコミュニティを表示する場合はshow ipv6 bgpコマンドのrouteパラメータ指定を使用します。
> 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) 学習経路フィルタリング結果の表示
COMMUNITIES属性を使用した学習フィルタリング結果は運用コマンドshow ipv6 bgpを使用して表示します。
> 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) 広告経路のコミュニティの表示
広告したBGP4+経路のCOMMUNITIES属性は運用コマンドshow ipv6 bgpコマンドのadvertised-routesパラメータ指定を使用して表示します。
> 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 |