Dell Networking SONiC 的 MC-LAG 主動待命角色選擇

Summary: 本文說明 DELL SONiC MC-LAG 中的作用中或待命角色選擇。

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

MC-LAG 對等應處於作用中或待命模式。作用中或待命是控制面板的概念。然而在數據層面中,每個 MC-LAG 對等者都會根據角色而個別決定數據轉送路徑。

 

MC-LAG 角色是由對等根據 IPV4 來源 ip 和對等 IP 設定而決定。

  • 如果來源ip少於對等ip,則裝置會變成作用中
  • 如果來源ip大於對等ip,則裝置會變成待命

 

注意:作用中或待命角色不受同儕作業狀態或對等連結連線狀態的獨立。如果 Active MC-LAG 對等正在重新啟動,待命狀態不會變成 Active (反之亦然)。

 

例如:假設 Switch-1 使用來源 IP 10.0.0.1,而 Switch-2 具有來源 IP 10.0.0.2。
MCLAG 範例

 

Switch-1 的MC-LAG組態

Swicth-1# show running-configuration mclag
!
mclag domain 1
source-ip 10.0.0.1
peer-ip 10.0.0.2
peer-link PortChannel1
mclag-system-mac xx:xx:xx:xx:xx:xx
keepalive-interval 1

Swicth-1# show running-configuration mclag
 
Domain ID            : 1
Role                 : active
Session Status       : up
Peer Link Status     : up
Source Address       : 10.0.0.1
Peer Address         : 10.0.0.2
Peer Link            : PortChannel1
Keepalive Interval   : 1 secs
Session Timeout      : 30 secs
Delay Restore        : 300 secs
System Mac           : xx:xx:xx:xx:xx:xx
Mclag System Mac     : xx:xx:xx:xx:xx:xx

 

由於 Switch-1 的來源 ip (10.0.0.1) 比對等 ip (10.0.0.2) 較低,其所扮演的作用中角色。

 

Switch-2 的MC-LAG組態

Swicth-2# show running-configuration mclag
!
mclag domain 1
source-ip 10.0.0.2
peer-ip 10.0.0.1
peer-link PortChannel1
mclag-system-mac xx:xx:xx:xx:xx:xx
keepalive-interval 1

Swicth-2# show running-configuration mclag
 
Domain ID            : 1
Role                 : standby
Session Status       : up
Peer Link Status     : up
Source Address       : 10.0.0.2
Peer Address         : 10.0.0.1
Peer Link            : PortChannel1
Keepalive Interval   : 1 secs
Session Timeout      : 30 secs
Delay Restore        : 300 secs
System Mac           : xx:xx:xx:xx:xx:xx
Mclag System Mac     : xx:xx:xx:xx:xx:xx

 

由於交換器-2 的來源 ip (10.0.0.2) 高於對等 ip (10.0.0.1),其擔任待命角色。

 

Affected Products

Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9432F-ON
Article Properties
Article Number: 000206830
Article Type: How To
Last Modified: 12 Jan 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.