Dell Networking SONiC:MCLAGキープアライブ リンク(source-ipおよびpeer-ip)のVRFでIPアドレスを使用する方法

Summary: この記事では、Dell Networking SONiCのMCLAGキープアライブ リンク(source-ipおよびpeer-ip)のVRFでIPアドレスを使用する方法について説明します。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

必要条件
 

概念を示すために、標準的なインターフェイスの命名を使用しています。詳細については、記事Dell Networking Sシリーズ:  基本インターフェイス設定 – SONIC 4.0』を参照してください。

 


MCLAGピア リンクはピアの状態を同期し、2つのピア間でハートビートを伝送するために使用されます。この目的には、VLAN、インターフェイス、管理インターフェイスに割り当てられたIPアドレスを使用できます。  

Dell SONiC 4.2バージョンからは、デフォルト以外のVRFでIPアドレスを使用できます。
 
メモ: 
 - キープアライブ リンクとして設定する場合は、ピア IP が送信元 IP に到達可能であることを確認します。pingコマンドを使用して、接続を確認します。
 - デフォルト VRF では、コマンド session-vrf を使用しないでください。
- Vlanまたはレイヤー3インターフェイスで割り当てられたIPアドレスをキープアライブリンク
に使用できます - Vlanをキープアライブリンクとして使用する場合は設定でmclag-separate-ipを必ず使用してください。
    詳細については、「Dell Networking Enterprise SONiC OS MF-CLIで「mclag-separate-ip」を使用すべき場合」を参照してください


サンプル設定
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# interface Vlan 10
DELLSONiC(config-if-Vlan10)# ip address 192.168.1.2/24
DELLSONiC(config-if-Vlan10)# mclag-separate-ip

 


構成構文
 
Configuration 説明
admin@ DELLSONiC:~$ sonic-cli
Dell MF-CLIへのログイン
DELLSONiC# configure
設定モードに入ります。
DELLSONiC(config)# mclag domain <Domain ID>
MCLAGドメインIDを定義します。1-4095
DELLSONiC(config-mclag-domain-1)# peer-ip <IP address>
キープアライブ用のピアIPの構成
DELLSONiC(config-mclag-domain-1)# source-ip <IP address>
キープアライブ用の送信元IPの構成
DELLSONiC(config-mclag-domain-1)# session-vrf <VRF-NAME>
(オプション)デフォルトの VRF では、この設定は必要ありません。
DELLSONiC(config-mclag-domain-1)# session-vrf mgmt
(オプション)mgmtを使用する場合は、このコマンドを使用します。Vrf。



設定

例目標:MCLAGピアスイッチ2でキープアライブリンクを設定しましょう。帯域外管理ポートは、IP 192.168.1.2 の管理 VRF に設定されています。ピアIPは192.168.1.1です。

image.png

管理ポート(帯域外)はvrf管理にあり、これをキープアライブ リンクとして使用します。
 
DELLSONiC# show ip vrf
VRF-NAME            INTERFACES
----------------------------------------------------------------
default
mgmt                Management0


mclagドメインの管理としてsession-vrfを割り当てましょう。
 
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)# mclag domain 1
DELLSONiC(config-mclag-domain-1)# source-ip 192.168.1.2
DELLSONiC(config-mclag-domain-1)# peer-ip 192.168.1.1
DELLSONiC(config-mclag-domain-1)# session-vrf mgmt
DELLSONiC(config-mclag-domain-1)# exit
DELLSONiC(config)# exit
DELLSONiC#


Pingテストを実行して、vrf管理でsource-ip 192.168.1.2とpeer-ip 192.168.1.1の間に接続があることを確認します
 
DELLSONiC# ping vrf mgmt 192.168.1.1 -I 192.168.1.2
sudo: unable to resolve host DELLSONiC: Temporary failure in name resolution
PING 192.168.1.1 (192.168.1.1) from 192.168.1.2 : 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=4.73 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.13 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.846 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=4.71 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=4.75 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=1.03 ms
^C
--- 192.168.1.1 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5023ms
rtt min/avg/max/mdev = 0.846/2.867/4.746/1.865 ms


セッションのステータスを確認します。次のコマンドshow mclag brief を使用します。
 
DELLSONiC# show mclag brief

Domain ID            : 1
Role                 : standby
Session Status       : up                     ======>We can see keepalive session is up
Peer Link Status     : up
Source Address       : 192.168.1.2
Peer Address         : 192.168.1.1
Session Vrf          : mgmt                   ======>The Keepalive session use mgmt vrf
Peer Link            : Eth1/1
Keepalive Interval   : 1 secs
Session Timeout      : 30 secs
Delay Restore        : 300 secs
System Mac           : 0c:de:4c:81:00:0a
Mclag System Mac     :


Number of MLAG Interfaces:1
-----------------------------------------------------------
MLAG Interface       Local/Remote Status
-----------------------------------------------------------
PortChannel1             up/up
DELLSONiC#

Affected Products

PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON , PowerSwitch Z9432F-ON ...
Article Properties
Article Number: 000222932
Article Type: How To
Last Modified: 11 Mar 2024
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.