NFX150 デバイス上のシャーシ クラスタ
2台のデバイスが単一のデバイスとして動作するシャーシクラスターは、NFX150デバイスで高可用性を提供します。シャーシクラスタリングには、設定ファイルの同期と、シャーシクラスタ設定の一部であるデバイス間の動的ランタイムセッション状態が含まれます。
NFX150 シャーシ クラスタの概要
NFX150デバイスをクラスターモードで動作するよう設定するには、1組のデバイスを単一のノードのように接続して設定することで、デバイス、インターフェイス、サービスレベルで冗長性を提供します。
2台のデバイスが シャーシクラスタとして動作するように設定されている場合、各デバイスはそのクラスタのノードになります。2 つのノードは互いをバックアップし、1 つのノードはプライマリ デバイスとして機能し、もう 1 つのノードはセカンダリ デバイスとして機能し、システムやハードウェアに障害が発生した場合にプロセスとサービスのステートフル フェイルオーバーを実現します。プライマリ デバイスに障害が発生した場合、セカンダリ デバイスがトラフィックの処理を引き継ぎます。
クラスタのノードは、制御リンクとファブリック リンクと呼ばれる 2 つのリンクを介して接続されます。シャーシ クラスタ内のデバイスは、クラスタ全体の設定、カーネル、PFE セッションの状態を同期して、高可用性、ステートフル サービスのフェイルオーバー、ロード バランシングを容易にします。
制御リンク—ノード間の設定を同期します。設定ステートメントをクラスタに送信すると、設定は制御インターフェイス上で自動的に同期されます。
シャーシ クラスタに制御リンクを作成するには、1 つのノードの heth-0-0 ポートを 2 番目のノードの heth-0-0 ポートに接続します。
メモ:heth-0-0 ポートのみを使用して制御リンクを作成できます。
ファブリックリンク(データリンク)—ノード間でトラフィックを転送します。もう一方のノードで処理する必要があるノードに到着したトラフィックは、ファブリックリンクを介して転送されます。同様に、他のノードのインターフェイスを介して出る必要があるノードで処理されたトラフィックは、ファブリックリンクを介して転送されます。
heth-0-0 以外の任意のポートを使用してファブリック リンクを作成できます。
シャーシ クラスタ モード
シャーシ クラスタは、アクティブ/パッシブ モードまたはアクティブ/アクティブ モードで設定できます。
Active/passive mode—アクティブ/パッシブ モードでは、トランジット トラフィックはプライマリ ノードを通過し、バックアップ ノードは障害が発生した場合にのみ使用されます。障害が発生すると、バックアップ デバイスがプライマリ デバイスとなり、すべての転送タスクを引き継ぎます。
Active/active mode—アクティブ/アクティブ モードでは、トランジット トラフィックは常に両方のノードを通過します。
シャーシ クラスタ インターフェイス
シャーシ クラスタ インターフェイスには以下が含まれます。
冗長イーサネット(reth)インターフェイス—クラスタの各ノードからの物理インターフェイスを含む疑似インターフェイス。アクティブ ノードの reth インターフェイスは、シャーシ クラスタ設定のトラフィックを渡す役割を担います。
reth インターフェイスには、最低でも、1 組のファスト イーサネット インターフェイス、または冗長イーサネット インターフェイス(冗長親)の子インターフェイスと呼ばれるギガビット イーサネット インターフェイスのペアを含める必要があります。各ノードから2つ以上の子インターフェイスが冗長イーサネットインターフェイスに割り当てられている場合、冗長イーサネットインターフェイスリンクアグリゲーショングループを形成できます。
メモ:NFX150 デバイスでは、最大 128 reth インターフェイスを設定できます。
制御インターフェイス —クラスタ内の 2 つのノード間の制御リンクを提供するインターフェイス。このインターフェイスは、ルーティングの更新や、ノードフェイルオーバーをトリガーするハートビートやしきい値情報などのコントロールプレーン信号トラフィックに使用されます。
メモ:デフォルトでは、heth-0-0 ポートは NFX150 デバイスの専用制御インターフェイスとして設定されています。そのため、デバイスがシャーシ クラスタの一部である場合、heth-0-0 ポートを他の仮想インターフェイスにマッピングすることはできません。
ファブリック インターフェイス — クラスターの 2 つのノード間の物理接続を提供するインターフェイス。ファブリックインターフェイスは、1組のイーサネットインターフェイスをバックツーバックで接続することで形成されます(各ノードから1つ)。クラスタのパケット転送エンジンは、このインターフェイスを使用してトランジット トラフィックを送信し、データ プレーン ソフトウェアのランタイム状態を同期します。設定のファブリックインターフェイスに使用する物理インターフェイスを指定する必要があります。
シャーシ クラスタの制限
同じノードの再メンバー・インタフェースの冗長LAG(RLAG)はサポートされていません。ノードごとに複数の子インターフェースを持つ reth インターフェースを RLAG と呼びます。
例:NFX150デバイスでのシャーシクラスタの設定
この例では、NFX150デバイスでシャーシクラスタリングを設定する方法を示しています。
要件
開始する前に、以下を行います。
2台のデバイスを物理的に接続し、それらが同じNFX150モデルであることを確認します。
両方のデバイスが同じJunos OSバージョンを実行していることを確認する
両方のノードの制御ポート heth-0-0 のすべてのインターフェイス マッピングを削除します。
ノード 0 の専用制御ポート heth-0-0 をノード 1 の heth-0-0 ポートに接続します。
ノード0のファブリックポートをノード1のファブリックポートに接続します。
概要
図 1 は、この例で使用したトポロジーを示しています。この例では、基本的なアクティブ/パッシブ シャーシ クラスタリングを設定する方法を示します。1 台のデバイスがシャーシ クラスタの制御をアクティブに維持します。もう一方のデバイスは、アクティブなデバイスが非アクティブになった場合に、クラスタ フェイルオーバー機能の状態を受動的に維持します。
この例では、セキュリティ機能の設定方法など、その他の設定について詳しく説明しません。スタンドアロンの構成の場合と基本的に同じです。

