Dell Networking OS10 如何設定 LACP 個別
Summary: 本文說明如何設定 LACP 個別及其運作方式。
Instructions
索引
案例 1:連接埠通道 1 已啟動。LACP 已啟動。兩個介面 Eth 1/1/1 和 Eth 1/1/2 都在實體上啟動。
案例2.連接埠通道 1 已啟動。LACP 已啟動。介面 Eth 1/1/1 在實體上,Eth 1/1/2 在實體上上。
案例3.連接埠通道 1 已啟動。LACP 已啟動。介面 Eth 1/1/1 和 Eth 1/1/2 在實體上已啟動,但 LACP 在 Eth 1/1/2 上已關閉。
案例4:連接埠通道 1 已關閉。LACP 已關閉。兩個介面 Eth 1/1/1 和 Eth 1/1/2 在實體上都已啟動。
案例5:連接埠通道 1 已關閉。LACP 已關閉。介面 Eth 1/1/1 在實體上已上線,Eth 1/1/2 已上線。
簡介
LACP 個別功能會看到一種組態,其中為連結彙總控制通訊協定 (LACP) 設定的連接埠可獨立運作,而非作為彙總連結的一部分。當埠未從連接的設備接收 LACP 數據單元 (LACPDU) 時,通常會發生這種情況,這是形成聚合鏈路所必需的。在此狀態下,連接埠仍可正常運作,但不會提供連結彙總群組提供的彙總頻寬或備援。此功能有助於確保即使 LACP 協商失敗或連接的設備不支援 LACP,埠仍可運行。
我們只能在 LAG 上啟用 LACP 個別功能。隔離的埠稱為 LACP 單個埠。
LACP 個別功能的使用案例。
>1 次網路喚醒
>2 PXE 開機
|
注意:
• 如果使用 LACP 個別 (隔離) 連接埠連接至 LAG 的對等交換器未在其連接埠之間交換或轉送封包,Dell Technologies 建議在個別啟用 LACP 的 LAG 上啟用快速連接埠和 BPDU 保護。這可確保 LACP 各個埠可以快速移動到轉發狀態。
• 如果對等交換器確實能交換或轉送封包,且可識別 xSTP,Dell Technologies 建議您在個別啟用的 LACP 上啟用 xSTP,以避免涉及個別連接埠的資料迴圈。
• 如果對等交換器交換或轉送封包,且不知道 xSTP,但也轉送 xSTP BPDU (例如 PXE 開機裝置),Dell Technologies 建議在個別啟用的 LACP LAG 上啟用 xSTP。這可以防止對等交換器轉送 xSTP BPDU 時,出現由多個個別連接埠造成的迴圈。
• 我們可以在第 2 層模式下的 LAG 上啟用 LACP 個人功能。下列組態彼此排斥: 無交換器連接埠 和 LACP 個別。
• 如果是 LACP 單個埠。對應至一般連接埠成員組態的所有限制也適用於 LACP 個別連接埠。
|
|
注意:在 OS10 版本 10.5.4.x 中,以 LACP 個別模式運作的 LAG 內的 VLAN 可能預設為 1532 位元組的較低最大傳輸單元 (MTU) 大小。若要在不需要韌體更新的情況下解決此問題,您可以使用下列命令,在受影響的 LAG 上手動設定 MTU:
自 OS10 版本 10.5.5.10 及更新版本起,此問題已解決。升級至這些版本後,不需要手動配置 MTU。請參閱 Dell Networking 當 LACP 個別觸發至個別連接埠時,會導致其相關聯的 VLAN MTU 在 10.5.4.X 版本中變更為 1532
|
組態語法
OS10# configure terminal OS10(config)# interface port-channel <portchannel number> OS10(conf-if-po-X)# lacp individual |
- 我們必須在兩個 VLT 對等體上啟用 LACP 個別功能。
確認 LACP 個別是否正常運作的命令。
OS10# show lacp port-channel interface port-channel <portchannel number> OS10# show port-channel summary OS10# show interface port-channel summary OS10# show lacp interface ethernet <1/1/port-number> OS10# show vlan OS10# show mac address-table |
範例組態和案例研究
拓撲範例
在 DellOS10-SW1 上,可個別設定 LACP。
DellOS10-SW1# configure terminal DellOS10-SW1(config)# interface port-channel 1 DellOS10-SW1(conf-if-po-1)# lacp individual |
讓我們驗證一下 PortChannel1 的組態
DellOS10-SW1# show running-configuration interface port-channel 1 ! interface port-channel1 no shutdown switchport access vlan 1 vlt-port-channel 1 lacp individual |
在 DellOS10-SW2 (VLT 對等) 上,可個別設定 LACP。
DellOS10-SW2# configure terminal DellOS10-SW2(config)# interface port-channel 1 DellOS10-SW2(conf-if-po-1)# lacp individual |
讓我們驗證一下 PortChannel1 的組態
DellOS10-SW2# show running-configuration interface port-channel 1 ! interface port-channel1 no shutdown switchport access vlan 1 vlt-port-channel 1 lacp individual |
案例 1:連接埠通道 1 已啟動。LACP 已啟動。兩個介面 Eth 1/1/1 和 Eth 1/1/2 在實體上都已啟動。
假設我們有連接埠通道 1 上線LACP 已從伺服器端啟動。兩個介面 Eth 1/1/1 和 Eth 1/1/2 都在物理上啟動。
DellOS10-SW1# show port-channel summary
Flags: D - Down I - member up but inactive P - member up and active
U - Up (port-channel) F - Fallback Activated IND - LACP Individual
--------------------------------------------------------------------------------
Group Port-Channel Type Protocol Member Ports
--------------------------------------------------------------------------------
1 port-channel1 (U) Eth DYNAMIC 1/1/1(P) 1/1/2(P) 我們可以看到成員連接埠 Ethernet 1/1/1 和 1/1/2 為成員上線且處於使用中狀態。 |
我們可以看到 Vlan 1 的連接埠通道 1 的一部分介面 Eth 1/1/1 和 Eth 1/1/2 不被視為其 PortChannel 1 的一部分。 DellOS10-SW1# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
@ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated,
S - VLAN-Stack VLAN
Q: A - Access (Untagged), T - Tagged
NUM Status Description Q Ports
* 1 Active A Eth1/1/3-1/1/8,1/1/10-1/1/56
A Po1,1000
4094 Active T Po1000 |
DellOS10-SW1# show mac address-table Codes: pv <vlan-id> - private vlan where the mac is originally learnt VlanId Mac Address Type Interface 1 xx:xx:xx:xx:xx:xx dynamic port-channel1 |
我們可以看到個人:在以下輸出中啟用 (粗體)。這表示已設定 LACP 個人 DellOS10-SW1# show lacp port-channel interface port-channel 1 | grep Individual Individual: Enabled 當我們檢查介面時,我們看到 Individual: false DellOS10-SW1# show lacp interface ethernet 1/1/1 | grep Individual
Individual: false DellOS10-SW1# show lacp interface ethernet 1/1/2 | grep Individual
Individual: false |
案例2.連接埠通道 1 已啟動。LACP 已啟動。介面 Eth 1/1/1 在實體上,Eth 1/1/2 在實體上上。
我們認為連接埠通道已從伺服器端啟動。介面 Eth 1/1/1 在實體上,Eth 1/1/2 在實體上上。此處的連接埠 Eth 1/2 並未轉換至獨立連接埠
我們可以看到 Eth 1/1/1 在物理上處於啟動狀態,而 Eth 1/1/2 處於關閉狀態。 Eth 1/2 不是獨立連接埠 DellOS10-SW1# show port-channel summary
Flags: D - Down I - member up but inactive P - member up and active
U - Up (port-channel) F - Fallback Activated IND - LACP Individual
--------------------------------------------------------------------------------
Group Port-Channel Type Protocol Member Ports
--------------------------------------------------------------------------------
1 port-channel1 (UF) Eth DYNAMIC 1/1/1(P) 1/1/2(D) |
連接埠通道 1 是 vlan 1 的一部分。Eth 1/1 是 LACP 連接埠通道 1 的一部分。Eth 1/2 不是獨立連接埠 DellOS10-SW1# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
@ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated,
S - VLAN-Stack VLAN
Q: A - Access (Untagged), T - Tagged
NUM Status Description Q Ports
* 1 Active A Eth1/1/3-1/1/8,1/1/10-1/1/56
A Po1,1000 |
案例3.連接埠通道 1 已啟動。LACP 已啟動。介面 Eth 1/1/1 和 Eth 1/1/2 在實體上已啟動,但 LACP 在 Eth 1/1/2 上已關閉。
我們認為連接埠通道已從伺服器端啟動。介面 Eth 1/1/1 在實體上已啟動,LACP 已上線。Eth 1/1/2 實體已啟動,但 LACP 由於某些原因(如佈線未接線)而關閉。
此處的連接埠 Eth 1/1/2 轉換為獨立連接埠
我們可以看到 Eth 1/1/1 實際已啟動,而 LACP 已啟動。Eth 1/1/2 在物理上處於上升狀態,但 LACP 已關閉。 Eth 1/1/2 是獨立連接埠。 DellOS10-SW1# show port-channel summary Flags: D - Down I - member up but inactive P - member up and active U - Up (port-channel) F - Fallback Activated IND - LACP Individual -------------------------------------------------------------------------------- Group Port-Channel Type Protocol Member Ports -------------------------------------------------------------------------------- 1 port-channel1 (U) Eth DYNAMIC 1/1/1(P) 1/1/2(IND) |
連接埠通道 1 是 vlan 1 的一部分。Eth 1/1 是 LACP 連接埠通道 1 的一部分。Eth 1/2 是獨立的連接埠,也是 VLAN 1 的一部分 DellOS10-SW1# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
@ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated,
S - VLAN-Stack VLAN
Q: A - Access (Untagged), T - Tagged
NUM Status Description Q Ports
* 1 Active A Eth1/1/2-1/1/8,1/1/10-1/1/56
A Po1,1000
|
在連接埠通道 1 和 Eth 1/1/2 上獲知 Mac 位址 DellOS10-SW1# show mac address-table #Codes: pv <vlan-id> - private vlan where the mac is originally learnt VlanId Mac Address Type Interface 1 xx:xx:xxx:xx:xx:xx dynamic port-channel1 1 yy:yy:yy:yy:yy:yy dynamic ethernet1/1/2 |
我們可以看到個人:在以下輸出中啟用 (粗體)。這表示已設定 LACP 個人 DellOS10-SW1# show lacp port-channel interface port-channel 1 | grep Individual Individual: Enabled 讓我們檢查一下介面。對於 Eth 1/1/1,單個為 false。 DellOS10-SW1# show lacp interface ethernet 1/1/1 | grep Individual
Individual: false 但是,對於 Eth 1/1/2,個人是正確的。 DellOS10-SW1# show lacp interface ethernet 1/1/2 | grep Individual
Individual: true |
案例4:連接埠通道 1 已關閉。LACP 已關閉。兩個介面 Eth 1/1/1 和 Eth 1/1/2 在實體上都已啟動。
讓我們考慮一下埠通道已從伺服器端關閉。但是,伺服器的實體 NIC 已啟動。在這裡,我們可以看到介面 Eth 1/1/1 和 1/1/2 轉換到各個埠。它們都獲取 PortChannel 的中繼/接入配置,並開始學習 mac 位址,就好像它們是兩個獨立的埠一樣。
|
我們可以看到 Eth 1/1/1 和 Eth 1/1/2 都已轉換為 LACP Individual
DellOS10-SW1# show port-channel summary Flags: D - Down I - member up but inactive P - member up and active U - Up (port-channel) F - Fallback Activated IND - LACP Individual -------------------------------------------------------------------------------- Group Port-Channel Type Protocol Member Ports -------------------------------------------------------------------------------- 1 port-channel1 (D) Eth DYNAMIC 1/1/1(IND) 1/1/2(IND) |
|
DellOS10-SW1# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
@ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated,
S - VLAN-Stack VLAN
Q: A - Access (Untagged), T - Tagged
NUM Status Description Q Ports
* 1 Active A Eth1/1/1-1/1/8,1/1/10-1/1/56
A Po1,1000 |
|
我們可以看到兩個介面都已學習 mac 位址。
DellOS10-SW1# show mac address-table | grep ethernet 1 xx:xx:xx:xx:xx:xx dynamic ethernet1/1/2 1 yy:yy:yy:yy:yy:yy dynamic ethernet1/1/1 |
|
DellOS10-SW1# show lacp port-channel interface port-channel 1 | grep Individual Individual: Enabled
當我們檢查介面時,我們會看到 Individual: true
DellOS10-SW1# show lacp interface ethernet 1/1/1 | grep Individual
Individual: true DellOS10-SW1# show lacp interface ethernet 1/1/2 | grep Individual
Individual: true |
案例5:連接埠通道 1 已關閉。LACP 已關閉。介面 Eth 1/1/1 在實體上已上線,Eth 1/1/2 已上線。
讓我們考慮一下埠通道已關閉。Eth 1/1/1 處於正常狀態,Eth 1/1/2 處於關閉狀態。這表示連接至 Eth 1/1/1 的伺服器 NIC 已啟動,而連接至 Eth 1/1/2 的 NIC 會實體關閉。
|
DellOS10-SW1# show port-channel summary
Flags: D - Down I - member up but inactive P - member up and active
U - Up (port-channel) F - Fallback Activated IND - LACP Individual
--------------------------------------------------------------------------------
Group Port-Channel Type Protocol Member Ports
--------------------------------------------------------------------------------
1 port-channel1 (D) Eth DYNAMIC 1/1/1(IND) 1/1/2(D) |
|
DellOS10-SW1# show vlan Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs, @ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated, S - VLAN-Stack VLAN Q: A - Access (Untagged), T - Tagged NUM Status Description Q Ports * 1 Active A Eth1/1/1,1/1/3-1/1/8,1/1/10-1/1/56 A Po1,1000 |
|
乙太網路 1/1/1 從伺服器學習的 MAC 位址
DellOS10-SW1# show mac address-table | grep ether 1 xx:xx:xx:xx:xx:xx dynamic ethernet1/1/1 |
|
我們可以看到個人:在下方的輸出中啟用。這表示 LACP 個人已完成設定。 DellOS10-SW1# show lacp port-channel interface port-channel 1 | grep Individual Individual: Enabled
DellOS10-SW1# show lacp interface ethernet 1/1/1 | grep Individual
Individual: true
DellOS10-SW1# show lacp interface ethernet 1/1/2 | grep Individual Individual: |