例:ラベルブロックを検証するために、ルーター1からルーター3へのVPLSの構築
この例では、VPLSラベルブロックが特定の設定にどのように割り当てられるかを示しています。以下のセクションで構成されています。
要件
この設定例では、3 台のジュニパーネットワークス ルーターが必要です。
概要とトポロジー
図 1 に示すネットワークでは、ルーター 1 がルーター 3 に疑似配線を確立しています。

各 PE は、ルート ターゲット コミュニティに基づいて、BGP アップデート メッセージに含まれる VPLS NLRI をフィルタリングします。ルート ターゲット(この場合は 8717:2000:2:1)に一致する VPLS NLRI インスタンスがインポートされ、さらに処理されます。ルーター1とルーター3のNLRIを 表1に示します。
ルーター1ルーター3へのNLRIアドバタイズメント |
ルーター 3 ルーター 1 への NLRI アドバタイズメント |
---|---|
RD - 8717:1000 |
RD - 8717:1000 |
VE ID - 1 |
VE ID - 2 |
VE ブロック オフセット - 1 |
VE ブロック オフセット - 1 |
VEブロックサイズ - 8 |
VEブロックサイズ - 8 |
ラベルベース - 262161 |
ラベルベース - 262153 |
ルーター3に疑似配線を設定するには、ルーター1がルーター3へのトラフィック送信に使用するラベルを選択し、ルーター3がトラフィックをそれ自体への送信に使用すると予測するラベルを選択する必要があります。ルーター3からのVPLS NLRIに含まれるサイトIDは2です。
ルーター1は、同じVPLSドメインにおけるサイトID 2の存在を学習します。VBO <= ローカル サイト ID <(VBO +VBS)を使用して、ルーター 1 は、サイト ID 2 によってアドバタイズされたルートが、以前ルーター 3 にアドバタイズされたラベル ブロックとブロック オフセットに適合するかどうかを確認します。この例では、サイトID2がルーター1によってアドバタイズされたVPLS NLRIによってマッピングされ、ルーター1はルーター3に疑似配線を設定する準備ができているので、適合しています。
ルーター3に到達するラベルを選択するには、ルーター1がルーター3によってアドバタイズされたラベルブロックを見て、計算を実行します。PE ルーターが、リモート ピアからのラベル ブロックでサイト ID がマッピングされているか確認するために使用する計算は、VBO <= ローカル サイト ID <(VBO +VBS)です。そのため、ルーター1は、ラベル(262153+(1-1))= 262153を選択して、ルーター3にトラフィックを送信します。同じ式を使用して、ルーター1はアドバタイズした独自のラベルブロックを見て、ラベル(262161+(2 - 1))= 262162を選択してルーター3からトラフィックを受信します。ルーター1は、ルーター3を宛先とするトラフィックが疑似ワイヤラベル262153を伝送し、ルーター3から来るトラフィックには疑似ワイヤラベルが262162が必要なよう、その転送状態をプログラムします。これにより、ルーター3から受信したVPLS NLRIの操作が完了します。ルーター1に、ルーター3に擬似回線が設定されました。
ルーター3の動作は、ルーター1の動作と非常によく似ています。ルーター3のサイトIDは2であるため、ルーター1がアドバタイズするラベルブロックとブロックオフセットに適合するため、ルーター3はラベル(262161+(2-1))= 262162を選択してルーター1にトラフィックを送信します。ルーター3は、アドバタイズした独自のラベルブロックを見て、ルーター1からトラフィックを受信するためにラベル(262153+(1-1))= 262153を選択します。これにより、ルーター1への疑似回線の作成が完了します。
デフォルトでは、VPLS操作の場合、Junos OSは仮想トンネル(VT)ループバックインターフェイスを使用して疑似ワイヤを表します。この例では、VPLS制御プレーン操作に変更がないため、VTインターフェイスの代わりにラベルスイッチインターフェイス(LSI)を使用しています。したがって、MXプラットフォームでは、トンネル物理インターフェイスカード(PIC)が設定されている場合、 階層レベルに ステートメントをno-tunnel-services
[edit routing-instances routing-instance-name protocols vpls]
含める必要があります。
構成
次のセクションでは、 図 1 の例を構成および検証する手順を示します。
ルーター1の設定
手順
ルーター1を設定します。ルーティング インスタンスを
edut
作成します。インスタンスタイプをvpls
指定します。ルート識別を設定し、値8717:1000
を指定します。ルートターゲットを設定し、 の値8717:100
を指定します。VPLSプロトコルを設定します。サイト範囲として指定10
します。サイト ID として指定1
します。ステートメントをno-tunnel-services
含めます。[edit routing-instances] edut { instance-type vpls; interface ge-5/0/2.0; route-distinguisher 8717:1000; vrf-target target:8717:100; protocols { vpls { site-range 10; no-tunnel-services; site router-1 { site-identifier 1; } } } }
ルーター3の設定
手順
ルーター3を設定します。ルーティング インスタンスを
edut
作成します。インスタンスタイプをvpls
指定します。ルート識別を設定し、値8717:2000
を指定します。ルートターゲットを設定し、 の値8717:200
を指定します。VPLSプロトコルを設定します。サイト範囲として指定10
します。サイト ID として指定2
します。ステートメントをno-tunnel-services
含めます。[edit routing-instances] edut { instance-type vpls; interface ge-4/0/2.0; route-distinguisher 8717:2000; vrf-target target:8717:100; protocols { vpls { site-range 10; no-tunnel-services; site router-3 { site-identifier 2; } } } }
VPLSラベル割り当ての検証
手順
図と設定に示すように、サイトAはルーター1に接続されています。サイト A には 1 のサイト ID が割り当てられます。ルーター1がBGPアップデートメッセージを使用してVPLS
edut
へのメンバーシップをアナウンスする前に、ルーター1はデフォルトのラベルブロックを割り当てる必要があります。この例では、ルーター1によって割り当てられたラベルブロックのラベルベースが262161。ルーター1のサイトIDは1であるため、ルーター1は割り当てられたラベルブロックをブロックオフセット1に関連付けます。以下のメッセージは、ルーター1からルーター3に送信され、 コマンドをmonitor traffic interface interface-name
使用して表示されます。user@Router1> monitor traffic interface ge-5/3/2 Jun 14 12:26:31.280818 BGP SEND 10.10.10.1+179 -> 10.10.10.3+53950 Jun 14 12:26:31.280824 BGP SEND message type 2 (Update) length 88 Jun 14 12:26:31.280828 BGP SEND flags 0x40 code Origin(1): IGP Jun 14 12:26:31.280833 BGP SEND flags 0x40 code ASPath(2) length 0: <null> Jun 14 12:26:31.280837 BGP SEND flags 0x40 code LocalPref(5): 100 Jun 14 12:26:31.280844 BGP SEND flags 0xc0 code Extended Communities(16): 2:8717:100 800a:19:0:0 Jun 14 12:26:31.280848 BGP SEND flags 0x90 code MP_reach(14): AFI/SAFI 25/65 Jun 14 12:26:31.280853 BGP SEND nhop 10.10.10.1 len 4 Jun 14 12:26:31.280862 BGP SEND 8717:1000:1:1 (label base : 262161 range : 8, ce id: 1, offset: 1) Jun 14 12:26:31.405067 BGP RECV 10.10.10.3+53950 -> 10.10.10.1+179 Jun 14 12:26:31.405074 BGP RECV message type 2 (Update) length 88 Jun 14 12:26:31.405080 BGP RECV flags 0x40 code Origin(1): IGP Jun 14 12:26:31.405085 BGP RECV flags 0x40 code ASPath(2) length 0: <null> Jun 14 12:26:31.405089 BGP RECV flags 0x40 code LocalPref(5): 100 Jun 14 12:26:31.405096 BGP RECV flags 0xc0 code Extended Communities(16): 2:8717:100 800a:19:0:0 Jun 14 12:26:31.405101 BGP RECV flags 0x90 code MP_reach(14): AFI/SAFI 25/65 Jun 14 12:26:31.405106 BGP RECV nhop 10.10.10.3 len 4 Jun 14 12:26:31.405116 BGP RECV 8717:2000:2:1 (label base : 262153 range : 8, ce id: 2, offset: 1)
図と設定に示すように、サイトBはルーター3に接続されています。サイト B には 2 のサイト ID が割り当てられます。ルーター3がBGPアップデートメッセージを使用してVPLS
edut
へのメンバーシップをアナウンスする前に、ルーター3は、 のラベルベース262153
を持つデフォルトラベルブロックを割り当てます。このラベルブロックのブロックオフセットは1です。これは、独自のサイトIDが2であるため、アドバタイズされるブロックに適合します。以下のメッセージは、ルーター3からルーター1に送信され、 コマンドをmonitor traffic interface interface-name
使用して表示されます。user@Router3> monitor traffic interface ge-2/0/1 Jun 14 12:26:31.282008 BGP SEND 10.10.10.3+53950 -> 10.10.10.1+179 Jun 14 12:26:31.282018 BGP SEND message type 2 (Update) length 88 Jun 14 12:26:31.282026 BGP SEND flags 0x40 code Origin(1): IGP Jun 14 12:26:31.282034 BGP SEND flags 0x40 code ASPath(2) length 0: <null> Jun 14 12:26:31.282041 BGP SEND flags 0x40 code LocalPref(5): 100 Jun 14 12:26:31.282052 BGP SEND flags 0xc0 code Extended Communities(16): 2:8717:100 800a:19:0:0 Jun 14 12:26:31.282078 BGP SEND flags 0x90 code MP_reach(14): AFI/SAFI 25/65 Jun 14 12:26:31.282088 BGP SEND nhop 10.10.10.3 len 4 Jun 14 12:26:31.282102 BGP SEND 8717:2000:2:1 (label base : 262153 range : 8, ce id: 2, offset: 1) Jun 14 12:26:31.283395 BGP RECV 10.10.10.1+179 -> 10.10.10.3+53950 Jun 14 12:26:31.283405 BGP RECV message type 2 (Update) length 88 Jun 14 12:26:31.283412 BGP RECV flags 0x40 code Origin(1): IGP Jun 14 12:26:31.283419 BGP RECV flags 0x40 code ASPath(2) length 0: <null> Jun 14 12:26:31.283426 BGP RECV flags 0x40 code LocalPref(5): 100 Jun 14 12:26:31.283435 BGP RECV flags 0xc0 code Extended Communities(16): 2:8717:100 800a:19:0:0 Jun 14 12:26:31.283443 BGP RECV flags 0x90 code MP_reach(14): AFI/SAFI 25/65 Jun 14 12:26:31.283471 BGP RECV nhop 10.10.10.1 len 4 Jun 14 12:26:31.283486 BGP RECV 8717:1000:1:1 (label base : 262161 range : 8, ce id: 1, offset: 1)
コマンドを使用して、ルーター1の接続ステータスメッセージを
show vpls connections
確認します。ベースラベルは、 、262161
ルーター3からの受信ラベルは 、 で262162
、ルーター3への発信ラベルは です262153
。user@Router1> show vpls connections instance edut extensive Instance: edut Local site: router-1 (1) Number of local interfaces: 1 Number of local interfaces up: 1 IRB interface present: no ge-5/0/2.0 lsi.1049600 2 Intf - vpls edut local site 1 remote site 2 Label-base Offset Range Preference 262161 1 8 100 connection-site Type St Time last up # Up trans 2 rmt Up Jun 14 12:26:31 2009 1 Remote PE: 10.10.10.3, Negotiated control-word: No Incoming label: 262162, Outgoing label: 262153 Local interface: lsi.1049600, Status: Up, Encapsulation: VPLS Description: Intf - vpls edut local site 1 remote site 2 Connection History: Jun 14 12:26:31 2009 status update timer Jun 14 12:26:31 2009 loc intf up lsi.1049600 Jun 14 12:26:31 2009 PE route changed Jun 14 12:26:31 2009 Out lbl Update 262153 Jun 14 12:26:31 2009 In lbl Update 262162 Jun 14 12:26:31 2009 loc intf down Layer-2 VPN connections: Legend for connection status (St) EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS EM -- encapsulation mismatch WE -- interface and instance encaps not same VC-Dn -- Virtual circuit down NP -- interface hardware not present CM -- control-word mismatch -< -- only outbound connection is up CN -- circuit not provisioned >- -- only inbound connection is up OR -- out of range Up -- operational OL -- no outgoing label Dn -- down LD -- local site signaled down CF -- call admission control failure RD -- remote site signaled down SC -- local and remote site ID collision LN -- local site not designated LM -- local site ID not minimum designated RN -- remote site not designated RM -- remote site ID not minimum designated XX -- unknown connection status IL -- no incoming label MM -- MTU mismatch MI -- Mesh-Group ID not availble BK -- Backup connection ST -- Standby connection PF -- Profile parse failure PB -- Profile busy Legend for interface status Up -- operational Dn -- down
コマンドを使用して、ルーター3の接続ステータスメッセージを
show vpls connections
確認します。ベースラベルは、 、262153
ルーター1からの受信ラベルは 、 で262153
、ルーター1への発信ラベルは です262162
。user@Router3> show vpls connections instance edut extensive Instance: edut Local site: router-3 (2) Number of local interfaces: 1 Number of local interfaces up: 1 IRB interface present: no ge-4/0/2.0 lsi.1050368 1 Intf - vpls edut local site 2 remote site 1 Label-base Offset Range Preference 262153 1 8 100 connection-site Type St Time last up # Up trans 1 rmt Up Jun 14 12:26:31 2009 1 Remote PE: 10.10.10.1, Negotiated control-word: No Incoming label: 262153, Outgoing label: 262162 Local interface: lsi.1050368, Status: Up, Encapsulation: VPLS Description: Intf - vpls edut local site 2 remote site 1 Connection History: Jun 14 12:26:31 2009 status update timer Jun 14 12:26:31 2009 loc intf up lsi.1050368 Jun 14 12:26:31 2009 PE route changed Jun 14 12:26:31 2009 Out lbl Update 262162 Jun 14 12:26:31 2009 In lbl Update 262153 Jun 14 12:26:31 2009 loc intf down Layer-2 VPN connections: Legend for connection status (St) EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS EM -- encapsulation mismatch WE -- interface and instance encaps not same VC-Dn -- Virtual circuit down NP -- interface hardware not present CM -- control-word mismatch -< -- only outbound connection is up CN -- circuit not provisioned >- -- only inbound connection is up OR -- out of range Up -- operational OL -- no outgoing label Dn -- down LD -- local site signaled down CF -- call admission control failure RD -- remote site signaled down SC -- local and remote site ID collision LN -- local site not designated LM -- local site ID not minimum designated RN -- remote site not designated RM -- remote site ID not minimum designated XX -- unknown connection status IL -- no incoming label MM -- MTU mismatch MI -- Mesh-Group ID not availble BK -- Backup connection ST -- Standby connection PF -- Profile parse failure PB -- Profile busy Legend for interface status Up -- operational Dn -- down