例:MAC移動によるVPLSネットワークでのループ防止の設定
MACがVPLSネットワークにおけるループ防止を動かす概要
Junos OS 14.2 以降、VPLS ネットワークでループを防止するようにルーターを設定できます。VPLS(仮想プライベート LAN サービス)の導入において、以前に学習した MAC(メディア アクセス制御)アドレスがローカル インターフェイス(ギガビット イーサネット インターフェイス)やラベル スイッチ インターフェイス(LSI)などの異なる物理インターフェイス、または同じ物理インターフェイスの別のユニット内に表示され、この動作が頻繁に発生する場合は、MAC 移動とみなされます。
以下のパラメーターに基づいてMACアドレスの移動を報告するようにルーターを設定できます。
MACアドレス移動の発生回数
MACアドレスの移動が発生する指定された期間
ネットワークでの構成エラーにより、トラフィックは終わりのない循環パスまたはループに強制される可能性があります。VPLSネットワーク内のこれらのループにより、異なるインターフェイス間でMACが頻繁に移動するため、ネットワーク内のそのようなインターフェイスを無効にすることで問題を解決できます。ループの原因となっているインターフェイスを無効にするには、以下の2つのアプローチがあります。
ベース学習インターフェイス(ベースIFL)アプローチアルゴリズム:これは、ループしたインターフェイスを無効にするために使用される主要なアプローチです。ベースインターフェイス情報は、ルーティングインスタンス内のすべてのMACに対して維持されます。MAC が最初に学習したインターフェイスに 300 秒間留まる場合、インターフェイスと MAC の関連付けは安定していると見なされ、このインターフェイスは MAC のベース インターフェイスと見なされます。MACのベースインターフェイスがLSIであるときに、ローカルインターフェイスとLSIインターフェイスの間でMAC移動が頻繁に行われる場合、ローカルインターフェイスはループしていると見なされ、無効にする必要があります。
統計的アプローチアルゴリズム:これは、ループしたインターフェイスを無効にするために使用される二次的なアプローチです。インターフェイスでMACが300秒以上学習されていない場合、ベースインターフェイスがないため、統計的アプローチが使用されます。
ベースインターフェイス情報がない(ベース学習インターフェイスがnullである)MACが動き始めると、異なるインターフェイス間でそのようなMACが移動する統計情報が学習されます。MACがLSIからローカルインターフェイスに、またはローカルインターフェイスからローカルインターフェイスに移動すると、ローカルインターフェイスはループしていると見なされ、無効になります。
たとえば、仮想ルーター冗長性プロトコル(VRRP)のプライマリロールの変更など、異なるインターフェイス間を移動できる特定のMACがあります。このようなMAC移動のベースインターフェイスは、ループ作成を前提とするため維持できません。したがって、このようなMACは仮想MACとして設定する必要があります。仮想MACの例としては、VRRPの場合は00:00:5e:00:01:xx、HSRP(ホットスタンバイルータープロトコル)の場合は00:00:00:0c:07:ac:xx、GSLB(グローバルサーバーロードバランシング)の場合は00:07:b4:00:01:xx、VMotionの場合は02:bf:xx:xx:xx:xx:xxです。
Junos OS Release 17.4R1以降、 global-mac-move ステートメントは vpls-mac-move ステートメントに置き換わります。 global-mac-move ステートメントの下にある以下のタイマーは、無効化されたインターフェイスの監視に役立ちます。
クールオフ時間:クールオフ時間は、インターフェイスが無効になったときに開始されます。この間、ルーティングインスタンスで発生するMACムーブは無視されます。これにより、ルーティングインスタンスで特定の時間に1つのインターフェイスのみがブロックされ、別のインターフェイスのブロックは、特定のMACの動きがまだ観測されている場合に限り、クールオフタイマーの終了後にのみ行われます。デフォルトでは、クールオフ時間は 30 秒です。
インターフェイスの回復時間:インターフェイスが無効になると、そのインターフェイスは永久に無効になります。インターフェイス回復時間を設定することで、インターフェイス回復時間の完了時にインターフェイスが有効になるようになります。インターフェイスの回復時間を300秒以上に設定することを推奨します。
統計的アプローチの待機時間:MACアドレスのベースIFLがない場合にループの存在を判断するためにMACの移動が観察された後、MACアドレスが収集される時間。.デフォルトでは、統計的なアプローチ待機タイマーは 30 秒です。
MACアドレスの基本学習インターフェイスが確立される前に、MAC移動ループ防止に統計的アプローチアルゴリズムが使用されます。統計的アプローチアルゴリズムが使用されている場合、問題のある MACアドレスは、00:00:00:00:00:00:00 の MACアドレスで表示されます。MACアドレスのベース学習インターフェイスが確立されるまでは、ルーティングループを持つインターフェイスが誤って識別される可能性があります。
関連項目
MAC移動によるVPLSループ防止の設定
VPLS(仮想プライベート LAN サービス)の導入において、以前に学習した MAC(メディア アクセス制御)アドレスがローカル インターフェイス(ギガビット イーサネット インターフェイス)やラベル スイッチ インターフェイス(LSI)などの異なる物理インターフェイス、または同じ物理インターフェイスの別のユニット内に表示され、この動作が頻繁に発生する場合は、MAC 移動とみなされます。ルーターは、MACアドレス移動の発生回数と、MACアドレス移動が発生した指定された時間に基づいて、MACアドレスの移動を報告します。VPLSネットワークでの設定エラーは、ループにつながり、異なるインターフェイス間でMACが頻繁に移動する原因となる可能性があります。これらの移動を使用して、ネットワーク内のそのようなインターフェイスを無効にすることで、問題を修正できます。インターフェイスを無効にするには、以下の 2 つのアプローチを使用できます。
ベース学習インターフェイス(ベースIFL)アプローチアルゴリズム:これは、ループしたローカルインターフェイスを無効にするために使用される主要なアプローチです。
統計的アプローチアルゴリズム:これは、ループしたローカルインターフェイスを無効にするために使用される二次的なアプローチです。
仮想MACの中には、異なるインターフェイス間を実際に移動できるものもあり、そのようなMACは移動を無視するように設定することができます。クールオフ時間と統計的アプローチ待機時間は、ループしたインターフェイスを見つけるために内部的に使用されます。インターフェイスの回復時間は、ネットワーク内のループにより無効になったインターフェイスを自動的に有効にするように設定できます。
VPLSネットワークでループ防止の設定を始める前に:
VPLSトポロジーを設定します。
VPLSルーティングインスタンスを設定します。
VPLSインスタンスでVPLS MAC移動アクションを有効にします。
ルーティングプロトコルとシグナリングプロトコルを設定します。
以下では、リリース17.4R1以降のvpls-mac-moveコマンドに置き換わるglobal-mac-moveコマンドを使用していますJunos OS。
VPLSネットワークでループ防止を設定するには:
関連項目
例:MAC移動によるVPLSネットワークでのループ防止の設定
この例では、異なる物理インターフェイス間のMAC移動によってVPLSネットワークでループが発生するのを防ぐ方法を示しています。
VPLS ネットワークで MAC 移動が検出された場合、Junos OS は、ベース IFL または統計的アプローチ アルゴリズムを使用してインターフェイスを無効にすることで、ネットワーク内のループを防止できます。
要件
この例では、以下のハードウェアおよびソフトウェアコンポーネントを使用しています。
4つのMXシリーズ5Gユニバーサルルーティングプラットフォーム
すべてのデバイスで実行されている Junos OS リリース 14.2 以降
始める前に:
VPLSトポロジーを設定します。
VPLSルーティングインスタンスを設定します。
VPLSインスタンスでVPLS MAC移動アクションを有効にします。
ルーティングプロトコルとシグナリングプロトコルを設定します。
概要
Junos OSリリース14.2以降、異なる物理インターフェイス間の頻繁なMAC移動によるVPLSネットワークでのループ作成を防止できます。ベースIFLアプローチまたは統計的アプローチアルゴリズムを使用してそのようなインターフェイスを特定し、無効にすることができます。
base IFL approach アルゴリズムが主要なアプローチです。ベースインターフェイス情報は、ルーティングインスタンス内のすべてのMACに対して維持されます。MAC が最初に学習したインターフェイスに 300 秒間留まる場合、インターフェイスと MAC の関連付けは安定していると見なされ、このインターフェイスは MAC のベース インターフェイスと見なされます。MACのベースインターフェイスがLSIであるときに、ローカルインターフェイスとLSIインターフェイスの間でMAC移動が頻繁に行われる場合、ローカルインターフェイスはループしていると見なされ、無効にする必要があります。
statistical approach アルゴリズムは、ループしたインターフェイスを無効にするために使用される二次的なアプローチです。インターフェイスでMACが300秒以上学習されていない場合、ベースインターフェイスがないため、統計的アプローチが使用されます。ベースインターフェイス情報がない(ベース学習インターフェイスがnull)のMACが移動を開始すると、そのようなMACの統計情報が異なるインターフェイス間で移動します。MACがLSIからローカルインターフェイスに、またはローカルインターフェイスからローカルインターフェイスに移動すると、ローカルインターフェイスはループしていると見なされ、無効になります。
設定
CLIクイックコンフィグレーション
この例を簡単に設定するには、以下のコマンドをコピーしてテキストファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更し、コマンドを [edit] 階層レベルのCLIにコピー&ペーストしてください。
この例では、リリース17.4R1以降のvpls-mac-moveコマンドに置き換わるglobal-mac-moveコマンドJunos OS使用しています。
PE0
set interfaces xe-0/0/0 unit 0 family inet address 198.51.100.8/24 set interfaces xe-0/0/0 unit 0 family mpls set interfaces xe-0/2/0 unit 0 family inet address 198.51.100.6/24 set interfaces xe-0/2/0 unit 0 family mpls set interfaces xe-0/3/0 vlan-tagging set interfaces xe-0/3/0 encapsulation vlan-vpls set interfaces xe-0/3/0 unit 600 encapsulation vlan-vpls set interfaces xe-0/3/0 unit 600 vlan-id 600 set interfaces ge-2/0/3 unit 0 family inet address 198.51.100.1/24 set interfaces ge-2/0/3 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.1/24 set routing-options router-id 192.0.2.1 set routing-options autonomous-system 701 set protocols mpls interface fxp0.0 disable set protocols mpls interface ge-2/0/3.0 set protocols mpls interface xe-0/2/0.0 set protocols mpls interface xe-0/0/0.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface ge-2/0/3.0 interface-type p2p set protocols ospf area 0.0.0.0 interface ge-2/0/3.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/2/0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/2/0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-0/0/0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-0/0/0.0 metric 10 set protocols ldp interface xe-0/0/0.0 set protocols ldp interface xe-0/2/0.0 set protocols ldp interface ge-2/0/3.0 set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set protocols l2-learning global-mac-move threshold-time 30 set protocols l2-learning global-mac-move threshold-count 4 set protocols l2-learning global-mac-move cooloff-time 10 set protocols l2-learning global-mac-move statistical-approach-wait-time 10 set protocols l2-learning global-mac-move interface-recovery-time 5 set protocols l2-learning global-mac-move virtual-mac 00:00:5e:00:01:00/40 set routing-instances vpls_1 instance-type vpls set routing-instances vpls_1 interface xe-0/3/0.600 set routing-instances vpls_1 protocols vpls no-tunnel-services set routing-instances vpls_1 protocols vpls vpls-id 100 set routing-instances vpls_1 protocols vpls neighbor 192.0.2.2 set routing-instances vpls_1 protocols vpls neighbor 192.0.2.3 set routing-instances vpls_1 protocols vpls neighbor 192.0.2.4
PE1
set interfaces ge-0/0/3 unit 0 family inet address 198.51.100.2/24 set interfaces ge-0/0/3 unit 0 family mpls set interfaces xe-1/2/0 unit 0 family inet address 198.51.100.5/24 set interfaces xe-1/2/0 unit 0 family mpls set interfaces xe-1/2/1 unit 0 family inet address 198.51.100.3/24 set interfaces xe-1/2/1 unit 0 family mpls set interfaces xe-1/3/1 vlan-tagging set interfaces xe-1/3/1 encapsulation vlan-vpls set interfaces xe-1/3/1 unit 600 encapsulation vlan-vpls set interfaces xe-1/3/1 unit 600 vlan-id 600 set interfaces lo0 unit 0 family inet address 192.0.2.2/24 set routing-options router-id 192.0.2.2 set routing-options autonomous-system 701 set protocols mpls interface fxp0.0 disable set protocols mpls interface ge-0/0/3.0 set protocols mpls interface xe-1/2/1.0 set protocols mpls interface xe-1/2/0.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface ge-0/0/3.0 interface-type p2p set protocols ospf area 0.0.0.0 interface ge-0/0/3.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-1/2/1.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-1/2/1.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-1/2/0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-1/2/0.0 metric 10 set protocols ldp interface ge-0/0/3.0 set protocols ldp interface xe-1/2/0.0 set protocols ldp interface xe-1/2/1.0 set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set protocols l2-learning global-mac-move threshold-time 30 set protocols l2-learning global-mac-move threshold-count 4 set protocols l2-learning global-mac-move cooloff-time 10 set protocols l2-learning global-mac-move statistical-approach-wait-time 10 set protocols l2-learning global-mac-move interface-recovery-time 10 set protocols l2-learning global-mac-move virtual-mac 00:00:5e:00:01:00/40 set routing-instances vpls_1 instance-type vpls set routing-instances vpls_1 interface xe-1/3/1.600 set routing-instances vpls_1 protocols vpls enable-mac-move-action set routing-instances vpls_1 protocols vpls no-tunnel-services set routing-instances vpls_1 protocols vpls vpls-id 100 set routing-instances vpls_1 protocols vpls neighbor 192.0.2.1
PE2
set interfaces xe-4/0/0 unit 0 family inet address 198.51.100.10/24 set interfaces xe-4/0/0 unit 0 family mpls set interfaces xe-4/1/0 unit 0 family inet address 198.51.100.4/24 set interfaces xe-4/1/0 unit 0 family mpls set interfaces xe-4/2/0 unit 0 family inet address 198.51.100.7/24 set interfaces xe-4/2/0 unit 0 family mpls set interfaces xe-4/3/0 vlan-tagging set interfaces xe-4/3/0 encapsulation vlan-vpls set interfaces xe-4/3/0 unit 600 encapsulation vlan-vpls set interfaces xe-4/3/0 unit 600 vlan-id 600 set interfaces lo0 unit 0 family inet address 192.0.2.3/24 set routing-options router-id 192.0.2.3 set routing-options autonomous-system 701 set protocols mpls interface fxp0.0 disable set protocols mpls interface xe-4/2/0.0 set protocols mpls interface xe-4/1/0.0 set protocols mpls interface xe-4/0/0.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface xe-4/2/0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-4/2/0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-4/1/0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-4/1/0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-4/0/0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-4/0/0.0 metric 10 set protocols ldp interface xe-4/0/0.0 set protocols ldp interface xe-4/1/0.0 set protocols ldp interface xe-4/2/0.0 set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set protocols l2-learning global-mac-move threshold-time 30 set protocols l2-learning global-mac-move threshold-count 4 set protocols l2-learning global-mac-move threshold-count 5 set protocols l2-learning global-mac-move cooloff-time 10 set protocols l2-learning global-mac-move statistical-approach-wait-time 10 set protocols l2-learning global-mac-move interface-recovery-time 10 set protocols l2-learning global-mac-move virtual-mac 00:00:5e:00:01:00/40 set routing-instances vpls_1 instance-type vpls set routing-instances vpls_1 interface xe-4/3/0.600 set routing-instances vpls_1 protocols vpls enable-mac-move-action set routing-instances vpls_1 protocols vpls no-tunnel-services set routing-instances vpls_1 protocols vpls vpls-id 100 set routing-instances vpls_1 protocols vpls neighbor 192.0.2.1
PE3
set interfaces xe-1/0/0 unit 0 family inet address 198.51.100.9/24 set interfaces xe-1/0/0 unit 0 family mpls set interfaces xe-1/1/0 unit 0 family inet address 198.51.100.12/24 set interfaces xe-1/1/0 unit 0 family mpls set interfaces xe-1/2/0 unit 0 family inet address 198.51.100.11/24 set interfaces xe-1/2/0 unit 0 family mpls set interfaces xe-1/3/0 vlan-tagging set interfaces xe-1/3/0 encapsulation vlan-vpls set interfaces xe-1/3/0 unit 600 encapsulation vlan-vpls set interfaces xe-1/3/0 unit 600 vlan-id 600 set interfaces xe-2/3/0 vlan-tagging set interfaces xe-2/3/0 encapsulation vlan-vpls set interfaces xe-2/3/0 unit 600 encapsulation vlan-vpls set interfaces xe-2/3/0 unit 600 vlan-id 600 set interfaces lo0 unit 0 family inet address 192.0.2.4/24 set routing-options router-id 192.0.2.4 set routing-options autonomous-system 701 set protocols mpls interface fxp0.0 disable set protocols mpls interface xe-1/2/0.0 set protocols mpls interface xe-1/0/0.0 set protocols mpls interface xe-1/1/0.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface xe-1/2/0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-1/2/0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-1/0/0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-1/0/0.0 metric 10 set protocols ospf area 0.0.0.0 interface xe-1/1/0.0 interface-type p2p set protocols ospf area 0.0.0.0 interface xe-1/1/0.0 metric 10 set protocols ldp interface xe-1/0/0.0 set protocols ldp interface xe-1/1/0.0 set protocols ldp interface xe-1/2/0.0 set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set protocols l2-learning global-mac-move threshold-time 30 set protocols l2-learning global-mac-move threshold-count 4 set protocols l2-learning global-mac-move cooloff-time 10 set protocols l2-learning global-mac-move statistical-approach-wait-time 10 set protocols l2-learning global-mac-move interface-recovery-time 10 set protocols l2-learning global-mac-move virtual-mac 00:00:52:00:01:00/40 set policy-options policy-statement pplb then load-balance per-packet set routing-instances vpls_1 instance-type vpls set routing-instances vpls_1 interface xe-1/3/0.600 set routing-instances vpls_1 interface xe-2/3/0.600 set routing-instances vpls_1 protocols vpls no-tunnel-services set routing-instances vpls_1 protocols vpls vpls-id 100 set routing-instances vpls_1 protocols vpls neighbor 192.0.2.1
デバイスPE1の設定
ステップバイステップの手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、『CLIユーザーガイド』の「設定モードでのCLIエディターの使用」を参照してください。
デバイスPE1を設定するには:
ルーターの適切なインターフェイス名、アドレス、およびその他のパラメータを変更した後、ルーターPE0、PE2、およびPE3に対してこのルーター手順を繰り返します。
インターフェイスを設定します。
[edit interfaces] user@PE1# set ge-0/0/3 unit 0 family inet address 198.51.100.2/24 user@PE1# set ge-0/0/3 unit 0 family mpls user@PE1# set xe-1/2/0 unit 0 family inet address 198.51.100.5/24 user@PE1# set xe-1/2/0 unit 0 family mpls user@PE1# set xe-1/2/1 unit 0 family inet address 198.51.100.3/24 user@PE1# set xe-1/2/1 unit 0 family mpls user@PE1# set xe-1/3/1 vlan-tagging user@PE1# set xe-1/3/1 encapsulation vlan-vpls user@PE1# set xe-1/3/1 unit 600 encapsulation vlan-vpls user@PE1# set xe-1/3/1 unit 600 vlan-id 600 user@PE1# set lo0 unit 0 family inet address 192.0.2.2/24
ルーティングオプションを設定します。
[edit routing-options] user@PE1# set router-id 192.0.2.2 user@PE1# set autonomous-system 701
インターフェイスに MPLS プロトコルを設定します。
[edit protocols mpls] user@PE1# set interface fxp0.0 disable user@PE1# set interface ge-0/0/3.0 user@PE1# set interface xe-1/2/1.0 user@PE1# set interface xe-1/2/0.0
OSPFプロトコルを設定します。
[edit protocols ospf] user@PE1# set area 0.0.0.0 interface lo0.0 passive user@PE1# set area 0.0.0.0 interface fxp0.0 disable user@PE1# set area 0.0.0.0 interface ge-0/0/3.0 interface-type p2p user@PE1# set area 0.0.0.0 interface ge-0/0/3.0 metric 10 user@PE1# set area 0.0.0.0 interface xe-1/2/1.0 interface-type p2p user@PE1# set area 0.0.0.0 interface xe-1/2/1.0 metric 10 user@PE1# set area 0.0.0.0 interface xe-1/2/0.0 interface-type p2p user@PE1# set area 0.0.0.0 interface xe-1/2/0.0 metric 10
インターフェイスにLDPプロトコルを設定します。
[edit protocols ldp] user@PE1# set interface ge-0/0/3.0 user@PE1# set interface xe-1/2/0.0 user@PE1# set interface xe-1/2/1.0 user@PE1# set interface fxp0.0 disable user@PE1# set interface lo0.0
MACの動きを検出するための閾値時間と閾値カウントを設定します。
[edit protocols l2-learning global-mac-move] user@PE1# set threshold-time 30 user@PE1# set threshold-count 4
クーオフ時間、統計的アプローチ待機時間、インターフェイス回復時間、仮想MACなどのVPLS MAC移動パラメーターを設定します。
[edit protocols l2-learning global-mac-move] user@PE1# set cooloff-time 10 user@PE1# set statistical-approach-wait-time 10 user@PE1# set interface-recovery-time 10 user@PE1# set virtual-mac 00:00:5e:00:01:00/40
VPLSインスタンスvpls_1のインターフェイスでMAC移動アクションを有効にします。
[edit routing-instances vpls_1] user@PE1# set instance-type vpls user@PE1# set interface xe-1/3/1.600 user@PE1# set protocols vpls enable-mac-move-action user@PE1# set protocols vpls no-tunnel-services user@PE1# set protocols vpls vpls-id 100 user@PE1# set protocols vpls neighbor 192.0.2.1
結果
設定モードから、 show interfaces、 show protocols、 show routing-options、および show routing-instances コマンドを入力して設定を確認します。出力に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@PE1# show interfaces
ge-0/0/3 {
unit 0 {
family inet {
address 198.51.100.2/24;
}
family mpls;
}
}
xe-1/2/0 {
unit 0 {
family inet {
address 198.51.100.5/24;
}
family mpls;
}
}
xe-1/2/1 {
unit 0 {
family inet {
address 198.51.100.3/24;
}
family mpls;
}
}
xe-1/3/1 {
vlan-tagging;
encapsulation vlan-vpls;
unit 600 {
encapsulation vlan-vpls;
vlan-id 600;
}
}
lo0 {
unit 0 {
family inet {
address 192.0.2.2/24;
}
}
}
user@PE1# show protocols
mpls {
interface fxp0.0 {
disable;
}
interface ge-0/0/3.0;
interface xe-1/2/1.0;
interface xe-1/2/0.0;
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface fxp0.0 {
disable;
}
interface ge-0/0/3.0 {
interface-type p2p;
metric 10;
}
interface xe-1/2/1.0 {
interface-type p2p;
metric 10;
}
interface xe-1/2/0.0 {
interface-type p2p;
metric 10;
}
}
}
ldp {
interface ge-0/0/3.0;
interface xe-1/2/0.0;
interface xe-1/2/1.0;
interface fxp0.0 {
disable;
}
interface lo0.0;
}
l2-learning {
global-mac-move {
threshold-time 30;
threshold-count 4;
}
global-mac-move {
cooloff-time 10;
statistical-approach-wait-time 10;
interface-recovery-time 10;
virtual-mac 00:00:5e:00:01:00/40;
}
}
user@PE1# show routing-instances
vpls_1 {
instance-type vpls;
interface xe-1/3/1.600;
protocols {
vpls {
enable-mac-move-action;
no-tunnel-services;
vpls-id 100;
neighbor 192.0.2.1;
}
}
}
デバイスの設定が完了したら、設定モードから commit を入力します。
検証
設定が正常に機能していることを確認します。
- VPLSネットワークでのMAC移動の検証
- VPLSインスタンスでのMAC移動の検証
- VPLS ネットワークでの MAC 移動バッファの検証
- ベースIFLアプローチアルゴリズムのVPLS MACテーブルの検証
- インターフェイスが無効であることの確認
- 統計的アプローチアルゴリズムのVPLS MACテーブルの検証
VPLSネットワークでのMAC移動の検証
目的
VPLSネットワークでMAC移動が観察されていることを確認します。
アクション
動作モードから、デバイスPE1の show vpls mac-move-action コマンドを実行します。
user@PE1> show vpls mac-move-action
Instance: vpls_1
Local interface: xe-1/3/1.600, Index: 341
Algorithm used : Base IFL
Time rec : 02:30:35
Recovery timer : Yes
意味
出力には、使用されたインスタンス名、ローカル インターフェイス、アルゴリズムが表示されており、VPLS MAC MoveがVPLSネットワークで観察されていることを示しています。
VPLSインスタンスでのMAC移動の検証
目的
VPLSインスタンスでMAC移動が観察されていることを確認します。
アクション
動作モードから、デバイスPE1の show vpls mac-move-action instance instance-name コマンドを実行します。
user@PE1> show vpls mac-move-action instance vpls_1
Instance: vpls_1
Local interface: xe-1/3/1.600, Index: 341
Algorithm used : Base IFL
Time rec : 02:29:35
Recovery timer : Yes
意味
出力には、VPLSインスタンスでVPLS MAC移動が観察されたことを示すローカルインターフェイスと使用されたアルゴリズムが表示されます。
VPLS ネットワークでの MAC 移動バッファの検証
目的
MAC移動バッファを検証して、VPLSネットワークで発生しているMAC移動を監視します。
アクション
動作モードから、デバイスPE1の show l2-learning mac-move-buffer コマンドを実行します。
user@PE1> show l2-learning mac-move-buffer
MAC Time Bridge
Address Rec. Domain
00:10:00:01:00:09 03:26:00 __vpls_1__
00:10:00:01:00:05 03:26:00 __vpls_1__
00:10:00:01:00:03 03:26:00 __vpls_1__
00:10:00:01:00:05 03:26:00 __vpls_1__
00:10:00:01:00:08 03:26:00 __vpls_1__
00:10:00:01:00:01 03:26:00 __vpls_1__
00:10:00:01:00:03 03:26:00 __vpls_1__
00:10:00:01:00:01 03:26:00 __vpls_1__
00:10:00:01:00:00 03:26:00 __vpls_1__
00:10:00:01:00:01 03:26:01 __vpls_1__
00:10:00:01:00:06 03:26:01 __vpls_1__
00:10:00:01:00:02 03:26:01 __vpls_1__
00:10:00:01:00:08 03:26:01 __vpls_1__
00:10:00:01:00:00 03:26:01 __vpls_1__
00:10:00:01:00:01 03:26:01 __vpls_1__
00:10:00:01:00:09 03:26:01 __vpls_1__
ベースIFLアプローチアルゴリズムのVPLS MACテーブルの検証
目的
MACアドレスのベース学習インターフェイスを検証します。.
アクション
運用モードから show vpls mac-table extensive コマンドを実行し、VPLS MACテーブルの広範な情報を取得します。
user@PE1> show vpls mac-table extensive
MAC address: 00:10:00:01:00:00
Routing instance: vpls_1
Bridging domain: __vpls_1__, VLAN : NA
Learning interface: lsi.1049165
Base learning interface: lsi.1049165
Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
Epoch: 0 Sequence number: 1
Learning mask: 0x00000001
MAC address: 00:10:00:01:00:01
Routing instance: vpls_1
Bridging domain: __vpls_1__, VLAN : NA
Learning interface: lsi.1049165
Base learning interface: lsi.1049165
Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
Epoch: 0 Sequence number: 1
Learning mask: 0x00000001
MAC address: 00:10:00:01:00:02
Routing instance: vpls_1
Bridging domain: __vpls_1__, VLAN : NA
Learning interface: lsi.1049165
Base learning interface: lsi.1049165
Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
Epoch: 0 Sequence number: 1
Learning mask: 0x00000001
MAC address: 00:10:00:01:00:03
Routing instance: vpls_1
Bridging domain: __vpls_1__, VLAN : NA
Learning interface: lsi.1049165
Base learning interface: lsi.1049165
Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
Epoch: 0 Sequence number: 1
Learning mask: 0x00000001
意味
コマンド show vpls mac-table extensive の出力は、MACアドレスの基本学習インターフェイスを示しています。
インターフェイスが無効であることの確認
目的
MACアドレスの基本学習インターフェイスが無効になっていることを確認します。
アクション
動作モードから、デバイスPE1の show interfaces interface-name コマンドを実行します。
user@PE1> show interfaces xe-1/3/1.600
Logical interface xe-1/3/1.600 (Index 341) (SNMP ifIndex 2864)
Flags: Up Link-Layer-Down SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.600 ] Encapsulation: VLAN-VPLS
Input packets : 2234018970
Output packets: 2234728895
Protocol vpls, MTU: 1518
Flags: Is-Primary
意味
出力で link-layer-down フラグは、インターフェイスが無効であることを示しています。
統計的アプローチアルゴリズムのVPLS MACテーブルの検証
目的
統計的アプローチアルゴリズムのVPLS MACテーブルを検証します。
アクション
動作モードから、デバイスPE1の show vpls mac-table extensive コマンドを実行します。
user@PE1> show vpls mac-table extensive
MAC address: 00:10:00:01:00:00
Routing instance: vpls_1
Bridging domain: __vpls_1__, VLAN : NA
Learning interface: xe-1/3/1.600
Base learning interface: NULL
Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
Epoch: 3 Sequence number: 442
Learning mask: 0x00000002
MAC address: 00:10:00:01:00:01
Routing instance: vpls_1
Bridging domain: __vpls_1__, VLAN : NA
Learning interface: xe-1/3/1.600
Base learning interface: NULL
Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
Epoch: 3 Sequence number: 442
Learning mask: 0x00000003
MAC address: 00:10:00:01:00:02
Routing instance: vpls_1
Bridging domain: __vpls_1__, VLAN : NA
Learning interface: xe-1/3/1.600
Base learning interface: NULL
Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
Epoch: 3 Sequence number: 442
Learning mask: 0x00000002
MAC address: 00:10:00:01:00:03
Routing instance: vpls_1
Bridging domain: __vpls_1__, VLAN : NA
Learning interface: xe-1/3/1.600
Base learning interface: NULL
Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd
Epoch: 3 Sequence number: 442
Learning mask: 0x00000002
意味
Base learning interfaceはnullであり、統計的アプローチが使用されていることを示します。
変更履歴テーブル
サポートされる機能は、使用しているプラットフォームとリリースによって決まります。 機能エクスプローラー を使用して、機能がお使いのプラットフォームでサポートされているかどうかを確認します。
