例:レイヤー 2 回線用の MPLSV 向け BFD の設定
この例では、データ パスの障害検出を高速化するレイヤー 2 回線に対して、BFD を設定する方法を示します。
要件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
2つのMXシリーズ5Gユニバーサルルーティングプラットフォーム
すべてのデバイスでJunos OSリリース12.1以降が実行されている
概要
Junos OSリリース12.1以降、仮想回線接続検証(RJV)に対する双方向転送検出(BFD)をサポートしているため、その制御チャネルで使用する対応する運用および管理機能に加えて、疑似配線の制御チャネルを設定できます。BFDは、疑似配線データパスの継続的な監視とデータプレーンの障害の検出のための低リソースメカニズムを提供します。この機能は、RFC 5885、 擬似配線仮想回線接続検証(RPCV)のBFD(Bidirectional Forwarding Detection)に記載されているように、RPCVの非同期モードBFDをサポートします。ping を使用して疑似回線の障害を検出することもできます。ただし、ping に必要な処理リソースは BFD に必要なリソースよりも大きくなります。さらに、BFDは、データプレーンの障害をCCV pingよりも速く検出できます。疑似配線のBFDは、レイヤー2回線(LDPベース)でサポートされています。
レイヤー 2 回線に対して BFD を設定するには、 階層レベルで設定ステートメントを[edit protocols l2circuit neighbor address interface interface-name]
設定oam
します。階層レベルの[edit routing-instances routing-instance-name protocols l2vpn oam]
設定ステートメントはcontrol-channel
、レイヤー2回線設定には適用されません。
トポロジ
トポロジーでは、デバイス R0 にレイヤー 2 回線用の BFD(レイヤー 2 回線用 BFD)が設定されています。

