Dell Networking SONiC 如何在 MCLAG 中使用 VRF 中的 IP 位址 保活連結 (source-ip 和對等-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 對等鏈路同步對等狀態,並用於在兩個對等方之間傳輸檢測信號。為此,我們可以使用分配給 VLAN、介面、管理介面的 IP 位址。
從 Dell SONiC 4.2 版本開始,我們可以在非預設 VRF 中使用 IP 位址。
注意:
| - 確保在配置為保持連接鏈路時,源IP可訪問對等IP。使用 ping 命令驗證連線能力。 若 為預設 VRF,請勿使用命令 session-vrf。 - 我們可以使用在 Vlan 或第 3 層介面中分配的 IP 位址進行保活連結 使用 Vlan 作為 Keepalive 連結時,請務必在組態中使用mclag-separate-ip。 如需詳細資訊,請參閱應在 Dell Networking Enterprise SONiC OS MF-CLI 中使用「mclag-separate-ip」。 範例組態
|
組態語法
| 組態 | 說明 |
|---|---|
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 |
(選擇性)如果我們使用管理,請使用此命令。VRF。 |
範例組態
目標:讓我們在 MCLAG 對等交換器 2 中設定保持連接連結。頻外管理連接埠是在 IP 為 192.168.1.2 的 mgmt VRF 中設定。對等IP為192.168.1.1。
考慮管理連接埠 (頻外) 位於 vrf 管理中,我們將其用作 Keepalive 連結。
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 和對等 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 |
讓我們驗證工作階段狀態使用以下命令顯示 mclag 簡介 。
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.