構成
シャーシ クラスタの設定
手順
両方のノードでクラスタIDを設定し、デバイスを再起動します。クラスタIDとノードIDが設定された後、クラスタモードに入るために再起動が必要です。
メモ:両方のデバイスで コマンドを発行するには、動作モードを入力する必要があります。
user@host1> set chassis cluster cluster-id 1 node 0 reboot user@host2> set chassis cluster cluster-id 1 node 1 reboot
クラスタIDは両方のデバイスで同じですが、1台のデバイスがノード0で、もう一方のデバイスがノード1であるため、ノードIDは異なる必要があります。クラスタIDの範囲は0~255で0に設定すると、クラスタモードの無効化に相当します。
シャーシ クラスタが正常に設定されていることを確認します。
-
user@host1> show chassis cluster status Monitor Failure codes: CS Cold Sync monitoring FL Fabric Connection monitoring GR GRES monitoring HW Hardware monitoring IF Interface monitoring IP IP monitoring LB Loopback monitoring MB Mbuf monitoring NH Nexthop monitoring NP NPC monitoring SP SPU monitoring SM Schedule monitoring CF Config Sync monitoring RE Relinquish monitoring Cluster ID: 1 Node Priority Status Preempt Manual Monitor-failures Redundancy group: 0 , Failover count: 0 node0 1 primary no no None node1 1 secondary no no None
-
root@NFX150-1> show chassis cluster information node0: -------------------------------------------------------------------------- Redundancy Group Information: Redundancy Group 0 , Current State: primary, Weight: 255 Time From To Reason Mar 15 11:33:47 hold secondary Hold timer expired Mar 15 11:34:03 secondary primary Only node present Chassis cluster LED information: Current LED color: Green Last LED change reason: No failures node1: -------------------------------------------------------------------------- Redundancy Group Information: Redundancy Group 0 , Current State: secondary, Weight: 255 Time From To Reason Mar 15 12:14:49 hold secondary Hold timer expired Chassis cluster LED information: Current LED color: Green Last LED change reason: No failures
シャーシ クラスタを設定した後、設定モードに入り、プライマリ ノード(node0)ですべての設定を実行できます。
-
ノード0および1のホスト名とアウトオブバンド管理IPアドレスを設定します。
user@host1# set groups node0 system host-name NFX150-1 user@host1# set groups node0 interfaces fxp0 unit 0 family inet address 10.204.41.80/20
user@host1# set groups node1 system host-name NFX150-2 user@host1# set groups node1 interfaces fxp0 unit 0 family inet address 10.204.41.90/20
帯域外管理用に設定されたもの以外のサブネットからデバイスにアクセスする場合は、静的ルートを設定します。
user@host1# set groups node0 routing-options static route 0.0.0.0/0 next-hop 10.204.47.254 user@host1# set groups node1 routing-options static route 0.0.0.0/0 next-hop 10.204.47.254
物理 LAN ポートを FPC0 の仮想 LAN インターフェイスにマッピングします。
user@host1# set groups node0 vmhost virtualization-options interfaces ge-0/0/0 mapping interface heth-0-1 user@host1# set groups node1 vmhost virtualization-options interfaces ge-7/0/0 mapping interface heth-0-1
メモ:シャーシ クラスタでは、セカンダリ ノードの FPC1 ポートは ge-8/0/x、FPC0 ポートは ge-7/0/x と示されます。
物理WANポートをFPC1の仮想WANインターフェイスにマッピングします。
user@host1# set groups node0 vmhost virtualization-options interfaces ge-1/0/2 mapping interface heth-0-5 user@host1# set groups node1 vmhost virtualization-options interfaces ge-8/0/2 mapping interface heth-0-5
ノード0と1のFPC0とFPC1間のポートピアリングを設定します。ポートピアリングにより、レイヤー2データプレーン(FPC0)によって制御されるLANインターフェイスに障害が発生した場合、レイヤー3データプレーン(FPC1)上の対応するインターフェイスがマークダウンされ、その逆も保証されます。これにより、対応する冗長グループのセカンダリ ノードへのフェイルオーバーに役立ちます。
user@host# set groups node0 chassis cluster redundant-interface ge-1/0/0 mapping-interface ge-0/0/0 user@host# set groups node1 chassis cluster redundant-interface ge-8/0/0 mapping-interface ge-7/0/0
ファブリックポートを設定します。
user@host1# set groups node0 vmhost virtualization-options interfaces ge-1/0/1 mapping interface heth-0-4 user@host1# set groups node1 vmhost virtualization-options interfaces ge-8/0/1 mapping interface heth-0-4 user@host1# set interfaces fab0 fabric-options member-interfaces ge-1/0/1 user@host1# set interfaces fab1 fabric-options member-interfaces ge-8/0/1
ノード 0 と 1 にノード固有の設定を適用します。
user@host1# set apply-groups "${node}"
システムが制御リンクの回復を自動的に実行できるようにします。制御リンクが正常であると判断された後、システムは制御リンクに障害が発生したときに無効にされたノードで自動再起動を発行します。無効化されたノードが再起動すると、クラスタに再び参加します。
user@host1# set chassis cluster control-link-recovery
インターフェイスを確認します。
user@host1# run show chassis cluster interfaces
冗長グループと冗長インターフェイスの設定
手順
-
冗長性グループ1および2を設定します。データ プレーンと
redundancy-group 2
データ プレーン ポートの両方redundancy-group 1
を制御します。各ノードには、冗長性グループ内のインターフェイスがあります。冗長性グループ設定の一環として、制御プレーンとデータプレーンの優先度(制御プレーンに優先するデバイス、データプレーンに優先するデバイス)も定義する必要があります。シャーシクラスタリングの場合、優先度が高くなります。高い数値が優先されます。この設定では、
node 0
reth0 が メンバーであり、reth1 が のredundancy-group 1
メンバーであるのに関連付redundancy-group 1
けられているアクティブノードですredundancy-group 2
。ノード0を通じてクラスタ内のすべての変更を設定する必要があります。ノード0に障害が発生した場合、ノード1がアクティブノードになります。user@host1# set chassis cluster redundancy-group 1 node 0 priority 100 user@host1# set chassis cluster redundancy-group 1 node 1 priority 100 user@host1# set chassis cluster redundancy-group 2 node 0 priority 100 user@host1# set chassis cluster redundancy-group 2 node 1 priority 100
-
のプリエンプトを
redundancy-group 1
有効にします。user@host1# set chassis cluster redundancy-group 1 preempt
メモ:冗長グループ設定にプリエンプトが追加された場合、グループの優先度が高いデバイスは、プライマリ デバイスになるためのフェイルオーバーを開始できます。デフォルトでは、プリエンプションは無効になっています。
冗長性グループが監視する必要のあるインターフェイスを設定して、インターフェイスがアップまたはダウンしているかどうかを判断します。
デフォルトでは、冗長性グループのしきい値は255です。冗長性グループによって監視されたインターフェイスが利用できなくなった場合、冗長性グループのしきい値から重みが減算されます。冗長性グループのしきい値が 0 に達すると、他のノードにフェールオーバーします。
user@host# set chassis cluster redundancy-group 1 interface-monitor ge-1/0/0 weight 255 user@host# set chassis cluster redundancy-group 1 interface-monitor ge-8/0/0 weight 255 user@host# set chassis cluster redundancy-group 2 interface-monitor ge-1/0/2 weight 255 user@host# set chassis cluster redundancy-group 2 interface-monitor ge-8/0/2 weight 255
データ プレーンのフェイルオーバーが発生した場合、他のシャーシ クラスタ メンバーが接続をシームレスに引き継ぐように、データ インターフェイスを設定します。
以下のパラメーターを定義します。
システムがそれらに適切なリソースを割り当てることができるように、クラスタの reth インターフェイスの最大数。
user@host1# set chassis cluster reth-count 5
シャーシ クラスタでフェイルオーバーがトリガーされるまでの待機時間を定義するハートビート間隔としきい値。
user@host1# set chassis cluster heartbeat-interval 1000 user@host1# set chassis cluster heartbeat-threshold 5
rethインターフェイスへのメンバーインターフェイスのメンバーシップ情報。
user@host# set interfaces ge-1/0/0 gigether-options redundant-parent reth1 user@host# set interfaces ge-1/0/2 gigether-options redundant-parent reth2 user@host# set interfaces ge-8/0/0 gigether-options redundant-parent reth1 user@host# set interfaces ge-8/0/2 gigether-options redundant-parent reth2
rethインターフェイスを設定します。
reth1を設定します。
user@host1# set interfaces reth1 vlan-tagging user@host1# set interfaces reth1 redundant-ether-options redundancy-group 1 user@host1# set interfaces reth1 unit 0 vlan-id 100 user@host1# set interfaces reth1 unit 0 family inet address 192.0.3.1/24 user@host1# set interfaces reth1 unit 0 family inet6 address 2001:db8:1:1::/64
reth2を設定します。
user@host1# set interfaces reth2 vlan-tagging user@host1# set interfaces reth2 redundant-ether-options redundancy-group 2 user@host1# set interfaces reth2 unit 0 vlan-id 200 user@host1# set interfaces reth2 unit 0 family inet address • 203.0.113.1/24 user@host1# set interfaces reth2 unit 0 family inet6 address 2001:db8:2:1::/64
LANからWAN、およびWANからLANへのトラフィックを許可するセキュリティポリシーを設定します。
user@host1# set security policies default-policy permit-all user@host1# set security zones security-zone trust host-inbound-traffic system-services all user@host1# set security zones security-zone trust host-inbound-traffic protocols all user@host1# set security zones security-zone trust interfaces all
検証
シャーシ クラスタ ステータスの検証
目的
シャーシ クラスタとそのインターフェイスのステータスを確認します。
アクション
動作モードから、以下のコマンドを発行します。
クラスタのステータスを確認します。
root@NFX150-1> show chassis cluster status Monitor Failure codes: CS Cold Sync monitoring FL Fabric Connection monitoring GR GRES monitoring HW Hardware monitoring IF Interface monitoring IP IP monitoring LB Loopback monitoring MB Mbuf monitoring NH Nexthop monitoring NP NPC monitoring SP SPU monitoring SM Schedule monitoring CF Config Sync monitoring RE Relinquish monitoring Cluster ID: 1 Node Priority Status Preempt Manual Monitor-failures Redundancy group: 0 , Failover count: 0 node0 1 primary no no None node1 1 secondary no no None Redundancy group: 1 , Failover count: 0 node0 100 primary yes no None node1 100 secondary yes no None Redundancy group: 2 , Failover count: 0 node0 100 primary no no None node1 100 secondary no no None
冗長性グループのステータスを検証します。
root@NFX150-1> show chassis cluster information node0: -------------------------------------------------------------------------- Redundancy Group Information: Redundancy Group 0 , Current State: primary, Weight: 255 Time From To Reason Mar 21 12:06:18 hold secondary Hold timer expired Mar 21 12:18:46 secondary primary Remote node reboot Redundancy Group 1 , Current State: primary, Weight: 255 Time From To Reason Mar 21 12:06:19 hold secondary Hold timer expired Mar 21 12:08:51 secondary primary Remote is in secondary hold Redundancy Group 2 , Current State: primary, Weight: 255 Time From To Reason Mar 21 12:06:19 hold secondary Hold timer expired Mar 21 12:18:46 secondary primary Remote node reboot Chassis cluster LED information: Current LED color: Green Last LED change reason: No failures node1: -------------------------------------------------------------------------- Redundancy Group Information: Redundancy Group 0 , Current State: secondary, Weight: 255 Time From To Reason Mar 21 13:02:05 hold secondary Hold timer expired Redundancy Group 1 , Current State: secondary, Weight: 255 Time From To Reason Mar 21 13:02:05 hold secondary Hold timer expired Redundancy Group 2 , Current State: secondary, Weight: 255 Time From To Reason Mar 21 13:02:06 hold secondary Hold timer expired Chassis cluster LED information: Current LED color: Green Last LED change reason: No failures
インターフェイスのステータスを確認します。
root@NFX150-1> show chassis cluster interfaces Control link status: Up Control interfaces: Index Interface Monitored-Status Internal-SA Security 0 em1 Up Disabled Disabled Fabric link status: Up Fabric interfaces: Name Child-interface Status Security (Physical/Monitored) fab0 ge-1/0/1 Up / Up Disabled fab0 fab1 ge-8/0/1 Up / Up Disabled fab1 Redundant-ethernet Information: Name Status Redundancy-group reth0 Down Not configured reth1 Down 1 reth2 Down 2 reth3 Down Not configured reth4 Down Not configured Redundant-pseudo-interface Information: Name Status Redundancy-group lo0 Up 0 Interface Monitoring: Interface Weight Status Redundancy-group (Physical/Monitored) ge-8/0/0 255 Up / Up 1 ge-1/0/0 255 Up / Up 1 ge-8/0/2 255 Up / Up 2 ge-1/0/2 255 Up / Up 2
ポートピアリング インターフェイスのステータスを確認します。
root@NFX150-1> show chassis cluster port-peering node0: -------------------------------------------------------------------------- Port peering interfaces: Backend L3 Mapped Peer L2 Interface Status Interface Status ge-1/0/0 Up ge-0/0/0 Up node1: -------------------------------------------------------------------------- Port peering interfaces: Backend L3 Mapped Peer L2 Interface Status Interface Status ge-8/0/0 Up ge-7/0/0 Up