適用於 Red Hat OpenShift 的 DELL APEX CLOUD PLATFORM:在搭接介面更換網卡後,MAC 位址維持不變

Summary: 在搭接介面更換網卡後,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.

Symptoms

更換物理網路介面卡(NIC)后,相應網路介面(例如eno12399np0)或綁定介面(bond0)的MAC位址與更換前相同。新 NIC 的實體 MAC 位址不同,但作業系統仍會顯示舊位址。

Cause

當網路介面為搭接介面 (bond0) 的一部分時,此行為是正常且符合預期的。在標準 Linux 綁定配置中:·綁定介面繼承在創建綁定時添加到其中的第一個從屬介面的 MAC 位址。然後,所選的MAC位址將應用於同一綁定中的所有其他從介面,以實現操作一致性。即使在更換物理 NIC 之後,綁定驅動程式也會繼續為邏輯綁定介面及其從站使用最初分配的 MAC 位址。

 

範例場景·

搭接介面:

 bond0· First Slave: eno12399np0 (Integrated 1, Port 1)· Original MAC of eno12399np0: XX:XX:XX:XX:XX:XX

 

更換整合 1 的實體 NIC 後,連接埠 1: 

New NIC's Permanent MAC: YY:YY:YY:YY:YY:YY·

Active/Displayed MAC of eno12399np0: XX:XX:XX:XX:XX:XX (Remains unchanged, inherited from bond0)

 

Resolution

如果介面正常運作,則不需要執行任何動作。這是設計的行為。

若要確認系統狀態:1.檢查介面是否為 UP 且是否為部分搭接: 

  ip link show eno12399np0     => Look for state UP and master bond0 in the output.

您可以同時觀察永久(燒入)和活動(綁定分配)MAC 位址:   

  ip link show eno12399np0    => The link/ether field shows the active MAC (belonging to the bond).  The permaddr field shows the physical MAC of the new card.

 

結論:

硬體更換后原始 MAC 位址的持久性是有意的,可確保綁定介面的網路穩定性。只要連結狀態為「UP」且連線能力正常,表示系統運作正常。

Affected Products

APEX Cloud Platform for Red Hat OpenShift, APEX MC-660, APEX MC-760
Article Properties
Article Number: 000395604
Article Type: Solution
Last Modified: 16 كانون الأول 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.