構成
CLI クイックコンフィギュレーション
この例を迅速に設定するには、以下のコマンドをコピーしてテキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に一致させる必要がある詳細情報を変更し、コマンドを 階層レベルの [edit]
CLI にコピー アンド ペーストして、設定モードから を入力 commit
します。
R0
set chassis redundancy graceful-switchover set interfaces ge-1/1/9 vlan-tagging set interfaces ge-1/1/9 encapsulation vlan-ccc set interfaces ge-1/1/9 unit 0 encapsulation vlan-ccc set interfaces ge-1/1/9 unit 0 vlan-id 512 set interfaces ge-2/0/0 unit 0 family inet address 192.0.2.1/24 set interfaces ge-2/0/0 unit 0 family mpls set interfaces lo0 unit 0 family inet address 198.51.100.0/24 set routing-options nonstop-routing set routing-options static route 203.0.113.0/24 next-hop 192.0.2.2 set routing-options router-id 198.51.100.0 set protocols rsvp interface ge-2/0/0.0 set protocols mpls label-switched-path lsp1 to 203.0.113.0 set protocols mpls interface ge-2/0/0.0 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface ge-2/0/0.0 set protocols ldp interface all set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 virtual-circuit-id 1 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-interval 300 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-receive-interval 10 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection multiplier 3 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval minimum-interval 5 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval threshold 30 set protocols l2circuit neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection detection-time threshold 40
R1
set interfaces ge-1/1/9 vlan-tagging set interfaces ge-1/1/9 encapsulation vlan-ccc set interfaces ge-1/1/9 unit 0 encapsulation vlan-ccc set interfaces ge-1/1/9 unit 0 vlan-id 512 set interfaces ge-2/0/1 unit 0 family inet address 192.0.2.2/24 set interfaces ge-2/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.0/24 set routing-options static route 198.51.100.0/24 next-hop 192.0.2.1 set routing-options router-id 203.0.113.0 set protocols rsvp interface ge-2/0/1.0 set protocols mpls label-switched-path lsp2 to 198.51.100.0 set protocols mpls interface ge-2/0/1.0 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface ge-2/0/1.0 set protocols ldp interface all set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 virtual-circuit-id 1 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-interval 300 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-receive-interval 10 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection multiplier 3 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval minimum-interval 5 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval threshold 30 set protocols l2circuit neighbor 198.51.100.0 interface ge-1/1/9.0 oam bfd-liveness-detection detection-time threshold 40
デバイスR0の設定
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、 CLIユーザーガイドの設定モードでのCLIエディターの使用を参照してください。
デバイスR0を設定するには:
デバイスの適切なインターフェイス名、アドレス、およびその他のパラメーターを変更した後、デバイスR1のこの手順を繰り返します。
グレースフル スイッチオーバー冗長性を設定します。
[edit chassis] user@R0# set redundancy graceful-switchover
インターフェイスを設定します。
[edit interfaces] user@R0# set ge-1/1/9 vlan-tagging user@R0# set ge-1/1/9 encapsulation vlan-ccc user@R0# set ge-1/1/9 unit 0 encapsulation vlan-ccc user@R0# set ge-1/1/9 unit 0 vlan-id 512 user@R0# set ge-2/0/0 unit 0 family inet address 192.0.2.1/24 user@R0# set ge-2/0/0 unit 0 family mpls user@R0# set lo0 unit 0 family inet address 198.51.100.0/24
ノンストップルーティングオプション、静的ルート、およびルーターIDルーティングオプションを設定します。
[edit routing-options] user@R0# set nonstop-routing user@R0# set static route 203.0.113.0/24 next-hop 192.0.2.2 user@R0# set router-id 198.51.100.0
RSVPプロトコルを設定します。
[edit protocols rsvp] user@R0# set interface ge-2/0/0.0
MPLS プロトコルを設定します。
[edit protocols mpls] user@R0# set label-switched-path lsp1 to 203.0.113.0 user@R0# set interface ge-2/0/0.0
OSPF プロトコルを設定します。
[edit protocols ospf] user@R0# set traffic-engineering user@R0# set area 0.0.0.0 interface ge-2/0/0.0
LDPプロトコルを設定します。
[edit protocols ldp] user@R0# set interface all
レイヤー 2 回線プロトコルのネイバーの仮想回線 ID を設定します。
[edit protocols l2circuit] user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 virtual-circuit-id 1
レイヤー 2 回線プロトコルの oam 属性を設定します。
[edit protocols l2circuit] user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-interval 300 user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection minimum-receive-interval 10 user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection multiplier 3 user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval minimum-interval 5 user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection transmit-interval threshold 30 user@R0# set neighbor 203.0.113.0 interface ge-1/1/9.0 oam bfd-liveness-detection detection-time threshold 40
結果
設定モードから、 、show protocols
show interfaces
および のコマンドをshow chassis
入力して設定をshow routing-options
確認します。出力結果に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@R0# show chassis redundancy { graceful-switchover; }
user@R0# show interfaces ge-1/1/9 { vlan-tagging; encapsulation vlan-ccc; unit 0 { encapsulation vlan-ccc; vlan-id 512; } } ge-2/0/0 { unit 0 { family inet { address 192.0.2.1/24; } family mpls; } } lo0 { unit 0 { family inet { address 198.51.100.0/24; } } }
user@R0# show protocols rsvp { interface ge-2/0/0.0; } mpls { label-switched-path lsp1 { to 203.0.113.0; } interface ge-2/0/0.0; } ospf { traffic-engineering; area 0.0.0.0 { interface ge-2/0/0.0; } } ldp { interface all; } l2circuit { neighbor 203.0.113.0 { interface ge-1/1/9.0 { virtual-circuit-id 1; oam { bfd-liveness-detection { minimum-interval 300; minimum-receive-interval 10; multiplier 3; transmit-interval { minimum-interval 5; threshold 30; } detection-time { threshold 40; } } } } } }
user@R0# show routing-options nonstop-routing; static { route 203.0.113.0/24 next-hop 192.0.2.2; } router-id 198.51.100.0;
デバイスの設定が完了したら、設定モードから を入力します commit
。
検証
設定が正しく機能していることを確認します。
レイヤー 2 回線接続の検証
目的
レイヤー 2 回線の接続を検証します。
アクション
運用モードから、デバイスR0の show l2circuit connections
コマンドを実行します。
user@R0> show l2circuit connections
Layer-2 Circuit Connections:
Legend for connection status (St)
EI -- encapsulation invalid NP -- interface h/w not present
MM -- mtu mismatch Dn -- down
EM -- encapsulation mismatch VC-Dn -- Virtual circuit Down
CM -- control-word mismatch Up -- operational
VM -- vlan id mismatch CF -- Call admission control failure
OL -- no outgoing label IB -- TDM incompatible bitrate
NC -- intf encaps not CCC/TCC TM -- TDM misconfiguration
BK -- Backup Connection ST -- Standby Connection
CB -- rcvd cell-bundle size bad SP -- Static Pseudowire
LD -- local site signaled down RS -- remote site standby
RD -- remote site signaled down HS -- Hot-standby Connection
XX -- unknown
Legend for interface status
Up -- operational
Dn -- down
Neighbor: 203.0.113.0
Interface Type St Time last up # Up trans
ge-1/1/9.0(vc 1) rmt Up Jun 2 03:19:44 2014 1
Remote PE: 203.0.113.0, Negotiated control-word: Yes (Null)
Incoming label: 299792, Outgoing label: 299792
Negotiated PW status TLV: No
Local interface: ge-1/1/9.0, Status: Up, Encapsulation: VLAN
Flow Label Transmit: No, Flow Label Receive: No
Flow Label Transmit: No, Flow Label Receive: No
意味
出力は、デバイスR0からネイバーへのレイヤー2仮想回線情報を示しています。
BFDセッションの検証
目的
BFDセッションを確認します。
アクション
運用モードから、デバイスR0の show bfd session
コマンドを実行します。
user@R0> show bfd session
Detect Transmit
Address State Interface Time Interval Multiplier
203.0.113.7 Up ge-2/0/0.0 0.030 0.010 3
1 sessions, 1 clients
Cumulative transmit rate 100.0 pps, cumulative receive rate 100.0 pps
意味
出力は、BFDセッションがアクティブになっているアドレスとインターフェイスを示しています。状態 Up は、BFDセッションが立ち上がっていることを示しています。BFDセッションは、BFD制御パケットを検出するために30ミリ秒の時間間隔を持ち、送信システムはBFD制御パケットを送信するのに10ミリ秒の時間間隔を有し、送信システムは時間間隔に乗じて 3 検出時間を決定します。アクティブ BFD セッションの総数と、アクティブな BFD セッションをホストしているクライアントの総数。累積送信レートは、すべてのアクティブセッションで送信されたBFD制御パケットの総数を示し、累積受信レートは、すべてのアクティブセッションで受信したBFD制御パケットの総数を1秒あたりに示します。
BFDセッションの詳細な情報の検証
目的
BFDセッションの詳細な情報を確認します。
アクション
運用モードから、デバイスR0の show bfd session extensive
コマンドを実行します。
user@R0> show bfd session extensive
Detect Transmit
Address State Interface Time Interval Multiplier
203.0.113.7 Up ge-2/0/0.0 0.030 0.010 3
Client L2CKT-OAM, TX interval 0.005, RX interval 0.010
Session up time 03:47:14
Local diagnostic None, remote diagnostic None
Remote state Up, version 1
Replicated
Session type: VCCV BFD
Min async interval 0.005, min slow interval 1.000
Adaptive async TX interval 0.005, RX interval 0.010
Local min TX interval 0.005, minimum RX interval 0.010, multiplier 3
Remote min TX interval 0.005, min RX interval 0.010, multiplier 3
Threshold transmission interval 0.030, Threshold for detection time 0.040
Local discriminator 20, remote discriminator 13004
Echo mode disabled/inactive
Remote is control-plane independent
Neighbor address 203.0.113.0, Virtual circuit id 1
Session ID: 0x0
1 sessions, 1 clients
Cumulative transmit rate 100.0 pps, cumulative receive rate 100.0 pps
意味
出力は、BFDセッションの詳細情報を示しています。