如何在 Dell Networking Enterprise SONiC MF-CLI 中設定閘道 MAC 位址

Summary: 本文說明如何在 Dell Networking Enterprise SONiC 中設定閘道 MAC 位址。

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 Enterprise SONiC Gateway MAC 位址

根據預設,MC-LAG 交換器及其對等交換器會使用作用中對等的系統 MAC 位址作為 L3 介面中的閘道 MAC 位址。若要針對對等連結為 VLAN 成員的 L3 VLAN 介面,使用常見的可設定閘道 MAC 位址,請設定 MC-LAG 閘道 MAC 位址。
 
注意:在以mclag-separate-ip 設定的 VLAN 介面上,VLAN 會採用與設定的mclag gateway-mac 不同的 MAC 位址 (mclag-separate-ip 組態優先於 mclag gateway-mac)。
 

指數


組態語法
解釋
mclag-separate-ip 對已設定閘道Mac位址的影響
 

組態語法

 

組態
 
說明

Admin@SONIC:~$ sonic-cli
 
輸入SONiC CLI

SONiC# 設定終端機
 
輸入組態終端機。

SONIC(config)# mclag gateway-mac <Mac 位址>     
 
設定閘道 MAC 位址。
  
注意:閘道 MAC 位址不能為零、多播或廣播 MAC 位址。
 
注意:請確定位址未與 Anycast MAC 位址混淆。
 

說明

以下是拓撲的解說。
MC-LAG 拓撲範例
圖 1:MC-LAG 拓撲範例

範例組態
讓我們在兩個 MC-LAG 同儕中將 66:22:33:44:55:66 設定為 mclag gateway-mac。
設定 MC-LAG MAC
圖 2:設定 MC-LAG MAC

我們可以從下游交換器看到 VLAN 25 和 VLAN 50 的 MAC 位址是 66:22:33:44:55:66。
show ip arp 命令的螢幕快照
圖 3:show ip arp 命令的螢幕快照
 

mclag-separate-ip 對已設定閘道Mac位址的影響

在以mclag-separate-ip 設定的 VLAN 介面上,VLAN 會採用與設定的mclag gateway-mac 不同的 MAC 位址。

假設我們在 VLAN 25 上設定 mclag-separate-ip。
MCLAGSW1中顯示介面 vlan 25 的螢幕快照
圖 4:MCLAGSW1中顯示介面 VLAN 25 的螢幕快照
 
MCLAGSW2中顯示介面 vlan 25 的螢幕快照
圖 5:
MCLAGSW2中顯示介面 VLAN 25 的螢幕快照

兩個交換器上的 VLAN 50 並未設定 mclag-separate-ip。
未設定交換器MCLAGSW1顯示介面 vlan 50 的螢幕快照
圖 6:未設定交換器MCLAGSW1 VLAN 50 顯示介面的屏幕截圖
 
未設定交換器MCLAGSW2顯示介面 vlan 50 的螢幕快照
圖 7:未設定交換器MCLAGSW2 VLAN 50 顯示介面的屏幕截圖

我們可以看到,在兩個mclag對等上,VLAN 25的MAC位址已變更,不再屬於已設定的閘道MAC。但是,MAC 位址 VLAN 50 仍是設定的閘道 MAC 位址。
顯示ip arp 與結果的螢幕快照
圖 8:顯示ip arp 與結果的螢幕快照
 

Affected Products

Enterprise SONiC Distribution, PowerSwitch S6000 ON, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch S6100-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ON , PowerSwitch Z9332F-ON ...
Article Properties
Article Number: 000191547
Article Type: How To
Last Modified: 06 Jul 2023
Version:  7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.