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 和 peer-ip 确定。

  • 如果源 ip 小于对等 ip,则设备将变为活动状态
  • 如果源 ip 大于对等 ip,则设备将变为待机状态

 

提醒:活动或待机角色独立于 对等节点运行状态或对等链路连接状态。如果活动 MC-LAG 对等节点正在重新启动,则备用不会变为活动状态,反之亦然。

 

例如:请考虑交换机 1 使用的是源 IP 10.0.0.1,而交换机 2 具有源 IP 10.0.0.2。
MCLAG 示例

 

交换机 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

 

由于交换机 1 的源 ip (10.0.0.1) 低于其对等 ip (10.0.0.2), 因此它具有活动角色。

 

交换机 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.