例:マルチポイント LDP 再帰的 FEC の設定
この例は、当社のコンテンツテスト チームが検証し、更新したものです。
この設定例を使用して、OSPF ネットワークにおける Multipoint Label Distribution Protocol(LDP) 再帰的転送等価クラス(FEC)を設定および検証します。これにより、バックボーンにルート ノードへの直接ルートがない場合に、2 つの自律システム(AS)間で MLDP ポイントツーマルチポイント(P2MP)トンネルを形成できます。
読書の時間 |
45分 |
設定時間 |
1時間 |
前提条件の例
ハードウェア要件 |
MXシリーズルーターをCE、PE、中間ルーターとして使用。 |
ソフトウェア要件 |
すべてのデバイスで実行されているJunos OSリリース23.4R1以降。 |
始める前に
メリット |
マルチポイント LDP(MLDP)再帰的転送等価クラス(FEC)は、中間ルーターにルート ノードに到達するルートがない展開で役立ちます。 |
もっと知る |
機能概要
使用技術 |
|
一次検証タスク |
|
トポロジの概要
この設定例では、マルチキャストトラフィックを送信できるホストシステムと、マルチキャストトラフィックを受信できるホストシステムを示しています。2つの自律システム(AS)を示しています。PE1、P1、およびASBR1ルーターで構成されるAS65010と、PE2、P2、およびASBR2ルーターで構成されるAS65020。AS内のすべてのルーターは、OSPFをIGPとして実行します。すべてのルーターはエリア 0 に属しています。カスタマーエッジ(CE)デバイスは、EBGPピアリングを使用して、レイヤー3 VPNサービスの一部としてプロバイダーエッジデバイスとルートを交換します。PE デバイスは、IBGP を使用してリモート PE と IPv4 ルートを交換します。
プロバイダエッジ(PE2)およびASボーダールーター(ASBR2)ルーターには、ルートPE1へのルートがあります。ただし、P(P1およびP2)ルーターには、ルートへのルートがありません。MLDP P2MPトンネルは、エグレス(PE2)からイングレス(PE1)ルーターまで形成され、FEC要素をmLDPを介して渡します。
ホスト名 |
役職 |
機能 |
---|---|---|
リモート CE デバイス。 |
PE1ルーターとのEBGPピアで、CEデバイスのループバックアドレスをアドバタイズおよび学習する。 |
|
ローカル PE デバイス。 |
PE1への直接ルートがないシナリオで、別のASの中間ルーターが到達しようとするルートノード。 |
|
中間装置P1。 |
PE2 ルーターへのルートがない中間ルーター。ASBR1 から PE1-FEC を受信し、通常の LDP P2MP FEC として処理します。 |
|
AS境界ルーターASBR1 |
ASBR2ルーターとEBGPピアで、IGPルートをアドバタイズおよび学習します。ASBR1 はルートへのルート(IGP ルート)を検出し、ASBR1-FEC を再帰的不透明値(PE1-FEC)の内容に置き換えてから、さらに処理を行います。 |
|
AS境界ルーターASBR2 |
ASBR1 ルーターの EBGP ピアで、IGP ルートをアドバタイズおよび学習します。P2 のルート ノードとして機能し、実際のルート (PE1) へのルートを見つけるためのルックアップを実行します。PE1へのルートがBGPルートであると判断し、ASBR1からPE1へのLDP再帰FECを形成します。 |
|
中間装置P2。 |
PE1 ルーターへのルートがない中間ルーター。mLDP を通じて PE2 から FEC 要素を受信します。ただし、PE1へのルートがないため、同じFECエレメントを使用することはできません。 |
|
ローカル PE デバイス。 |
PE2は、PE1のアドレスをルートノードアドレスとするMP FEC要素を作成し、PE2からルートPE1へのP2MPトンネルを形成します。 |
|
リモート CE デバイス。 |
CEデバイスループバックアドレスをアドバタイズおよび学習するためのPE2ルーターへのEBGPピアリング。 |
トポロジーの図

