次の例では、v1 という名前の IPv4 VRF アドレス ファミリおよび VRF 設定用の BGP ネイバー n2 ピアグループについて変換アップデート機能を設定する方法を示します。
(注) |
BGP ネイバーのピアテンプレート設定は、シスコ ソフトウェアの以前のバージョンとの競合により、この機能ではサポートされていません。
|
Device> enable
Device# configure terminal
Device(config)# router bgp 65000
Device(config-router)# address-family ipv4 vrf v1
Device(config-router-af)# neighbor n2 peer-group
Device(config-router-af)# neighbor n2 remote-as 4
Device(config-router-af)# neighbor 10.1.1.1 peer-group n2
Device(config-router-af)# neighbor 10.1.1.1 activate
Device(config-router-af)# neighbor 10.1.1.1 translate-update multicast unicast
Device(config-router-af)# end
次に、show bgp vpnv4 multicast vrf コマンドの出力例を示します。VRF 認識 BGP 変換アップデート機能を設定すると、ネイバーの状態として「NoNeg」と表示されます。
Device# show bgp vpnv4 multicast vrf v1 summary
BGP router identifier 10.1.3.1, local AS number 65000
BGP table version is 8, main routing table version 8
7 network entries using 1792 bytes of memory
8 path entries using 960 bytes of memory
5/3 BGP path/bestpath attribute entries using 1280 bytes of memory
3 BGP AS-PATH entries using 88 bytes of memory
2 BGP extended community entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 4168 total bytes of memory
BGP activity 23/2 prefixes, 33/9 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.1.1.1 4 4 5 10 1 0 0 00:01:10 (NoNeg)
10.1.3.2 4 2 12 10 8 0 0 00:01:33
次に、show ip route multicast vrf コマンドの出力例を示します。
(注) |
変換アップデート機能を使用して設定されたルートには、ルーティング情報ベース(RIB)テーブル内のプレフィックスに対する「+」記号がありません。1 つ目のエントリに表示されているこの記号は、ユニキャスト ルートがマルチキャスト テーブルにリークされていることを示します。ただし、2
つ目のエントリは、マルチキャスト ルートとして表示される変換アップデート ルートです。
|
Device# show ip route multicast vrf v1
B + 10.1.1.0/24 [20/0] via 10.1.1.1 (v1), 00:00:08
B 10.1.1.0/24 [20/0] via 10.1.1.1 (v1), 00:00:42
次に、show running-config コマンドの出力例を示します。
(注) |
プロバイダー エッジ(PE)デバイスでは、BGP ネイバーがマルチキャスト ルーティングに対応していない場合でも、マルチキャスト アドレス ファミリでそのネイバーをアクティブにする必要があります。ユニキャスト アドレス ファミリ識別子にルートマップが設定されており、マルチキャスト
アドレス ファミリ識別子にはルートマップが設定されていない場合、ユニキャスト ルートマップは、ユニキャスト テーブルでのルートの制御は行いますが、マルチキャスト テーブルでのルートの制御は行いません。
|
Device# show running-config
address-family ipv4 vrf v1
redistribute connected
redistribute static
neighbor 10.1.1.1 remote-as 4
neighbor 10.1.1.1 activate
neighbor 10.1.1.1 translate-update multicast unicast
neighbor 10.1.1.1 remote-as 4
neighbor 10.1.1.1 activate
exit-address-family
!
address-family ipv4 multicast vrf v1
redistribute connected
redistribute static
neighbor 10.1.1.1 remote-as 4
neighbor 10.1.1.1 activate
neighbor 10.1.1.1 soft-reconfiguration inbound
neighbor 10.1.1.1 route-map x in
exit-address-family
(注) |
出力の [neighbor 10.1.1.1 soft-reconfiguration inbound] フィールドおよび [neighbor 10.1.1.1 route-map x in] フィールドは、BGP マルチキャスト テーブル内のルートのみが影響を受けることを示しています。
|
次に、さまざまなアドレス ファミリでネイバーを設定する場合の show running-config コマンドの出力例を示します。
(注) |
さまざまなアドレス ファミリで BGP ネイバーを設定することで、ネイバーにアドバタイズされるユニキャスト ルートとマルチキャスト ルートを操作できます。
|
IPv4/IPv6 ユニキャスト アドレス ファミリの設定
Device# show running-config
address-family ipv4
neighbor 20.2.2.1 activate
neighbor 20.2.2.1 translate-update multicast unicast
exit-address-family
!
address-family ipv4 multicast
neighbor 20.2.2.1 activate
exit-address-family
!
IPv4/IPv6 VRF ユニキャスト アドレス ファミリの設定
Device# show running-config
address-family ipv4 vrf v1
neighbor 20.2.2.1 remote-as 4
neighbor 20.2.2.1 activate
neighbor 20.2.2.1 translate-update multicast unicast
exit-address-family
!
address-family ipv4 multicast vrf v1
neighbor 20.2.2.1 remote-as 4
neighbor 20.2.2.1 activate
exit-address-family
!
次に、旧バージョンのシスコ ソフトウェアを搭載したデバイスからの変換アップデート機能の設定例を示します。この場合は、address-family コマンドを実行せずに、IPv4/IPv6 ユニキャスト アドレス ファミリに対してネイバーが設定されています。
アドレス ファミリが設定されていない、古い形式の設定
Device> enable
Device# configure terminal
Device(config)# router bgp 65000
Device(config-router)# neighbor 20.2.2.1 remote-as 4
Device(config-router)# neighbor 20.2.2.1 translate-update nlri ipv4 multicast unicast
Device(config-router-af)# end
アドレス ファミリが設定されていない、新しい形式の設定
Device> enable
Device# configure terminal
Device(config)# router bgp 65000
Device(config-router)# neighbor 20.2.2.1 remote-as 4
Device(config-router)# neighbor 20.2.2.1 translate-update nlri multicast unicast
Device(config-router-af)# end