このページで
例:マルチセグメント擬似回線の設定
この例では、動的マルチセグメント擬似配線(MS-PW)を設定する方法を示しています。ここでは、ステッチング プロバイダ エッジ(S-PE)デバイスが BGP によって自動的かつ動的に検出され、偽ワイヤが FEC 129 を使用して LDP によってシグナリングされます。この設定には、S-PE 上での最小限のプロビジョニングが必要です。これにより、基盤となるシグナリング プロトコルとして LDP を使用しながら、静的に設定されたレイヤー 2 回線に関連する設定負担を軽減できます。
要件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
M シリーズ マルチサービス エッジ ルーター、MX シリーズ 5G ユニバーサル ルーティング プラットフォーム、T シリーズ コア ルーター、または PTX シリーズ パケット トランスポート ルーターを組み合わせた 6 台のルーター。
終端PE(T-PE)として設定された2つのリモートPEデバイス。
として設定された 2 つの S-PE:
エリア間設定の場合、ルートリフレクタ。
AS間設定の場合、AS境界ルーターまたはルートリフレクタ。
すべてのデバイスでJunos OSリリース13.3以降が実行されています。
開始する前に、以下を行います。
デバイス インターフェイスを設定します。
OSPFまたはその他のIGPプロトコルを設定します。
BGPを設定します。
LDPを設定します。
MPLS を設定します。
概要
Junos OSリリース13.3以降、MPLSパケットスイッチネットワーク(PSN)で、LDPシグナリングとBGP自動検出を使用してFEC 129を使用してMS-PWを設定できます。MS-PW 機能は、ping、traceroute、BFD などの OAM(運用、管理、管理)機能も T-PE デバイスから提供します。
MS-PW で S-PEs の自動検出を有効にするには、 階層レベルで ステートメントを[edit protocols bgp group group-name family l2vpn]含auto-discovery-mspwめます。
family l2vpn {
auto-discovery-mspw;
}
S-PE の自動選択と MS-PW の動的設定は、BGP に大きく依存します。S-PE を自動検出するために FEC 129 擬似配線用に構築された BGP ネットワーク層到達可能性情報(NLRI)は、MS-PW NLRI[draft-ietf-pwe3-dynamic-ms-pw-15.txt] と呼ばれます。MS-PW NLRI は、基本的に、ルート識別(RD)と FEC 129 SAII(Source Attachment Identifier)で構成されるプレフィックスです。これは BGP 自動検出(BGP-AD)ルートと呼ばれ、 と RD:SAIIエンコードされます。
タイプ 2 AI でプロビジョニングされた T-PE のみが、それぞれ独自の MS-PW NLRI を開始します。タイプ 2 AII はグローバルに一意であるため、MS-PW NLRI を使用してタイプ 2 AII がプロビジョニングされる PE デバイスを識別します。タイプ 1 AII とタイプ 2 AII の違いは、MS-PW をサポートするために、BGP で新しいアドレス ファミリー インジケーター(AFI)と後続のアドレス ファミリー識別子(SAFI)を定義する必要があります。MS-PW NLRI を特定するために使用する提案の AFI と SAFI 値のペアは、それぞれ 25 と 6(保留中の IANA 割り当て)です。
AFI と SAFI の値は、S-PE の自動検出をサポートしており、ルートを発信した T-P とシグナリングに参加する S-P の両方で設定する必要があります。
図 1 は、2 つのリモート PE ルーター(T-PE1 と T-PE2)間のエリア間 MS-PW 設定を示しています。プロバイダ(P)ルーターは P1 および P2、S-PE ルーターは S-PE1 および S-PE2 です。MS-PWは、T-PE1とT-PE2の間で確立され、すべてのデバイスは同じAS-AS 100に属しています。S-PE1とS-PE2は同じASに属するため、ルートリフレクタとして機能し、それぞれRR1およびRR2とも呼ばれます。
図 2 は、AS 間 MS-PW 設定を示しています。MS-PW は T-PE1 と T-PE2 の間で確立され、T-PE1、P1、S-PE1 は AS 1 に属し、S-PE2、P2、T-PE2 は AS 2 に属します。S-PE1とS-PE2は異なるASに属するため、ASBRルーターとして設定され、それぞれASBR 1およびASBR 2とも呼ばれます。
次のセクションでは、エリア間および AS 間のシナリオで MS-PW がどのように確立されるかについて説明します。
Minimum Configuration Requirements on S-PE
SS-PW の両端を動的に検出し、T-LDP セッションを動的に設定するには、以下が必要です。
エリア間の MS-PW では、各 S-PE が ABR と BGP ルート リフレクタの両方の役割を果たします。
図 1 に示すように、エリア間のケースでは、S-PE は BGP ルート リフレクタの役割を果たし、BGP-AD ルートをクライアントに反映します。1 つの T-PE によってアドバタイズされた BGP-AD ルートは、最終的にリモート T-PE に到達します。各S-PEによって設定されたネクストホップセルフのために、BGP-ADルートを受信するS-PEまたはT-PEは、常にBGPネクストホップを介して、そのローカルASまたはローカルエリアにBGP-ADをアドバタイズするS-PEを発見することができます。
AS間MS-PWの場合、各S-PEはASBRまたはBGPルートリフレクタロールを果たします。
MS-PW では、2 つの T-PEs がそれぞれ BGP-AD ルートを開始します。S-PEは、T-PEとのIBGPセッションまたは通常のBGP-RRを介してBGP-ADルートを受信すると、 図2に示すように、BGP-ADルートをAS間の1つ以上のEBGPピアに再アドバタイズする前にネクストホップセルフを設定します。
MS-PW の BGP-AD ルートを再アドバタイズまたは反映する場合、各 S-PE はネクストホップセルフを設定する必要があります。
Active and Passive Role of T-PE
両方向の MS-PW に同じ S-PE セットが使用されるようにするために、2 つの T-PE は FEC 129 シグナリングの点で異なる役割を果たします。これは、各 S-PE が MS-PW に対して動的に選択された場合に、T-PE1 と T-PE2 によって異なるパスが選択されることを回避するためです。
FEC 129 を使用して MS-PW がシグナリングされると、各 T-PE が MS-PW のシグナリングを独立して開始することがあります。シグナリング手順により、異なる S-PEs を介して MS-PW の各方向を設定しようとする場合があります。
このような状況を避けるために、T-PE の 1 つが疑似配線シグナリング(アクティブ ロール)を開始し、もう一方はそれぞれの疑似回線 LDP ラベル マッピング メッセージ(パッシブ ロール)を送信する前に LDP ラベル マッピングの受信を待つ必要があります。MS-PW パスを動的に配置する場合、特定の MS-PW に対してシグナリングを開始する前に、アクティブ T-PE(ソース T-PE)とパッシブ T-PE(ターゲット T-PE)を識別する必要があります。SAIIの価値に基づいて、T-PEが能動的な役割を担う決定は、SAII値の大きいT-PEが能動的な役割を果たします。
この例では、T-PE1 と T-PE 2 の SAII 値はそれぞれ 800:800:800 および 700:700:700です。T-PE1 の SAII 値は高いため、アクティブな役割を、T-PE2 は受動的な役割を担います。
Directions for Establishing an MS-PW
MS-PW の設定に S-PE が使用する方向は次のとおりです。
転送方向—アクティブな T-PE からパッシブ T-PE へ。
この方向では、S-PE は BGP-AD ルート ルックアップを実行して、ラベル マッピング メッセージを送信するネクストホップ S-PE を決定します。
逆方向 — パッシブ T-PE からアクティブな T-PE へ。
この方向では、ラベルマッピングメッセージがT-PEから受信され、ステッチングルートがS-PEにインストールされるため、S-PEsはBGP-ADルート検索を実行しません。
この例では、T-PE1 から T-PE2 への転送方向で MS-PW が確立されています。MS-PW を T-PE2 から T-PE1 に配置すると、MS-PW は逆方向に確立されます。
Autodiscovery and Dynamic Selection of S-PE
新しい AFI および SAFI 値は、タイプ 2 AII に基づいて MS-PW をサポートするために BGP で定義されます。この新しいアドレス ファミリーは、S-PE の自動検出をサポートします。このアドレスファミリーは、TPEとSPEの両方で設定する必要があります。
転送方向の MS-PW に沿って使用する次の S-PE を動的に選択するには、レイヤー 2 VPN コンポーネントが必要です。
転送方向では、次のS-PEの選択は、LDPから送信されたBGPおよび疑似ワイヤFEC情報によってアドバタイズされたBGP-ADルートに基づいています。BGP-AD ルートは、パッシブ T-PE(T-PE2)によって逆方向に開始され、疑似ワイヤ FEC 情報は LDP によってアクティブな T-PE(T-PE1)から転送方向に送信されます。
逆方向の場合、次の S-PE(S-PE2)またはアクティブ T-PE(T-PE1)は、転送方向の疑似配線の設定に使用した S-PE(S-PE1)を調べることによって取得されます。
Provisioning a T-PE
FEC 129 タイプ 2 AII をサポートするために、T-PE はリモート T-PE の IP アドレス、グローバル ID、接続回線 ID を設定する必要があります。T-PE で使用する S-PE のセットが明示的に指定されていない明示的なパス。これにより、タイプ 2 AII で各 S-PE をプロビジョニングする必要がなくなります。
Stitching an MS-PW
S-PE は、受信したラベル マッピング メッセージを次の S-PE に転送する前に、以下の MPLS ラベル操作を実行します。
MPLS トンネル ラベルをポップします。
VC ラベルをポップします。
新しい VC ラベルをプッシュします。
次のセグメントに使用する MPLS トンネル ラベルをプッシュします。
Establishing an MS-PW
必要な設定を完了すると、次の方法でMS-PWが確立されます。
SAII 値は、BGP を使用して T-PE1 と T-PE2 間で交換されます。
T-PE1 は、より高い SAII 値で設定されているため、アクティブな T-PE の役割を引き受けます。T-PE2 はパッシブ T-PE になります。
T-PE1 は、T-PE2 が発信した BGP-AD ルートを受信します。これは、受信した BGP-AD ルートの T-PE2 から取得した AII 値を、ローカルにプロビジョニングされた AII 値と比較します。
AII 値が一致する場合、T-PE1 は BGP-AD ルート ルックアップを実行して、最初の S-PE(S-PE1)を選択します。
T-PE1 は、LDP ラベル マッピング メッセージを S-PE1 に送信します。
S-PE1は、T-PE2から発信されたBGP-ADルートと、T-PE1から受信したLDPラベルマッピングメッセージを使用して、転送方向に次のS-PE(S-PE2)を選択します。
これを行うために、S-PE1 は、BGP-AD ルートから取得した SAII を LDP ラベル マッピング メッセージから TAI と比較します。
AII 値が一致する場合、S-PE1 は BGP-AD ルートに関連付けられた BGP ネクスト ホップを介して S-PE2 を見つけます。
S-PE を選択するプロセスは、最後の S-PE が T-PE2 との T-LDP セッションを確立するまで続きます。T-PE2 は、最後の S-PE(S-PE2)から LDP ラベル マッピング メッセージを受信すると、独自のラベル マッピング メッセージを開始して S-PE2 に戻します。
すべてのラベルマッピングメッセージがS-PE1とS-PE2で受信されると、S-PEはステッチングルートをインストールします。したがって、MS-PW が逆方向に確立された場合、S-PEs は BGP-AD ルート ルックアップを実行して、転送方向と同様にネクスト ホップを決定する必要はありません。
OAM Support for an MS-PW
MS-PW が確立された後、T-PE デバイスから次の OAM 機能を実行できます。
Ping
T-PES 間のエンドツーエンドの接続検証
T-PE1、S-PEE、T-PE2 が CW(制御ワード)をサポートしている場合、擬似回線制御プレーンは CW の使用を自動的にネゴシエートします。仮想回線接続検証(CC)制御チャネル(CC)タイプ 3 は、CW が疑似配線で有効になっているかどうかが正しく機能します。ただし、エンドツーエンドの検証のみに使用されるVKVタイプ1は、CWが有効になっている場合にのみサポートされます。
次に、サンプルを示します。
T-P1 から T-PE2 への Ping
user@T-PE1> ping mpls l2vpn fec129 instance instance-name local-id SAII of T-PE1 remote-pe-address address of T-PE2 remote-id TAII of T-PE2
または
user@T-PE1> ping mpls l2vpn fec129 interface CE1-facing interface
T-PE から S-PE への部分的な接続検証
MS-PWの一部をトレースするには、擬似ワイヤラベルのTTLを使用して、中間ノードでCCVVメッセージを強制的にポップアウトすることができます。TTL が期限切れになると、S-PE は CW をチェックするか、UDP 宛先ポート 3502 を持つ有効な IP ヘッダーを確認することにより(CW が使用されていない場合)、パケットが CWV パケットであると判断できます。その後、パケットをCCV処理に方向転換する必要があります。
T-PE1 が擬似ワイヤ ラベルの TTL が 1 の MPLSV メッセージを送信すると、TTL は S-PE で期限切れになります。したがって、T-PE1 は疑似配線の最初のセグメントを検証できます。
RFC 4379 に従って、RPCV パケットが作成されます。S-PE TLV を検査することで、LSAV LSP ping パケットの構築に必要なすべての情報を収集します。このTTLの使用は、RFC 5085に記載されている警告の対象です。S-PE 間または S-PE と T-PE 間の最後から 2 つ目の LSR が疑似ワイヤ ラベル TTL を操作した場合、正しい S-PE で MS-PW から文字化けしない可能性があります。
次に、サンプルを示します。
T-PE1 から S-PE への Ping
user@T-PE1> ping mpls l2vpn fec129 interface CE1-facing interface bottom-label-ttl segment
値は
bottom-label-ttl、S-PE1 の場合は 1、S-PE2 の場合は 2 です。ステートメントは
bottom-label-ttl、正しい VC ラベル TTL を設定するため、パケットは、VCV 処理の正しい SS-PW にポップされます。
メモ:Junos OS は、MS-PW OAM 機能の場合、タイプ 1 およびタイプ 3 に対応しています。PIC-2 はサポートされていません。
Traceroute
Traceroute は、LSP トレースと同様の 1 つの操作で、MS-PW のパスに沿って各 S-PE をテストします。この操作により、MS-PW の実際のデータ パスを決定でき、動的にシグナリングされた MS-PW に使用されます。
user@T-PE1> traceroute mpls l2vpn fec129 interface CE1-facing interface
双方向転送検知
Bidirectional Forwarding Detection(BFD)は、すべてのメディアタイプ、カプセル化、トポロジー、ルーティングプロトコルに高速転送パス障害検出時間を提供するように設計された検出プロトコルです。BFDは、高速転送パス障害検知に加えて、ネットワーク管理者に一貫した障害検知方法を提供します。BFDがダウンした場合、ルーターまたはスイッチはシステムログ(syslog)メッセージをログするように設定できます。
user@T-PE1> show bfd session extensive
構成
エリア間の MS-PW の設定
CLI クイックコンフィギュレーション
この例を迅速に設定するには、以下のコマンドをコピーしてテキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に合わせて必要な詳細を変更してから、 階層レベルの CLI にコマンドを [edit] コピー アンド ペーストします。
T-PE1
set interfaces ge-3/1/0 unit 0 family inet address 192.0.2.1/24 set interfaces ge-3/1/0 unit 0 family mpls set interfaces ge-3/1/2 encapsulation ethernet-ccc set interfaces ge-3/1/2 unit 0 set interfaces lo0 unit 0 family inet address 10.255.10.1/32 primary set routing-options autonomous-system 100 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp family l2vpn auto-discovery-mspw set protocols bgp group mspw type internal set protocols bgp group mspw local-address 10.255.10.1 set protocols bgp group mspw neighbor 10.255.2.1 set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances ms-pw instance-type l2vpn set routing-instances ms-pw interface ge-3/1/2.0 set routing-instances ms-pw route-distinguisher 10.10.10.10:15 set routing-instances ms-pw l2vpn-id l2vpn-id:100:15 set routing-instances ms-pw vrf-target target:100:115 set routing-instances ms-pw protocols l2vpn site CE1 source-attachment-identifier 800:800:800 set routing-instances ms-pw protocols l2vpn site CE1 interface ge-3/1/2.0 target-attachment-identifier 700:700:700 set routing-instances ms-pw protocols l2vpn pseudowire-status-tlv set routing-instances ms-pw protocols l2vpn oam bfd-liveness-detection minimum-interval 300
P1
set interfaces ge-2/0/0 unit 0 family inet address 192.0.2.2/24 set interfaces ge-2/0/0 unit 0 family mpls set interfaces ge-2/0/2 unit 0 family inet address 192.0.2.13/24 set interfaces ge-2/0/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.13.1/32 primary set routing-options autonomous-system 100 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0
S-PE1(RR 1)
set interfaces ge-1/3/1 unit 0 family inet address 192.0.2.9/24 set interfaces ge-1/3/1 unit 0 family mpls set interfaces ge-1/3/2 unit 0 family inet address 192.0.2.22/24 set interfaces ge-1/3/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.2.1/32 primary set routing-options autonomous-system 100 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp family l2vpn auto-discovery-mspw set protocols bgp group mspw type internal set protocols bgp group mspw local-address 10.255.2.1 set protocols bgp group mspw export next-hop-self set protocols bgp group mspw cluster 203.0.113.0 set protocols bgp group mspw neighbor 10.255.10.1 set protocols bgp group mspw neighbor 10.255.3.1 set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set policy-options policy-statement next-hop-self then next-hop self set policy-options policy-statement send-inet0 from protocol bgp set policy-options policy-statement send-inet0 then accept
S-PE2(RR 2)
set interfaces ge-0/3/1 unit 0 family inet address 192.0.2.10/24 set interfaces ge-0/3/1 unit 0 family mpls set interfaces ge-0/3/2 unit 0 family inet address 192.0.2.14/24 set interfaces ge-0/3/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.3.1/32 primary set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp family l2vpn auto-discovery-mspw set protocols bgp group mspw type internal set protocols bgp group mspw local-address 10.255.3.1 set protocols bgp group mspw export next-hop-self set protocols bgp group mspw cluster 198.51.100.0 set protocols bgp group mspw neighbor 10.255.2.1 set protocols bgp group mspw neighbor 10.255.14.1 set protocols bgp group int type internal set protocols bgp group int local-address 10.255.3.1 set protocols bgp group int neighbor 10.255.2.1 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set policy-options policy-statement next-hop-self then next-hop self set policy-options policy-statement send-inet0 from protocol bgp set policy-options policy-statement send-inet0 then accept
P2
set interfaces ge-1/3/1 unit 0 family inet address 192.0.2.5/24 set interfaces ge-1/3/1 unit 0 family mpls set interfaces ge-1/3/2 unit 0 family inet address 192.0.2.4/24 set interfaces ge-1/3/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.4.1/32 primary set routing-options autonomous-system 100 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0
T-PE2
set interfaces ge-2/0/0 encapsulation ethernet-ccc set interfaces ge-2/0/0 unit 0 set interfaces ge-2/0/2 unit 0 family inet address 192.0.2.15/24 set interfaces ge-2/0/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.14.1/32 primary set routing-options autonomous-system 100 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp family l2vpn auto-discovery-mspw set protocols bgp group mspw type internal set protocols bgp group mspw local-address 10.255.14.1 set protocols bgp group mspw neighbor 10.255.3.1 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances ms-pw instance-type l2vpn set routing-instances ms-pw interface ge-2/0/0.0 set routing-instances ms-pw route-distinguisher 10.10.10.10:15 set routing-instances ms-pw l2vpn-id l2vpn-id:100:15 set routing-instances ms-pw vrf-target target:100:115 set routing-instances ms-pw protocols l2vpn site CE2 source-attachment-identifier 700:700:700 set routing-instances ms-pw protocols l2vpn site CE2 interface ge-2/0/0.0 target-attachment-identifier 800:800:800 set routing-instances ms-pw protocols l2vpn pseudowire-status-tlv set routing-instances ms-pw protocols l2vpn oam bfd-liveness-detection minimum-interval 300
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、 設定モードでのCLIエディターの使用を参照してください。
エリア間のシナリオでT-PE1を設定するには:
適切なインターフェイス名、アドレス、およびその他のパラメーターを変更した後、MPLS ドメイン内の T-PE2 デバイスに対してこの手順を繰り返します。
T-PE1 インターフェイスを設定します。
[edit interfaces]user@T-PE1# set ge-3/1/0 unit 0 family inet address 192.0.2.1/24 user@T-PE1# set ge-3/1/0 unit 0 family mpls user@T-PE1# set ge-3/1/2 encapsulation ethernet-ccc user@T-PE1# set ge-3/1/2 unit 0 user@T-PE1# set lo0 unit 0 family inet address 10.255.10.1/32 primary自律システム番号を設定します。
[edit routing-options]user@T-PE1# set autonomous-system 100管理インターフェイスを除く T-PE1 のすべてのインターフェイスで MPLS を有効にします。
[edit protocols]user@T-PE1# set mpls interface all user@T-PE1# set mpls interface fxp0.0 disableBGP を使用して MS-PW を構成する中間 S-PEs の自動検出を有効にします。
[edit protocols]user@T-PE1# set bgp family l2vpn auto-discovery-mspwT-PE1 の BGP グループを設定します。
[edit protocols]user@T-PE1# set bgp group mspw type internalS-PE1 とピアリングするために、T-PE1 の mspw グループにローカル アドレスとネイバー アドレスを割り当てます。
[edit protocols]user@T-PE1# set bgp group mspw local-address 10.255.10.1 user@T-PE1# set bgp group mspw neighbor 10.255.2.1管理インターフェイスを除く、T-PE1 のすべてのインターフェイスで OSPF を設定します。
[edit protocols] user@T-PE1# set ospf area 0.0.0.0 interface lo0.0 user@T-PE1# set ospf area 0.0.0.0 interface all user@T-PE1# set ospf area 0.0.0.0 interface fxp0.0 disable
管理インターフェイスを除くT-PE1のすべてのインターフェイスでLDPを設定します。
[edit protocols] user@T-PE1# set ldp interface all user@T-PE1# set ldp interface fxp0.0 disable user@T-PE1# set ldp interface lo0.0
T-PE1 上のレイヤー 2 VPN ルーティング インスタンスを設定します。
[edit routing-instances] user@T-PE1# set ms-pw instance-type l2vpn
mspwルーティングインスタンスのインターフェイス名を割り当てます。
[edit routing-instances] user@T-PE1# set ms-pw interface ge-3/1/2.0
mspwルーティングインスタンスのルート識別を設定します。
[edit routing-instances] user@T-PE1# set ms-pw route-distinguisher 10.10.10.10:15
FEC 129 MS-PW のレイヤー 2 VPN ID コミュニティを設定します。
[edit routing-instances] user@T-PE1# set ms-pw l2vpn-id l2vpn-id:100:15
mspwルーティングインスタンスのVPNルーティングおよび転送(VRF)ターゲットを設定します。
[edit routing-instances] user@T-PE1# set ms-pw vrf-target target:100:115
mspwルーティングインスタンスのルーティングプロトコルとしてレイヤー2 VPNを使用して、SAI(送信元添付ファイル識別子)値を設定します。
[edit routing-instances] user@T-PE1# set ms-pw protocols l2vpn site CE1 source-attachment-identifier 800:800:800
CE1サイトをVPNに接続するインターフェイス名を割り当て、mspwルーティングインスタンスのルーティングプロトコルとしてレイヤー2 VPNを使用して、ターゲット添付識別子(TAI)値を設定します。
[edit routing-instances] user@T-PE1# set ms-pw protocols l2vpn site CE1 interface ge-3/1/2.0 target-attachment-identifier 700:700:700
(オプション)T-PE1 が MS-PW ステータス TLV を送信するように設定します。
[edit routing-instances] user@T-PE1# set ms-pw protocols l2vpn pseudowire-status-tlv
(オプション)VPNのOAM機能を設定します。
[edit routing-instances] user@T-PE1# set ms-pw protocols l2vpn oam bfd-liveness-detection minimum-interval 300
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、 設定モードでのCLIエディターの使用を参照してください。
エリア間のシナリオでS-PE1(RR1)を設定するには:
適切なインターフェイス名、アドレス、およびその他のパラメーターを変更した後、MPLS ドメイン内の S-PE2(RR 2)デバイスに対してこの手順を繰り返します。
S-PE1 インターフェイスを設定します。
[edit interfaces]user@S-PE1# set ge-1/3/1 unit 0 family inet address 192.0.2.9/24 user@S-PE1# set ge-1/3/1 unit 0 family mpls user@S-PE1# set ge-1/3/2 unit 0 family inet address 192.0.2.22/24 user@S-PE1# set ge-1/3/2 unit 0 family mpls user@S-PE1# set lo0 unit 0 family inet address 10.255.2.1/32 primary自律システム番号を設定します。
[edit routing-options]user@S-PE1# set autonomous-system 100管理インターフェイスを除く T-PE1 のすべてのインターフェイスで MPLS を有効にします。
[edit protocols]user@S-PE1# set mpls interface all user@S-PE1# set mpls interface fxp0.0 disableBGP を使用して S-PE の自動検出を有効にします。
[edit protocols]user@S-PE1# set bgp family l2vpn auto-discovery-mspwS-PE1 の BGP グループを設定します。
[edit protocols]user@S-PE1# set bgp group mspw type internalS-PE1をルートリフレクタとして機能するよう設定します。
[edit protocols]user@S-PE1# set bgp group mspw export next-hop-self user@S-PE1# set bgp group mspw cluster 203.0.113.0S-PE1 の mspw グループにローカル アドレスとネイバー アドレスを割り当て、T-PE1 および S-PE2 とピアリングします。
[edit protocols]user@S-PE1# set bgp group mspw local-address 10.255.2.1 user@S-PE1# set bgp group mspw neighbor 10.255.10.1 (to T-PE1) user@S-PE1# set bgp group mspw neighbor 10.255.3.1 (to S-PE2)管理インターフェイスを除く、S-PE1 のすべてのインターフェイスで OSPF を設定します。
[edit protocols] user@S-PE1# set ospf area 0.0.0.0 interface all user@S-PE1# set ospf area 0.0.0.0 interface fxp0.0 disable user@S-PE1# set ospf area 0.0.0.0 interface lo0.0
管理インターフェイスを除く、S-PE1 のすべてのインターフェイスで LDP を設定します。
[edit protocols] user@S-PE1# set ldp interface all user@S-PE1# set ldp interface fxp0.0 disable user@S-PE1# set ldp interface lo0.0
ネクストホップセルフを有効にし、S-PE1でBGPトラフィックを受け入れるポリシーを定義します。
[edit policy-options] user@S-PE1# set policy-statement next-hop-self then next-hop self user@S-PE1# set policy-statement send-inet0 from protocol bgp user@S-PE1# set policy-statement send-inet0 then accept
結果
設定モードから、 、show routing-optionsshow protocolsshow routing-instancesおよび のコマンドをshow interfaces入力して、設定をshow policy-options確認します。出力結果に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
T-PE1
user@T-PE1# show interfaces
ge-3/1/0 {
unit 0 {
family inet {
address 192.0.2.1/24;
}
family mpls;
}
}
ge-3/1/2 {
encapsulation ethernet-ccc;
unit 0;
}
lo0 {
unit 0 {
family inet {
address 10.255.10.1/32 {
primary;
}
}
}
}
user@T-PE1# show routing-options
autonomous-system 100;
user@T-PE1# show protocols
mpls {
interface all;
interface fxp0.0 {
disable;
}
}
bgp {
family l2vpn {
auto-discovery-mspw;
}
group mspw {
type internal;
local-address 10.255.10.1;
neighbor 10.255.2.1;
}
}
ospf {
area 0.0.0.0 {
interface all;
interface fxp0.0 {
disable;
}
interface lo0.0;
}
}
ldp {
interface all;
interface fxp0.0 {
disable;
}
interface lo0.0;
}
user@T-PE1# show routing-instances
ms-pw {
instance-type l2vpn;
interface ge-3/1/2.0;
route-distinguisher 10.10.10.10:15;
l2vpn-id l2vpn-id:100:15;
vrf-target target:100:115;
protocols {
l2vpn {
site CE1 {
source-attachment-identifier 800:800:800;
interface ge-3/1/2.0 {
target-attachment-identifier 700:700:700;
}
}
pseudowire-status-tlv;
oam {
bfd-liveness-detection {
minimum-interval 300;
}
}
}
}
}
S-PE1(RR 1)
user@S-PE1# show interfaces
ge-1/3/1 {
unit 0 {
family inet {
address 192.0.2.9/24;
}
family mpls;
}
}
ge-1/3/2 {
unit 0 {
family inet {
address 192.0.2.22/24;
}
family mpls;
}
}
lo0 {
unit 0 {
family inet {
address 10.255.2.1/32 {
primary;
}
}
}
}
user@S-PE1# show routing-options
autonomous-system 100;
user@S-PE1# show protocols
mpls {
interface all;
interface fxp0.0 {
disable;
}
}
bgp {
family l2vpn {
auto-discovery-mspw;
}
group mspw {
type internal;
local-address 10.255.2.1;
export next-hop-self;
cluster 203.0.113.0;
neighbor 10.255.10.1;
neighbor 10.255.3.1;
}
}
ospf {
area 0.0.0.0 {
interface lo0.0;
interface all;
interface fxp0.0 {
disable;
}
}
}
ldp {
interface all;
interface fxp0.0 {
disable;
}
interface lo0.0;
}
user@S-PE1# show policy-options
policy-statement next-hop-self {
then {
next-hop self;
}
}
policy-statement send-inet0 {
from protocol bgp;
then accept;
}
デバイスの設定が完了したら、設定モードから を入力します commit 。
AS間MS-PWの設定
CLI クイックコンフィギュレーション
この例を迅速に設定するには、以下のコマンドをコピーしてテキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に合わせて必要な詳細を変更してから、 階層レベルの CLI にコマンドを [edit] コピー アンド ペーストします。
T-PE1
set interfaces ge-3/1/0 unit 0 family inet address 192.0.2.1/24 set interfaces ge-3/1/0 unit 0 family mpls set interfaces ge-3/1/2 encapsulation ethernet-ccc set interfaces ge-3/1/2 unit 0 set interfaces lo0 unit 0 family inet address 10.255.10.1/32 primary set routing-options autonomous-system 1 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp family l2vpn auto-discovery-mspw set protocols bgp group mspw type internal set protocols bgp group mspw local-address 10.255.10.1 set protocols bgp group mspw neighbor 10.255.2.1 set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances ms-pw instance-type l2vpn set routing-instances ms-pw interface ge-3/1/2.0 set routing-instances ms-pw route-distinguisher 10.10.10.10:15 set routing-instances ms-pw l2vpn-id l2vpn-id:100:15 set routing-instances ms-pw vrf-target target:100:115 set routing-instances ms-pw protocols l2vpn site CE1 source-attachment-identifier 800:800:800 set routing-instances ms-pw protocols l2vpn site CE1 interface ge-3/1/2.0 target-attachment-identifier 700:700:700 set routing-instances ms-pw protocols l2vpn pseudowire-status-tlv set routing-instances ms-pw protocols l2vpn oam bfd-liveness-detection minimum-interval 300
P1
set interfaces ge-2/0/0 unit 0 family inet address 192.0.2.2/24 set interfaces ge-2/0/0 unit 0 family mpls set interfaces ge-2/0/2 unit 0 family inet address 192.0.2.13/24 set interfaces ge-2/0/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.13.1/32 primary set routing-options autonomous-system 1 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0
S-PE1(ASBR 1)
set interfaces ge-1/3/1 unit 0 family inet address 192.0.2.9/24 set interfaces ge-1/3/1 unit 0 family mpls set interfaces ge-1/3/2 unit 0 family inet address 192.0.2.22/24 set interfaces ge-1/3/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.2.1/32 primary set routing-options autonomous-system 1 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp family l2vpn auto-discovery-mspw set protocols bgp group to_T-PE1 type internal set protocols bgp group to_T-PE1 local-address 10.255.2.1 set protocols bgp group to_T-PE1 export next-hop-self set protocols bgp group to_T-PE1 neighbor 10.255.10.1 set protocols bgp group to_S-PE2 type external set protocols bgp group to_S-PE2 local-address 10.255.2.1 set protocols bgp group to_S-PE2 peer-as 2 set protocols bgp group to_S-PE2 neighbor 10.255.3.1 multihop ttl 1 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set policy-options policy-statement next-hop-self then next-hop self
S-PE2(ASBR 2)
set interfaces ge-0/3/1 unit 0 family inet address 192.0.2.10/24 set interfaces ge-0/3/1 unit 0 family mpls set interfaces ge-0/3/2 unit 0 family inet address 192.0.2.14/24 set interfaces ge-0/3/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.3.1/32 primary set routing-options autonomous-system 2 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp family l2vpn auto-discovery-mspw set protocols bgp group to_T-PE2 type internal set protocols bgp group to_T-PE2 local-address 10.255.3.1 set protocols bgp group to_T-PE2 export next-hop-self set protocols bgp group to_T-PE2 neighbor 10.255.14.1 set protocols bgp group to_S-PE1 type external set protocols bgp group to_S-PE1 local-address 10.255.3.1 set protocols bgp group to_S-PE1 peer-as 1 set protocols bgp group to_S-PE1 neighbor 10.255.2.1 multihop ttl 1 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set policy-options policy-statement next-hop-self then next-hop self
P2
set interfaces ge-1/3/1 unit 0 family inet address 192.0.2.5/24 set interfaces ge-1/3/1 unit 0 family mpls set interfaces ge-1/3/2 unit 0 family inet address 192.0.2.4/24 set interfaces ge-1/3/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.4.1/32 primary set routing-options autonomous-system 2 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0
T-PE2
set interfaces ge-2/0/0 encapsulation ethernet-ccc set interfaces ge-2/0/0 unit 0 set interfaces ge-2/0/2 unit 0 family inet address 192.0.2.15/24 set interfaces ge-2/0/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.14.1/32 primary set routing-options autonomous-system 2 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp family l2vpn auto-discovery-mspw set protocols bgp group mspw type internal set protocols bgp group mspw local-address 10.255.14.1 set protocols bgp group mspw neighbor 10.255.3.1 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances ms-pw instance-type l2vpn set routing-instances ms-pw interface ge-2/0/0.0 set routing-instances ms-pw route-distinguisher 10.10.10.10:15 set routing-instances ms-pw l2vpn-id l2vpn-id:100:15 set routing-instances ms-pw vrf-target target:100:115 set routing-instances ms-pw protocols l2vpn site CE2 source-attachment-identifier 700:700:700 set routing-instances ms-pw protocols l2vpn site CE2 interface ge-2/0/0.0 target-attachment-identifier 800:800:800 set routing-instances ms-pw protocols l2vpn pseudowire-status-tlv set routing-instances ms-pw protocols l2vpn oam bfd-liveness-detection minimum-interval 300
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、 設定モードでのCLIエディターの使用を参照してください。
AS間シナリオでT-PE1ルーターを設定するには:
適切なインターフェイス名、アドレス、およびその他のパラメーターを変更した後、MPLS ドメイン内の T-PE2 デバイスに対してこの手順を繰り返します。
T-PE1 インターフェイスを設定します。
[edit interfaces]user@T-PE1# set ge-3/1/0 unit 0 family inet address 192.0.2.1/24 user@T-PE1# set ge-3/1/0 unit 0 family mpls user@T-PE1# set ge-3/1/2 encapsulation ethernet-ccc user@T-PE1# set ge-3/1/2 unit 0 user@T-PE1# set lo0 unit 0 family inet address 10.255.10.1/32 primary自律システム番号を設定します。
[edit routing-options]user@T-PE1# set autonomous-system 1管理インターフェイスを除く T-PE1 のすべてのインターフェイスで MPLS を有効にします。
[edit protocols]user@T-PE1# set mpls interface all user@T-PE1# set mpls interface fxp0.0 disableBGP を使用して MS-PW を構成する中間 S-PEs の自動検出を有効にします。
[edit protocols]user@T-PE1# set bgp family l2vpn auto-discovery-mspwT-PE1 の BGP グループを設定します。
[edit protocols]user@T-PE1# set bgp group mspw type internalS-PE1 とピアリングするために、T-PE1 の mspw グループにローカル アドレスとネイバー アドレスを割り当てます。
[edit protocols]user@T-PE1# set bgp group mspw local-address 10.255.10.1 user@T-PE1# set bgp group mspw neighbor 10.255.2.1管理インターフェイスを除く、T-PE1 のすべてのインターフェイスで OSPF を設定します。
[edit protocols] user@T-PE1# set ospf area 0.0.0.0 interface lo0.0 user@T-PE1# set ospf area 0.0.0.0 interface all user@T-PE1# set ospf area 0.0.0.0 interface fxp0.0 disable
管理インターフェイスを除くT-PE1のすべてのインターフェイスでLDPを設定します。
[edit protocols] user@T-PE1# set ldp interface all user@T-PE1# set ldp interface fxp0.0 disable user@T-PE1# set ldp interface lo0.0
T-PE1 上のレイヤー 2 VPN ルーティング インスタンスを設定します。
[edit routing-instances] user@T-PE1# set ms-pw instance-type l2vpn
mspwルーティングインスタンスのインターフェイス名を割り当てます。
[edit routing-instances] user@T-PE1# set ms-pw interface ge-3/1/2.0
mspwルーティングインスタンスのルート識別を設定します。
[edit routing-instances] user@T-PE1# set ms-pw route-distinguisher 10.10.10.10:15
FEC 129 MS-PW のレイヤー 2 VPN ID コミュニティを設定します。
[edit routing-instances] user@T-PE1# set ms-pw l2vpn-id l2vpn-id:100:15
mspwルーティングインスタンスのVPNルーティングおよび転送(VRF)ターゲットを設定します。
[edit routing-instances] user@T-PE1# set ms-pw vrf-target target:100:115
mspwルーティングインスタンスのルーティングプロトコルとしてレイヤー2 VPNを使用して、SAI(送信元添付ファイル識別子)値を設定します。
[edit routing-instances] user@T-PE1# set ms-pw protocols l2vpn site CE1 source-attachment-identifier 800:800:800
CE1サイトをVPNに接続するインターフェイス名を割り当て、mspwルーティングインスタンスのルーティングプロトコルとしてレイヤー2 VPNを使用して、ターゲット添付識別子(TAI)値を設定します。
[edit routing-instances] user@T-PE1# set ms-pw protocols l2vpn site CE1 interface ge-3/1/2.0 target-attachment-identifier 700:700:700
(オプション)T-PE1 が MS-PW ステータス TLV を送信するように設定します。
[edit routing-instances] user@T-PE1# set ms-pw protocols l2vpn pseudowire-status-tlv
(オプション)VPNのOAM機能を設定します。
[edit routing-instances] user@T-PE1# set ms-pw protocols l2vpn oam bfd-liveness-detection minimum-interval 300
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、 設定モードでのCLIエディターの使用を参照してください。
AS間シナリオでS-PE1(ASBR 1)を設定するには:
適切なインターフェイス名、アドレス、およびその他のパラメーターを変更した後、MPLS ドメイン内の S-PE2(ASBR 2)デバイスに対してこの手順を繰り返します。
S-PE1(ASBR 1)インターフェイスを設定します。
[edit interfaces]user@S-PE1# set ge-1/3/1 unit 0 family inet address 192.0.2.9/24 user@S-PE1# set ge-1/3/1 unit 0 family mpls user@S-PE1# set ge-1/3/2 unit 0 family inet address 192.0.2.22/24 user@S-PE1# set ge-1/3/2 unit 0 family mpls user@S-PE1# set lo0 unit 0 family inet address 10.255.2.1/32 primary自律システム番号を設定します。
[edit routing-options]user@S-PE1# set autonomous-system 1管理インターフェイスを除く、S-PE1(ASBR 1)のすべてのインターフェイスでMPLSを有効にします。
[edit protocols]user@S-PE1# set mpls interface all user@S-PE1# set mpls interface fxp0.0 disableBGP を使用して S-PE の自動検出を有効にします。
[edit protocols]user@S-PE1# set bgp family l2vpn auto-discovery-mspwS-PE1(ASBR 1)がT-PE1とピアリングするためのIBGPグループを設定します。
[edit protocols]user@S-PE1# set bgp group to_T-PE1 type internalIBGPグループパラメータを設定します。
[edit protocols]user@S-PE1# set bgp group to_T-PE1 local-address 10.255.2.1 user@S-PE1# set bgp group to_T-PE1 export next-hop-self user@S-PE1# set bgp group to_T-PE1 neighbor 10.255.10.1S-PE2(ASBR 2)とピアリングするS-PE1(ASBR 1)のEBGPグループを設定します。
[edit protocols]user@S-PE1# set bgp group to_S-PE2 type externalEBGP グループ パラメーターを設定します。
[edit protocols]user@S-PE1# set bgp group to_S-PE2 local-address 10.255.2.1 user@S-PE1# set bgp group to_S-PE2 peer-as 2 user@S-PE1# set bgp group to_S-PE2 neighbor 10.255.3.1 multihop ttl 1管理インターフェイスを除く、S-PE1(ASBR 1)のすべてのインターフェイスでOSPFを設定します。
[edit protocols] user@S-PE1# set ospf area 0.0.0.0 interface all user@S-PE1# set ospf area 0.0.0.0 interface fxp0.0 disable user@S-PE1# set ospf area 0.0.0.0 interface lo0.0 passive
管理インターフェイスを除く、S-PE1(ASBR 1)のすべてのインターフェイスでLDPを設定します。
[edit protocols] user@S-PE1# set ldp interface all user@S-PE1# set ldp interface fxp0.0 disable user@S-PE1# set ldp interface lo0.0
S-PE1(ASBR 1)でネクストホップセルフを有効にするポリシーを定義します。
[edit policy-options] user@S-PE1# set policy-statement next-hop-self then next-hop self
結果
設定モードから、 、show routing-optionsshow protocolsshow routing-instancesおよび のコマンドをshow interfaces入力して、設定をshow policy-options確認します。出力結果に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
T-PE1
user@T-PE1# show interfaces
ge-3/1/0 {
unit 0 {
family inet {
address 192.0.2.1/24;
}
family mpls;
}
}
ge-3/1/2 {
encapsulation ethernet-ccc;
unit 0;
}
lo0 {
unit 0 {
family inet {
address 10.255.10.1/32 {
primary;
}
}
}
}
user@T-PE1# show routing-options
autonomous-system 1;
user@T-PE1# show protocols
mpls {
interface all;
interface fxp0.0 {
disable;
}
}
bgp {
family l2vpn {
auto-discovery-mspw;
}
group mspw {
type internal;
local-address 10.255.10.1;
neighbor 10.255.2.1;
}
}
ospf {
area 0.0.0.0 {
interface all;
interface fxp0.0 {
disable;
}
interface lo0.0;
}
}
ldp {
interface all;
interface fxp0.0 {
disable;
}
interface lo0.0;
}
user@T-PE1# show routing-instances
ms-pw {
instance-type l2vpn;
interface ge-3/1/2.0;
route-distinguisher 10.10.10.10:15;
l2vpn-id l2vpn-id:100:15;
vrf-target target:100:115;
protocols {
l2vpn {
site CE1 {
source-attachment-identifier 800:800:800;
interface ge-3/1/2.0 {
target-attachment-identifier 700:700:700;
}
}
pseudowire-status-tlv;
oam {
bfd-liveness-detection {
minimum-interval 300;
}
}
}
}
}
S-PE1(RR 1)
user@S-PE1# show interfaces
ge-1/3/1 {
unit 0 {
family inet {
address 192.0.2.9/24;
}
family mpls;
}
}
ge-1/3/2 {
unit 0 {
family inet {
address 192.0.2.22/24;
}
family mpls;
}
}
lo0 {
unit 0 {
family inet {
address 10.255.2.1/32 {
primary;
}
}
}
}
user@T-PE1# show routing-options
autonomous-system 1;
user@S-PE1# show protocols
mpls {
interface all;
interface fxp0.0 {
disable;
}
}
bgp {
family l2vpn {
auto-discovery-mspw;
}
group to_T-PE1 {
type internal;
local-address 10.255.2.1;
export next-hop-self;
neighbor 10.255.10.1;
}
group to_S-PE2 {
type external;
local-address 10.255.2.1;
peer-as 2;
neighbor 10.255.3.1 {
multihop {
ttl 1;
}
}
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface all;
interface fxp0.0 {
disable;
}
}
}
ldp {
interface all;
interface fxp0.0 {
disable;
}
interface lo0.0;
}
user@T-PE1# show policy-options
policy-statement next-hop-self {
then {
next-hop self;
}
}
デバイスの設定が完了したら、設定モードから を入力します commit 。
検証
設定が正しく機能していることを確認します。
- ルートの検証
- LDP データベースの検証
- T-PE1 での MS-PW 接続の確認
- S-PE1 での MS-PW 接続の確認
- S-PE2 での MS-PW 接続の確認
- T-PE2 での MS-PW 接続の確認
ルートの検証
目的
期待されるルートが学習されていることを確認します。
アクション
運用モードから、 、mpls.0ldp.l2vpn.1および ルーティングテーブルに対して bgp.l2vpn.1コマンドをms-pw.l2vpn.1実行show routeします。
運用モードから、 コマンドを show route table bgp.l2vpn.1 実行します。
user@T-PE1> show route table bgp.l2vpn.1
bgp.l2vpn.1: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.10.10.10:15:700:0.0.2.188:700/160 AD2
*[BGP/170] 16:13:11, localpref 100, from 10.255.2.1
AS path: 2 I, validation-state: unverified
> to 203.0.113.2 via ge-3/1/0.0, Push 300016
運用モードから、 コマンドを show route table ldp.l2vpn.1 実行します。
user@T-PE1> show route table ldp.l2vpn.1
ldp.l2vpn.1: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.255.2.1:CtrlWord:5:100:15:700:0.0.2.188:700:800:0.0.3.32:800/304 PW2
*[LDP/9] 16:21:27
Discard
運用モードから、 コマンドを show route table mpls.0 実行します。
user@T-PE1> show route table mpls.0
mpls.0: 12 destinations, 12 routes (12 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0 *[MPLS/0] 1w6d 00:28:26, metric 1
Receive
1 *[MPLS/0] 1w6d 00:28:26, metric 1
Receive
2 *[MPLS/0] 1w6d 00:28:26, metric 1
Receive
13 *[MPLS/0] 1w6d 00:28:26, metric 1
Receive
299920 *[LDP/9] 1w5d 01:26:08, metric 1
> to 203.0.113.2 via ge-3/1/0.0, Pop
299920(S=0) *[LDP/9] 1w5d 01:26:08, metric 1
> to 203.0.113.2 via ge-3/1/0.0, Pop
299936 *[LDP/9] 1w5d 01:26:08, metric 1
> to 203.0.113.2 via ge-3/1/0.0, Swap 300016
300096 *[LDP/9] 16:22:35, metric 1
> to 203.0.113.2 via ge-3/1/0.0, Swap 300128
300112 *[LDP/9] 16:22:35, metric 1
> to 203.0.113.2 via ge-3/1/0.0, Swap 300144
300128 *[LDP/9] 16:22:35, metric 1
> to 203.0.113.2 via ge-3/1/0.0, Swap 300160
300144 *[L2VPN/7] 16:22:33
> via ge-3/1/2.0, Pop Offset: 4
ge-3/1/2.0 *[L2VPN/7] 16:22:33, metric2 1
> to 203.0.113.2 via ge-3/1/0.0, Push 300176, Push 300016(top) Offset: 252
運用モードから、 コマンドを show route table ms-pw.l2vpn.1 実行します。
user@T-PE1> show route table ms-pw.l2vpn.1
ms-pw.l2vpn.1: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.10.10.10:15:700:0.0.2.188:700/160 AD2
*[BGP/170] 16:23:27, localpref 100, from 10.255.2.1
AS path: 2 I, validation-state: unverified
> to 203.0.113.2 via ge-3/1/0.0, Push 300016
10.10.10.10:15:800:0.0.3.32:800/160 AD2
*[L2VPN/170] 1w5d 23:25:19, metric2 1
Indirect
10.255.2.1:CtrlWord:5:100:15:700:0.0.2.188:700:800:0.0.3.32:800/304 PW2
*[LDP/9] 16:23:25
Discard
10.255.2.1:CtrlWord:5:100:15:800:0.0.3.32:800:700:0.0.2.188:700/304 PW2
*[L2VPN/7] 16:23:27, metric2 1
> to 203.0.113.2 via ge-3/1/0.0, Push 300016
意味
出力には、自動検出(AD)ルートを含むすべての学習したルートが表示されます。
AD2 のプレフィックス形式は、 RD:SAII-type2で、次のようになります。
RDは、ルート識別値です。SAII-type2は、タイプ 2 のソース添付ファイル識別子値です。
PW2 プレフィックス形式は、 Neighbor_Addr:C:PWtype:l2vpn-id:SAII-type2:TAII-type2次のとおりです。
Neighbor_Addrは、隣接する S-PE デバイスのループバック アドレスです。Cは、CW(Control Word)が有効かどうかを示します。CCWがCtrlWord設定されている場合です。CCWがNoCtrlWord設定されていない場合です。
PWtypeは、疑似回線のタイプを示しています。PWtypeは、4イーサネットタグ付きモードの場合です。PWtypeイーサネット5のみの場合です。
l2vpn-idは、MS-PW ルーティング インスタンスのレイヤー 2 VPN ID です。SAII-type2は、タイプ 2 のソース添付ファイル識別子値です。TAII-type2は、タイプ2のターゲット添付ファイル識別子値です。
LDP データベースの検証
目的
T-PE1 が S-PE1 から受信し、T-PE1 から S-PE1 に送信された MS-PW ラベルを検証します。
アクション
運用モードから、 コマンドを show ldp database 実行します。
user@T-PE1> show ldp database
Input label database, 10.255.10.1:0--10.255.2.1:0
Label Prefix
3 10.255.2.1/32
300112 10.255.3.1/32
300128 10.255.4.1/32
299968 10.255.10.1/32
299904 10.255.13.1/32
300144 10.255.14.1/32
300176 FEC129 CtrlWord ETHERNET 000a0064:0000000f 000002bc:000002bc:000002bc 00000320:00000320:00000320
Output label database, 10.255.10.1:0--10.255.2.1:0
Label Prefix
299936 10.255.2.1/32
300096 10.255.3.1/32
300112 10.255.4.1/32
3 10.255.10.1/32
299920 10.255.13.1/32
300128 10.255.14.1/32
300144 FEC129 CtrlWord ETHERNET 000a0064:0000000f 00000320:00000320:00000320 000002bc:000002bc:000002bc
Input label database, 10.255.10.1:0--10.255.13.1:0
Label Prefix
300016 10.255.2.1/32
300128 10.255.3.1/32
300144 10.255.4.1/32
300080 10.255.10.1/32
3 10.255.13.1/32
300160 10.255.14.1/32
Output label database, 10.255.10.1:0--10.255.13.1:0
Label Prefix
299936 10.255.2.1/32
300096 10.255.3.1/32
300112 10.255.4.1/32
3 10.255.10.1/32
299920 10.255.13.1/32
300128 10.255.14.1/32
意味
プレフィックス付き FEC129 ラベルはMS-PWに関連しています。
T-PE1 での MS-PW 接続の確認
目的
すべての FEC 129 MS-PW 接続が正しく起動していることを確認します。
アクション
運用モードから、 コマンドを show l2vpn connections extensive 実行します。
user@T-PE1> show l2vpn connections extensive
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 available
BK -- Backup connection ST -- Standby connection
PF -- Profile parse failure PB -- Profile busy
RS -- remote site standby SN -- Static Neighbor
LB -- Local site not best-site RB -- Remote site not best-site
VM -- VLAN ID mismatch
Legend for interface status
Up -- operational
Dn -- down
Instance: ms-pw
L2vpn-id: 100:15
Number of local interfaces: 1
Number of local interfaces up: 1
ge-3/1/2.0
Local source-attachment-id: 800:0.0.3.32:800 (CE1)
Target-attachment-id Type St Time last up # Up trans
700:0.0.2.188:700 rmt Up Sep 18 01:10:55 2013 1
Remote PE: 10.255.2.1, Negotiated control-word: Yes (Null)
Incoming label: 300048, Outgoing label: 300016
Negotiated PW status TLV: Yes
local PW status code: 0x00000000, Neighbor PW status code: 0x00000000
Local interface: ge-3/1/2.0, Status: Up, Encapsulation: ETHERNET
Pseudowire Switching Points :
Local address Remote address Status
10.255.2.1 10.255.3.1 forwarding
10.255.3.1 10.255.14.1 forwarding
Connection History:
Sep 18 01:10:55 2013 status update timer
Sep 18 01:10:55 2013 PE route changed
Sep 18 01:10:55 2013 Out lbl Update 300016
Sep 18 01:10:55 2013 In lbl Update 300048
Sep 18 01:10:55 2013 loc intf up ge-3/1/2.0
出力で以下のフィールドをチェックして、T-PE デバイス間で MS-PW が確立されていることを確認します。
Target-attachment-id—TAI 値が T-PE2 の SAI 値であるかどうかを確認します。Remote PE— T-PE2 ループバック アドレスがリストされているか確認します。Negotiated PW status TLV—値Yesが . であることを確認します。Pseudowire Switching Points—スイッチング ポイントが S-PE1 から S-PE2 へ、S-PE2 から T-PE2 に一覧表示されているか確認します。
意味
MS-PW は、T-PE1 と T-PE2 の間で転送方向に確立されます。
S-PE1 での MS-PW 接続の確認
目的
mspw ルーティング インスタンスに対して、すべての FEC 129 MS-PW 接続が正しく表示されていることを確認します。
アクション
運用モードから、 コマンドを show l2vpn connections instance __MSPW__ extensive 実行します。
user@S-PE1> show l2vpn connections instance __MSPW__ extensive
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 available
BK -- Backup connection ST -- Standby connection
PF -- Profile parse failure PB -- Profile busy
RS -- remote site standby SN -- Static Neighbor
LB -- Local site not best-site RB -- Remote site not best-site
VM -- VLAN ID mismatch
Legend for interface status
Up -- operational
Dn -- down
Instance: __MSPW__
L2vpn-id: 100:15
Local source-attachment-id: 700:0.0.2.188:700
Target-attachment-id Type St Time last up # Up trans
800:0.0.3.32:800 rmt Up Sep 18 01:17:38 2013 1
Remote PE: 10.255.10.1, Negotiated control-word: Yes (Null), Encapsulation: ETHERNET
Incoming label: 300016, Outgoing label: 300048
Negotiated PW status TLV: Yes
local PW status code: 0x00000000, Neighbor PW status code: 0x00000000
Local source-attachment-id: 800:0.0.3.32:800
Target-attachment-id Type St Time last up # Up trans
700:0.0.2.188:700 rmt Up Sep 18 01:17:38 2013 1
Remote PE: 10.255.3.1, Negotiated control-word: Yes (Null), Encapsulation: ETHERNET
Incoming label: 300000, Outgoing label: 300064
Negotiated PW status TLV: Yes
local PW status code: 0x00000000, Neighbor PW status code: 0x00000000
Pseudowire Switching Points :
Local address Remote address Status
10.255.3.1 10.255.14.1 forwarding
出力で以下のフィールドをチェックして、T-PE デバイス間で MS-PW が確立されていることを確認します。
Target-attachment-id—TAI 値が T-PE2 の SAI 値であるかどうかを確認します。Remote PE— T-PE1 および S-PE2 ループバック アドレスがリストされているか確認します。Negotiated PW status TLV—値Yesが . であることを確認します。Pseudowire Switching Points—スイッチング ポイントが S-PE2 から T-PE2 にリストされているか確認します。
意味
MS-PW は、T-PE1 と T-PE2 の間で転送方向に確立されます。
S-PE2 での MS-PW 接続の確認
目的
mspw ルーティング インスタンスに対して、すべての FEC 129 MS-PW 接続が正しく表示されていることを確認します。
アクション
運用モードから、 コマンドを show l2vpn connections instance __MSPW__ extensive 実行します。
user@S-PE2> show l2vpn connections instance __MSPW__ extensive
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 available
BK -- Backup connection ST -- Standby connection
PF -- Profile parse failure PB -- Profile busy
RS -- remote site standby SN -- Static Neighbor
LB -- Local site not best-site RB -- Remote site not best-site
VM -- VLAN ID mismatch
Legend for interface status
Up -- operational
Dn -- down
Instance: __MSPW__
L2vpn-id: 100:15
Local source-attachment-id: 700:0.0.2.188:700
Target-attachment-id Type St Time last up # Up trans
800:0.0.3.32:800 rmt Up Sep 18 00:58:55 2013 1
Remote PE: 10.255.2.1, Negotiated control-word: Yes (Null), Encapsulation: ETHERNET
Incoming label: 300064, Outgoing label: 300000
Negotiated PW status TLV: Yes
local PW status code: 0x00000000, Neighbor PW status code: 0x00000000
Pseudowire Switching Points :
Local address Remote address Status
10.255.2.1 10.255.10.1 forwarding
Local source-attachment-id: 800:0.0.3.32:800
Target-attachment-id Type St Time last up # Up trans
700:0.0.2.188:700 rmt Up Sep 18 00:58:55 2013 1
Remote PE: 10.255.14.1, Negotiated control-word: Yes (Null), Encapsulation: ETHERNET
Incoming label: 300048, Outgoing label: 300112
Negotiated PW status TLV: Yes
local PW status code: 0x00000000, Neighbor PW status code: 0x00000000
出力で以下のフィールドをチェックして、T-PE デバイス間で MS-PW が確立されていることを確認します。
Target-attachment-id—TAI 値が T-PE1 の SAI 値であるかどうかを確認します。Remote PE—S-PE1 および T-PE2 ループバック アドレスがリストされているか確認します。Negotiated PW status TLV—値Yesが . であることを確認します。Pseudowire Switching Points—スイッチング ポイントが S-PE1 から T-PE1 にリストされているか確認します。
意味
MS-PW は、T-PE1 と T-PE2 の間で逆方向に確立されます。
T-PE2 での MS-PW 接続の確認
目的
すべての FEC 129 MS-PW 接続が正しく起動していることを確認します。
アクション
運用モードから、 コマンドを show l2vpn connections extensive 実行します。
user@T-PE2> show l2vpn connections extensive
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 available
BK -- Backup connection ST -- Standby connection
PF -- Profile parse failure PB -- Profile busy
RS -- remote site standby SN -- Static Neighbor
LB -- Local site not best-site RB -- Remote site not best-site
VM -- VLAN ID mismatch
Legend for interface status
Up -- operational
Dn -- down
Instance: ms-pw
L2vpn-id: 100:15
Number of local interfaces: 1
Number of local interfaces up: 1
ge-2/0/0.0
Local source-attachment-id: 700:0.0.2.188:700 (CE2)
Target-attachment-id Type St Time last up # Up trans
800:0.0.3.32:800 rmt Up Sep 18 01:35:21 2013 1
Remote PE: 10.255.3.1, Negotiated control-word: Yes (Null)
Incoming label: 300112, Outgoing label: 300048
Negotiated PW status TLV: Yes
local PW status code: 0x00000000, Neighbor PW status code: 0x00000000
Local interface: ge-2/0/0.0, Status: Up, Encapsulation: ETHERNET
Pseudowire Switching Points :
Local address Remote address Status
10.255.3.1 10.255.2.1 forwarding
10.255.2.1 10.255.10.1 forwarding
Connection History:
Sep 18 01:35:21 2013 status update timer
Sep 18 01:35:21 2013 PE route changed
Sep 18 01:35:21 2013 Out lbl Update 300048
Sep 18 01:35:21 2013 In lbl Update 300112
Sep 18 01:35:21 2013 loc intf up ge-2/0/0.0
出力で以下のフィールドをチェックして、T-PE デバイス間で MS-PW が確立されていることを確認します。
Target-attachment-id—TAI 値が T-PE1 の SAI 値であるかどうかを確認します。Remote PE— T-PE1 ループバック アドレスがリストされているか確認します。Negotiated PW status TLV—値Yesが . であることを確認します。Pseudowire Switching Points—スイッチング ポイントが S-PE2 から S-PE1 へ、S-PE1 から T-PE1 に一覧表示されているか確認します。
意味
MS-PW は、T-PE1 と T-PE2 の間で逆方向に確立されます。
トラブルシューティング
MS-PW 接続のトラブルシューティングについては、以下を参照してください。
Ping
問題
T-PE デバイス間、および T-PE デバイスと中間デバイス間の接続を確認する方法。
ソリューション
T-PE1 が T-PE2 に ping できることを確認します。コマンドはping mpls l2vpn fec129、SAとTAIを整数またはIPアドレスとして受け入れ、他のパラメーター(instance、 、 local-idremote-idremote-pe-address、)の代わりにCEに面したインターフェイスを使用することもできます。
Checking Connectivity Between T-PE1 and T-PE2
user@T-PE1> ping mpls l2vpn fec129 instance FEC129-VPWS local-id 800:800:800 remote-pe-address 10.255.14.1 remote-id 700:700:700 !!!!! --- lsping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss user@T-PE1> ping mpls l2vpn fec129 interface ge-3/1/2 !!!!! --- lsping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss
Checking Connectivity Between T-PE1 and S-PE2
user@T-PE1> ping mpls l2vpn fec129 interface ge-3/1/2 bottom-label-ttl 2 !!!!! --- lsping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss
双方向転送検知
問題
BFD を使用して T-PE デバイスから MS-PW 接続をトラブルシューティングする方法。
ソリューション
動作モードから、コマンド出力を show bfd session extensive 確認します。
user@T-PE1> show bfd session extensive
Detect Transmit
Address State Interface Time Interval Multiplier
198.51.100.7 Up ge-3/1/0.0 0.900 0.300 3
Client FEC129-OAM, TX interval 0.300, RX interval 0.300
Session up time 03:12:42
Local diagnostic None, remote diagnostic None
Remote state Up, version 1
Replicated
Session type: VCCV BFD
Min async interval 0.300, min slow interval 1.000
Adaptive async TX interval 0.300, RX interval 0.300
Local min TX interval 0.300, minimum RX interval 0.300, multiplier 3
Remote min TX interval 0.300, min RX interval 0.300, multiplier 3
Local discriminator 19, remote discriminator 19
Echo mode disabled/inactive
Remote is control-plane independent
L2vpn-id 100:15, Local-id 800:0.0.3.32:800, Remote-id 700:0.0.2.188:700
Session ID: 0x103
1 sessions, 1 clients
Cumulative transmit rate 3.3 pps, cumulative receive rate 3.3 pps
Traceroute
問題
MS-PW が確立されたことを確認する方法。
ソリューション
動作モードから、出力を検証します traceroute 。
user@T-PE1> traceroute mpls l2vpn fec129 interface interface
Probe options: ttl 64, retries 3, exp 7
ttl Label Protocol Address Previous Hop Probe Status
1 FEC129 10.255.10.1 (null) Success
2 FEC129 10.255.2.1 10.255.10.1 Success
3 FEC129 10.255.3.1 10.255.2.1 Success
4 FEC129 10.255.14.1 10.255.2.1 Egress
Path 1 via ge-3/1/2 destination 198.51.100.0