PE1の設定手順
このセクションでは、この例の PE1 デバイスの設定に必要な主な設定タスクについて説明します。最初の手順は、基本的なレイヤー3 VPNサービスの設定に共通です。以下の一連の手順は、再帰 FEC の設定に固有のものです。どちらのPEデバイスも同様の構成を持っていますが、ここではPE1に焦点を当てます。
まず、一般的なレイヤー 3 VPN をプロビジョニングします。
-
IPv4のループバック、コアフェーシング、CEフェーシングインターフェイスの設定と番号付けを行います。MPLS スイッチングをサポートするには、P デバイスに接続するコアに面したインターフェイスで
mpls
ファミリーを有効にしてください。 -
自律システム番号を設定します。
-
ループバックおよびコアに面するインターフェイスにシングルエリアOSPFを設定します。
-
すべてのインターフェイスでLDP、MPLSを設定します。
-
IPv4 レイヤー 3 VPN をサポートするために、
inet-vpn
アドレスファミリーを含めるように IBGP ピアリングセッションを設定します。 CE1デバイスにVRFベースのルーティングインスタンスを設定します。PE-CE ルーティング プロトコルとして EBGP を使用します。
[edit] set interfaces ge-0/0/0 description "CONNECTED TO CE1" set interfaces ge-0/0/0 unit 0 family inet address 172.16.1.2/30 set interfaces ge-0/0/1 unit 0 family inet address 10.1.23.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.2/32 set interfaces lo0 unit 1 family inet address 192.168.102.1/32
[edit] set chassis network-services enhanced-ip
[edit] set routing-instances VPN1 instance-type vrf set routing-instances VPN1 protocols bgp group CE1-PE1 type external set routing-instances VPN1 protocols bgp group CE1-PE1 family inet unicast set routing-instances VPN1 protocols bgp group CE1-PE1 export EXPORT-LOCAL-ROUTES set routing-instances VPN1 protocols bgp group CE1-PE1 peer-as 65101 set routing-instances VPN1 protocols bgp group CE1-PE1 local-as 65100 set routing-instances VPN1 protocols bgp group CE1-PE1 neighbor 172.16.1.1 set routing-instances VPN1 interface ge-0/0/0.0 set routing-instances VPN1 interface lo0.1 set routing-instances VPN1 route-distinguisher 192.168.100.2:1 set routing-instances VPN1 vrf-table-label
[edit] set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.2 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT family inet-vpn any set protocols bgp group INT family inet-mvpn signaling set protocols bgp group INT peer-as 65100 set protocols bgp group INT local-as 65100 set protocols bgp group INT neighbor 192.168.100.3 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 mpls interface all set protocols mpls interface fxp0.0 disable
[edit] set routing-options router-id 192.168.100.2 set routing-options autonomous-system 65100
-
C-PIM ジョイン メッセージがランデブー ポイント ツリーを使用するモードを設定し、送信元が判明してから最短パス ツリーに切り替えます。
[edit] set routing-instances VPN1 protocols mvpn mvpn-mode rpt-spt set routing-instances VPN1 provider-tunnel ldp-p2mp set routing-instances VPN1 vrf-target target:1:1
PE から CE へのマルチキャスト ルーティングを有効にするように PIM を設定します。
[edit] set routing-instances VPN1 protocols pim rp static address 192.168.100.1
CE ルータに接続されたインターフェイスで PIM を有効にします。
[edit] set routing-instances VPN1 protocols pim interface lo0.1 set routing-instances VPN1 protocols pim interface ge-0/0/0.0
動的選択的ポイントツーマルチポイント LSP を設定し、新しいトンネルが作成されるまでに必要なデータしきい値を指定します。
[edit] set routing-instances VPN1 provider-tunnel selective group 225.1.1.1/32 source 172.16.12.1/32 ldp-p2mp set routing-instances VPN1 provider-tunnel selective group 225.1.1.1/32 source 172.16.12.1/32 threshold-rate 1
ポイントツーマルチポイント再帰 LDP FEC を設定します。
[edit] set protocols ldp p2mp recursive fec
ルーティングポリシーを設定します。
[edit] set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 from protocol direct set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 then accept
検証
コマンド | 検証タスク |
---|---|
LDP の概要を表示 | LDPの概要情報で Recursive fec 有効になっていることを確認します。 |
LDPデータベースを表示 | LDP データベースでポイントツーマルチポイント バインディング情報をアドバタイズしたラベルを確認します。 |
LDP P2MPパスを表示 | LDP P2MP FEC 情報を検証します。 |
show ldp p2mp fec | LDP P2MP LSP を検証します。 |
LDP の概要情報で再帰的 FEC を検証します。
目的
recursive FEC
が有効になっていて、PE1 LDPの概要情報に表示されていることを確認します。
アクション
動作モードからshow ldp overview
コマンドを入力します。
user@PE1 show ldp overview Instance: master Reference count: 3 Router ID: 192.168.100.2 LDP inet: enabled Transport preference: IPv4 Message id: 33 Configuration sequence: 12 Deaggregate: disabled Explicit null: disabled IPv6 tunneling: disabled Strict targeted hellos: disabled Loopback if added: yes Route preference: 9 P2MP max branches: 4096 Unicast transit LSP chaining: disabled P2MP transit LSP chaining: disabled Transit LSP statistics based on route statistics: disabled LDP route acknowledgement: enabled BGP export: enabled No TTL propagate: disabled LDP mtu discovery: disabled LDP SR Mapping Client: disabled Capabilities enabled: p2mp, make-before-break Egress FEC capabilities enabled: entropy-label-capability Downstream unsolicited Sessions: Operational: 1 Retention: liberal Control: ordered Auto targeted sessions: Auto targeted: disabled Dynamic tunnel session count: 0 P2MP: Recursive route: disabled Recursive fec: enabled No rsvp tunneling: disabled Timers: Keepalive interval: 10, Keepalive timeout: 30 Link hello interval: 5, Link hello hold time: 15 Targeted hello interval: 15, Targeted hello hold time: 45 Label withdraw delay: 60, Make before break timeout: 30 Make before break switchover delay: 3 Link protection timeout: 120 Graceful restart: Restart: disabled, Helper: enabled, Restart in process: false Reconnect time: 60000, Max neighbor reconnect time: 120000 Recovery time: 160000, Max neighbor recovery time: 240000 Traffic Engineering: Bgp igp: disabled Both ribs: disabled Mpls forwarding: disabled IGP: Tracking igp metric: disabled Sync session up delay: 10 Session protection: Session protection: disabled Session protection timeout: 0 Interface addresses advertising: 10.1.23.1 192.168.100.2 LDP Job: Read job time quantum: 1000, Write job time quantum: 1000 Read job loop quantum: 100, Write job loop quantum: 100 Backup inbound read job time quantum: 1000, Backup outbound read job time quantum: 1000 Backup inbound read job loop quantum: 100, Backup outbound read job loop quantum: 100 Label allocation: Current number of LDP labels allocated: 2 Total number of LDP labels allocated: 51 Total number of LDP labels freed: 49 Total number of LDP label allocation failure: 0 Current number of labels allocated by all protocols: 0
意味
出力は、再帰的FECがPE1で有効になっていることを確認します。
広告ラベルを検証する
目的
ASBR1からアドバタイズされ、PE1が受信したラベルを確認します。
アクション
動作モードからshow ldp database
コマンドを入力します。
ASBR1上
user@ASBR1 show ldp database Input label database, 192.168.100.4:0--192.168.100.5:0 Labels received: 5 Label Prefix 145 192.168.100.4/32 3 192.168.100.5/32 139 192.168.100.6/32 140 192.168.100.7/32 144 P2MP root-addr 192.168.100.2, lsp-id 16777220 next-root:192.168.100.4 Output label database, 192.168.100.4:0--192.168.100.5:0 Labels advertised: 4 Label Prefix 3 192.168.100.4/32 164 192.168.100.5/32 159 192.168.100.2/32 158 192.168.100.3/32 Input label database, 192.168.100.4:0--192.168.100.3:0 Labels received: 3 Label Prefix 125 192.168.100.4/32 88 192.168.100.2/32 3 192.168.100.3/32 Output label database, 192.168.100.4:0--192.168.100.3:0 Labels advertised: 5 Label Prefix 3 192.168.100.4/32 164 192.168.100.5/32 159 192.168.100.2/32 158 192.168.100.3/32 163 P2MP root-addr 192.168.100.2, lsp-id 16777220
PE1について
user@PE1 show ldp database Input label database, 192.168.100.2:0--192.168.100.3:0 Labels received: 4 Label Prefix 125 192.168.100.4/32 88 192.168.100.2/32 3 192.168.100.3/32 129 P2MP root-addr 192.168.100.2, lsp-id 16777220 Output label database, 192.168.100.2:0--192.168.100.3:0 Labels advertised: 3 Label Prefix 107 192.168.100.4/32 3 192.168.100.2/32 104 192.168.100.3/32
意味
ラベル 3 は ASBR1 からアドバタイズされ、ラベル 3 は PE1 から受信されていることがわかります。
P2MP FEC情報の検証
目的
ASBR2からのLDP P2MP FEC情報を検証します。
アクション
動作モードからshow ldp p2mp fec extensive
コマンドを入力します。
user@PE2 show ldp p2mp fec extensive LDP P2MP FECs: P2MP root-addr 192.168.100.2, lsp-id 16777220 next-root: 192.168.100.5 Fec type: Egress (Active) Label: 52, Reference count: 1
user@ASBR2 show ldp p2mp fec extensive LDP P2MP FECs: P2MP root-addr 192.168.100.2, lsp-id 16777220 Fec type: Transit (Active) Label: 144, Reference count: 1
意味
出力は、PE2がLDP再帰FECを形成して、実際のルート(PE1)へのルートを見つけることを示しています。
P2MP パス情報の確認
目的
PE2からのLDP P2MPパス情報を確認します。
アクション
動作モードからshow ldp p2mp path extensive
コマンドを入力します。
user@PE2 show ldp p2mp path extensive P2MP path type: Transit/Egress Output Session (label): 192.168.100.6:0 (52) (Primary) Egress label: 52 Attached FECs: P2MP root-addr 192.168.100.2, lsp-id 16777220 next-root:192.168.100.5 (Active) Address: 0x76f69e0, Reference count: 2
意味
出力は、ルートノードアドレスがプロトコルネクストホップASBR2のアドレスであるFEC要素を持つPE2を示しています。
付録1: すべてのデバイスでコマンドを設定する
この例を素早く設定するには、以下のコマンドをコピーしてテキスト・ファイルに貼り付け、改行を削除し、ネットワーク構成に合わせて必要な内容を変更した後、[edit]階層レベルのCLIにコマンドをコピー&ペーストしてください。
この例では、論理システムを使用してソースとレシーバーを表します。
CE1
set system host-name CE1-source set logical-systems source interfaces lt-0/0/0 unit 12 encapsulation ethernet set logical-systems source interfaces lt-0/0/0 unit 12 peer-unit 11 set logical-systems source interfaces lt-0/0/0 unit 12 family inet address 172.16.12.1/30 set logical-systems source interfaces lo0 unit 12 family inet address 192.168.12.12/32 set logical-systems source protocols ospf area 0.0.0.0 interface all set logical-systems source protocols ospf area 0.0.0.0 interface lo0.12 passive set logical-systems source protocols pim rp static address 192.168.100.1 set logical-systems source protocols pim interface lt-0/0/0.12 set chassis fpc 0 pic 0 tunnel-services set chassis network-services enhanced-ip set interfaces lt-0/0/0 description "CONNECTED TO source" set interfaces lt-0/0/0 unit 11 encapsulation ethernet set interfaces lt-0/0/0 unit 11 peer-unit 12 set interfaces lt-0/0/0 unit 11 family inet address 172.16.12.2/30 set interfaces ge-0/0/1 description "CONNECTED TO PE1" set interfaces ge-0/0/1 unit 0 family inet address 172.16.1.1/30 set interfaces lo0 unit 0 family inet address 192.168.100.1/32 set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 from protocol direct set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 then accept set routing-options router-id 192.168.100.1 set routing-options autonomous-system 65101 set protocols bgp group CE1-PE1 type external set protocols bgp group CE1-PE1 family inet unicast set protocols bgp group CE1-PE1 export EXPORT-LOCAL-ROUTES set protocols bgp group CE1-PE1 peer-as 65100 set protocols bgp group CE1-PE1 local-as 65101 set protocols bgp group CE1-PE1 neighbor 172.16.1.2 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 pim rp local family inet address 192.168.100.1 set protocols pim interface lo0.0 set protocols pim interface ge-0/0/1.0 set protocols pim interface lt-0/0/0.11
PE1
set system host-name PE1 set chassis network-services enhanced-ip set interfaces ge-0/0/0 description "CONNECTED TO CE1" set interfaces ge-0/0/0 unit 0 family inet address 172.16.1.2/30 set interfaces ge-0/0/1 description "CONNECTED TO P1" set interfaces ge-0/0/1 unit 0 family inet address 10.1.23.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.2/32 set interfaces lo0 unit 1 family inet address 192.168.102.1/32 set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 from protocol direct set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 then accept set routing-instances VPN1 instance-type vrf set routing-instances VPN1 protocols bgp group CE1-PE1 type external set routing-instances VPN1 protocols bgp group CE1-PE1 family inet unicast set routing-instances VPN1 protocols bgp group CE1-PE1 export EXPORT-LOCAL-ROUTES set routing-instances VPN1 protocols bgp group CE1-PE1 peer-as 65101 set routing-instances VPN1 protocols bgp group CE1-PE1 local-as 65100 set routing-instances VPN1 protocols bgp group CE1-PE1 neighbor 172.16.1.1 set routing-instances VPN1 protocols mvpn mvpn-mode rpt-spt set routing-instances VPN1 protocols pim rp static address 192.168.100.1 set routing-instances VPN1 protocols pim interface lo0.1 mode sparse set routing-instances VPN1 protocols pim interface ge-0/0/0.0 mode sparse set routing-instances VPN1 interface ge-0/0/0.0 set routing-instances VPN1 interface lo0.1 set routing-instances VPN1 route-distinguisher 192.168.100.2:1 set routing-instances VPN1 vrf-target target:1:1 set routing-instances VPN1 vrf-table-label set routing-instances VPN1 provider-tunnel ldp-p2mp set routing-instances VPN1 provider-tunnel selective group 225.1.1.1/32 source 172.16.12.1/32 ldp-p2mp set routing-instances VPN1 provider-tunnel selective group 225.1.1.1/32 source 172.16.12.1/32 threshold-rate 51 set routing-options router-id 192.168.100.2 set routing-options autonomous-system 65100 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.2 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT family inet-vpn any set protocols bgp group INT family inet-mvpn signaling set protocols bgp group INT peer-as 65100 set protocols bgp group INT local-as 65100 set protocols bgp group INT neighbor 192.168.100.3 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive fec set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
P1
set system host-name P1 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.1.23.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.1.34.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.3/32 set routing-options router-id 192.168.100.3 set routing-options autonomous-system 65100 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.3 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT family inet-vpn any set protocols bgp group INT family inet-mvpn signaling set protocols bgp group INT cluster 192.168.100.3 set protocols bgp group INT local-as 65100 set protocols bgp group INT neighbor 192.168.100.2 set protocols bgp group INT neighbor 192.168.100.4 set protocols bgp group eBGP_PE_PE type external set protocols bgp group eBGP_PE_PE multihop ttl 25 set protocols bgp group eBGP_PE_PE local-address 192.168.100.3 set protocols bgp group eBGP_PE_PE family inet-vpn any set protocols bgp group eBGP_PE_PE family inet-mvpn signaling set protocols bgp group eBGP_PE_PE neighbor 192.168.100.6 peer-as 65200 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive route set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
ASBR1
set system host-name ASBR1 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.1.34.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.1.45.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.4/32 set interfaces lo0 unit 0 family iso address 49.0001.0040.0400.4004.00 set policy-options policy-statement To-ASBR2 term 1 from route-filter 192.168.100.2/32 exact set policy-options policy-statement To-ASBR2 term 1 from route-filter 192.168.100.3/32 exact set policy-options policy-statement To-ASBR2 term 1 then accept set policy-options policy-statement To-ASBR2 term 2 then reject set policy-options policy-statement from-direct term 1 from interface lo0.0 set policy-options policy-statement from-direct term 1 then accept set policy-options policy-statement from-ospf term 1 from protocol ospf set policy-options policy-statement from-ospf term 1 then accept set routing-options router-id 192.168.100.4 set routing-options autonomous-system 65100 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.4 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT peer-as 65100 set protocols bgp group INT local-as 65100 set protocols bgp group INT neighbor 192.168.100.3 set protocols bgp group eBGP_ASBR type external set protocols bgp group eBGP_ASBR multihop ttl 2 set protocols bgp group eBGP_ASBR local-address 192.168.100.4 set protocols bgp group eBGP_ASBR family inet labeled-unicast resolve-vpn set protocols bgp group eBGP_ASBR export from-ospf set protocols bgp group eBGP_ASBR export from-direct set protocols bgp group eBGP_ASBR export To-ASBR2 set protocols bgp group eBGP_ASBR neighbor 192.168.100.5 peer-as 65200 set protocols isis interface ge-0/0/1.0 level 2 disable set protocols isis interface lo0.0 set protocols isis level 2 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive fec set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
ASBR2
set system host-name ASBR2 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.1.45.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.1.56.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.5/32 set interfaces lo0 unit 0 family iso address 49.0001.0050.0500.5005.00 set policy-options policy-statement To-ASBR1 term 1 from route-filter 192.168.100.7/32 exact set policy-options policy-statement To-ASBR1 term 1 from route-filter 192.168.100.6/32 exact set policy-options policy-statement To-ASBR1 term 1 then accept set policy-options policy-statement To-ASBR1 term 2 then reject set policy-options policy-statement from-direct term 1 from interface lo0.0 set policy-options policy-statement from-direct term 1 then accept set policy-options policy-statement from-ospf term 1 from protocol ospf set policy-options policy-statement from-ospf term 1 then accept set routing-options router-id 192.168.100.5 set routing-options autonomous-system 65200 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.5 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT peer-as 65200 set protocols bgp group INT local-as 65200 set protocols bgp group INT neighbor 192.168.100.6 set protocols bgp group eBGP_ASBR type external set protocols bgp group eBGP_ASBR multihop ttl 2 set protocols bgp group eBGP_ASBR local-address 192.168.100.5 set protocols bgp group eBGP_ASBR family inet labeled-unicast resolve-vpn set protocols bgp group eBGP_ASBR export from-ospf set protocols bgp group eBGP_ASBR export from-direct set protocols bgp group eBGP_ASBR export To-ASBR1 set protocols bgp group eBGP_ASBR neighbor 192.168.100.4 peer-as 65100 set protocols isis interface ge-0/0/0.0 level 2 disable set protocols isis interface lo0.0 set protocols isis level 2 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive fec set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
P2
set system host-name P2 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.1.56.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.1.67.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.100.6/32 set routing-options router-id 192.168.100.6 set routing-options autonomous-system 65200 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.6 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT family inet-vpn any set protocols bgp group INT family inet-mvpn signaling set protocols bgp group INT cluster 192.168.100.6 set protocols bgp group INT local-as 65200 set protocols bgp group INT neighbor 192.168.100.5 set protocols bgp group INT neighbor 192.168.100.7 set protocols bgp group eBGP_PE_PE type external set protocols bgp group eBGP_PE_PE multihop ttl 25 set protocols bgp group eBGP_PE_PE local-address 192.168.100.6 set protocols bgp group eBGP_PE_PE family inet-vpn any set protocols bgp group eBGP_PE_PE family inet-mvpn signaling set protocols bgp group eBGP_PE_PE neighbor 192.168.100.3 peer-as 65100 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive route set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
PE2
set system host-name PE2 set chassis network-services enhanced-ip set interfaces ge-0/0/0 unit 0 family inet address 10.1.67.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 description "CONNECTED TO CE2" set interfaces ge-0/0/1 unit 0 family inet address 172.16.2.2/30 set interfaces lo0 unit 0 family inet address 192.168.100.7/32 set interfaces lo0 unit 1 family inet address 192.168.100.17/32 set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 from protocol direct set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 then accept set routing-instances VPN2 instance-type vrf set routing-instances VPN2 protocols bgp group PE2-CE2 type external set routing-instances VPN2 protocols bgp group PE2-CE2 family inet unicast set routing-instances VPN2 protocols bgp group PE2-CE2 export EXPORT-LOCAL-ROUTES set routing-instances VPN2 protocols bgp group PE2-CE2 peer-as 65201 set routing-instances VPN2 protocols bgp group PE2-CE2 local-as 65200 set routing-instances VPN2 protocols bgp group PE2-CE2 neighbor 172.16.2.1 set routing-instances VPN2 protocols mvpn mvpn-mode rpt-spt set routing-instances VPN2 protocols pim rp static address 192.168.100.1 set routing-instances VPN2 protocols pim interface lo0.1 mode sparse set routing-instances VPN2 protocols pim interface ge-0/0/1.0 mode sparse set routing-instances VPN2 protocols pim interface all set routing-instances VPN2 interface ge-0/0/1.0 set routing-instances VPN2 interface lo0.1 set routing-instances VPN2 route-distinguisher 192.168.100.17:1 set routing-instances VPN2 vrf-target target:1:1 set routing-instances VPN2 vrf-table-label set routing-options router-id 192.168.100.7 set routing-options autonomous-system 65200 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.100.7 set protocols bgp group INT family inet labeled-unicast resolve-vpn set protocols bgp group INT family inet-vpn any set protocols bgp group INT family inet-mvpn signaling set protocols bgp group INT peer-as 65200 set protocols bgp group INT local-as 65200 set protocols bgp group INT neighbor 192.168.100.6 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp p2mp recursive fec set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive
CE2
set system host-name CE2-receiver set logical-systems receiver interfaces lt-0/0/0 unit 22 encapsulation ethernet set logical-systems receiver interfaces lt-0/0/0 unit 22 peer-unit 21 set logical-systems receiver interfaces lt-0/0/0 unit 22 family inet address 172.16.22.22/30 set logical-systems receiver interfaces lo0 unit 22 family inet address 192.168.22.22/32 set logical-systems receiver protocols ospf area 0.0.0.0 interface all set chassis fpc 0 pic 0 tunnel-services set chassis network-services enhanced-ip set interfaces ge-0/0/0 description "CONNECTED TO PE2" set interfaces ge-0/0/0 unit 0 family inet address 172.16.2.1/30 set interfaces lt-0/0/0 description "CONNECTED FROM CE2 TO receiver" set interfaces lt-0/0/0 unit 21 encapsulation ethernet set interfaces lt-0/0/0 unit 21 peer-unit 22 set interfaces lt-0/0/0 unit 21 family inet address 172.16.22.21/30 set interfaces lo0 unit 0 family inet address 192.168.100.8/32 set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 from protocol direct set policy-options policy-statement EXPORT-LOCAL-ROUTES term 1 then accept set routing-options router-id 192.168.100.8 set routing-options autonomous-system 65201 set protocols bgp group CE2-PE2 type external set protocols bgp group CE2-PE2 family inet unicast set protocols bgp group CE2-PE2 export EXPORT-LOCAL-ROUTES set protocols bgp group CE2-PE2 peer-as 65200 set protocols bgp group CE2-PE2 local-as 65201 set protocols bgp group CE2-PE2 neighbor 172.16.2.2 set protocols igmp interface lt-0/0/0.21 static group 225.1.1.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 pim rp static address 192.168.100.1 set protocols pim interface all set protocols pim interface fxp0.0 disable set protocols sap listen 225.1.1.1 port 5000
付録2: PE1とASBR2で設定出力を表示
中括弧形式の完全なPE1コンフィギュレーション
user@PE1# show | no-more system { host-name PE1; } interfaces { ge-0/0/0 { description "CONNECTED TO CE1"; unit 0 { family inet { address 172.16.1.2/30; } } } ge-0/0/1 { description "CONNECTED TO P1"; unit 0 { family inet { address 10.1.23.1/24; } family mpls; } } lo0 { unit 0 { family inet { address 192.168.100.2/32; } } unit 1 { family inet { address 192.168.102.1/32; } } } } policy-options { policy-statement EXPORT-LOCAL-ROUTES { term 1 { from protocol direct; then accept; } } } routing-instances { VPN1 { instance-type vrf; protocols { bgp { group CE11-PE1 { type external; family inet { unicast; } export EXPORT-LOCAL-ROUTES; peer-as 65101; local-as 65100; neighbor 172.16.1.1; } } mvpn { mvpn-mode { rpt-spt; } } pim { rp { static { address 192.168.100.1; } } interface lo0.1; interface ge-0/0/0.0; } } interface ge-0/0/0.0; interface lo0.1; route-distinguisher 192.168.100.2:1; vrf-target target:1:1; vrf-table-label; provider-tunnel { ldp-p2mp; selective { group 225.1.1.1/32 { source 172.16.12.1/32 { ldp-p2mp; threshold-rate 1; } } } } } } routing-options { router-id 192.168.100.2; autonomous-system 65100; nonstop-routing; } protocols { bgp { group INT { type internal; local-address 192.168.100.2; family inet { labeled-unicast { resolve-vpn; } } family inet-vpn { any; } family inet-mvpn { signaling; } export from-direct; peer-as 65100; local-as 65100; neighbor 192.168.100.3; } } ldp { interface all; interface fxp0.0 { disable; } p2mp { recursive { fec; } } } mpls { interface all; interface fxp0.0 { disable; } } ospf { area 0.0.0.0 { interface lo0.0 { passive; } interface all; interface fxp0.0 { disable; } } } }
中括弧形式の完全なASBR2コンフィギュレーション
user@ASBR2# show | no-more system { host-name ASBR2; } interfaces { ge-0/0/0 { unit 0 { family inet { address 10.1.45.2/24; } family iso; family mpls; } } ge-0/0/1 { unit 0 { family inet { address 10.1.56.1/24; } family mpls; } } lo0 { unit 0 { family inet { address 192.168.100.5/32; } family iso { address 49.0001.0060.0600.6006.00; } } } } policy-options { policy-statement NHP { term 1 { from protocol bgp; then { next-hop self; accept; } } } policy-statement To-ASBR1 { term 1 { from { route-filter 192.168.100.7/32 exact; route-filter 192.168.100.6/32 exact; } then accept; } term 2 { then reject; } } policy-statement from-direct { term 1 { from interface lo0.0; then accept; } } policy-statement from-ospf { term 1 { from protocol ospf; then accept; } } } routing-options { router-id 192.168.100.5; autonomous-system 65200; nonstop-routing; } protocols { bgp { group INT { type internal; local-address 192.168.100.5; family inet { labeled-unicast { resolve-vpn; } } peer-as 65200; local-as 65200; neighbor 192.168.100.6 { export NHP; } } group eBGP_ASBR1-ASBR2 { type external; local-address 192.168.100.5; family inet { labeled-unicast { resolve-vpn; } } export [ from-ospf from-direct To-ASBR1 ]; neighbor 192.168.100.4 { multihop; peer-as 65100; } } } isis { interface ge-0/0/0.0 { level 2 disable; } interface lo0.0 { level 1 { passive; } } } ldp { interface all; interface fxp0.0 { disable; } p2mp { recursive { fec; } } } ospf { traffic-engineering; area 0.0.0.0 { interface ge-0/0/1.0; interface lo0.0 { passive; } } } }