1. S2000交換機匯聚
(1)S2000: link-aggregation ethernet .. to ethernet .. both
做匯聚的端口必須為強制的10M/全雙工或100M/全雙工模式
------------------------------------------------------------------
(2)S2000C: 同上
------------------------------------------------------------------
(3)S2000SI: 同上
參與匯聚的起始端口必須是特定端口,例如2個端口匯聚的情況,起始端口必須是1、3、5、7、9、11、13、15、17、19、21、23等端口;4個端口匯聚的情況,起始端口必須是1、5、9、13、17、21等端口;8個端口匯聚的情況,起始端口必須是1、9、17端口。
-----------------------------------------------------------------
(4)S2000EI: 同上
------------------------------------------------------------------
(5)S2000HI: 只支持手工匯聚。創建匯聚組:link-aggregation group id mode manual
端口加入匯聚組,端口視圖下:port link-aggregation group id
若一個匯聚組中端口大於4個,端口號較小的4個實現流量負載分擔,其余做為鏈路備份
例:[Quidway] link-aggregation group 1 mode manual
[Quidway] interface ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
[Quidway] interface ethernet1/0/2
[Quidway-Ethernet1/0/2] port link-aggregation group 1
------------------------------------------------------------------
(6)S2000EA: 支持手工、靜態、動態匯聚。
手工匯聚:創建手工匯聚組-->端口加入匯聚組
link-aggregation group id mode manual
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode manual
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
匯聚組中只有一個端口時,只能通過刪除匯聚的方式將端口從匯聚中刪除。手工匯聚時端口的LACP協議自動關閉。匯聚組中的端口可能處於兩種狀態:selected或unselected,只有selected狀態的端口可以轉發用戶報文。
靜態匯聚:創建靜態匯聚組-->端口加入匯聚組
link-aggregation group id mode static
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode static
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
匯聚組中只有一個端口時,只能通過刪除匯聚的方式將端口從匯聚中刪除。
靜態匯聚時端口的LACP協議開啟。當一個靜態匯聚組被刪除時,其處於up狀態的成員端口將形成一個或多個動態LACP匯聚,並保持LACP開啟。
動態匯聚:端口開啟LACP協議即可
端口視圖下:lacp enable
例:[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] lacp enable
動態匯聚中,端口的LACP協議處於開啟狀態。只有速率和雙工屬性相同、連接到同一個設備、有相同基本配置的端口才能被動態匯聚在一起
------------------------------------------------------------------
(7)S2000MI: 只支持手工匯聚。
創建手工匯聚組-->端口加入匯聚組
link-aggregation group id mode manual
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode manual
[Quidway] interface ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
===============================================================================
2.S3000交換機匯聚:
(1)S3000: link-aggregation ethernet .. to ethernet .. both
做匯聚的端口必須為強制的10M/全雙工或100M/全雙工模式
------------------------------------------------------------------
(2)S3000SI: 同上
參與匯聚的起始端口必須是特定端口,例如2個端口匯聚的情況,起始端口必須是1、3、5、7、9、11、13、15、17、19、21、23等端口;4個端口匯聚的情況,起始端口必須是1、5、9、13、17、21等端口;8個端口匯聚的情況,起始端口必須是1、9、17端口。
------------------------------------------------------------------
(3)S3000EI: 同上
S3026C/S3026G/S3026T/S3026C-PWR以太網交換機最多可以有6個匯聚組,1個匯聚組最多可以有8個端口。另外,兩個上行口可以匯聚成1個匯聚組。組內的端口號必須連續,但對起始端口無特殊要求.
S3026E FM與S3026E FS以太網交換機最多可以有6個匯聚組,1個匯聚組最多可以有8個端口。如果組內的端口是同一槽內的端口,則端口號必須連續;如果組內的端口跨越了兩個槽,則同一槽內的端口號必須連續,槽號必須連續,且只能從第二個槽第1個端口開始加入匯聚組。
===============================================================================
3.S3500交換機匯聚:
(1)S3500: link-aggregation ethernet .. to ethernet .. both
S3526C:最多可以有4個匯聚組,1個匯聚組最多可以有8個固定端口或2個擴展模塊端口,端口起始值只能為Ethernet0/1、Ethernet0/9、Ethernet0/17、Gigabitethernet1/1,且組內的端口號必須連續
S3526E/S3526C:最多可以有6個匯聚組,1個匯聚組最多可以有8個固定端口或2個擴展模塊端口,組內的端口號必須連續,對起始端口無特殊要求
S3526 FM/S3526 FS:最多可以有4個匯聚組,1個匯聚組最多可以有8個固定端口或2個擴展模塊端口,端口起始值只能為Ethernet0/1、Ethernet0/9、Ethernet1/5、Gigabitethernet3/1,如果組內的端口是同一槽內的端口,則端口號必須連續;如果組內的端口跨越了兩個槽,則同一槽內的端口號必須連續,槽號必須連續,且只能從第二個槽第1個端口開始加入匯聚組,對起始端口無特殊要求
S3526E FM/S3526E FS:最多可以有6個匯聚組,1個匯聚組最多可以有8個端口,如果組內的端口是同一槽內的端口,則端口號必須連續;如果組內的端口跨越了兩個槽,則同一槽內的端口號必須連續,槽號必須連續,且只能從第二個槽第1個端口開始加入匯聚組,對起始端口無特殊要求
S3552G/S3552P/S3528G/S3528P/S3552F:最多可以有7個端口匯聚組,1個匯聚組最多可以有8個端口,百兆端口和千兆端口不能在同一個匯聚組中,組內的端口號必須連續,對起始端口無特殊要求
------------------------------------------------------------------
(2)S3552FHI:支持手工匯聚
創建手工匯聚組-->端口加入匯聚組
link-aggregation group id mode manual
端口視圖下:port link-aggregation group id
------------------------------------------------------------------
(3)S3500EA: 支持手工、靜態匯聚
手工匯聚:創建手工匯聚組-->端口加入匯聚組
link-aggregation group id mode manual
端口視圖下:port link-aggregation group id
靜態匯聚:創建靜態匯聚組-->端口加入匯聚組
link-aggregation group id mode static
端口視圖下:port link-aggregation group id
(4)S3500SI: 支持手工、靜態匯聚
手工匯聚:創建手工匯聚組-->端口加入匯聚組
link-aggregation group id mode manual
端口視圖下:port link-aggregation group id
靜態匯聚:創建靜態匯聚組-->端口加入匯聚組
link-aggregation group id mode static
端口視圖下:port link-aggregation group id
===============================================================================
4.S3900交換機匯聚:
支持手工、靜態、動態匯聚。
手工匯聚:創建手工匯聚組-->端口加入匯聚組
link-aggregation group id mode manual
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode manual
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
靜態匯聚:創建靜態匯聚組-->端口加入匯聚組
link-aggregation group id mode static
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode static
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
動態匯聚:端口開啟LACP協議即可
端口視圖下:lacp enable
例:[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] lacp enable
===============================================================================
5.S5000交換機匯聚:
link-aggregation ethernet .. to ethernet .. both
做匯聚的端口必須為強制的10M/全雙工或100M/全雙工模式
一台S5012G和S5012T-12/10GBC以太網交換機最多可以有6個匯聚組,1個匯聚組最多可以有8個端口。組內的端口號必須連續,但對起始端口無特殊要求。
一台S5024G-24/20TP以太網交換機最多可以有12個匯聚組,1個匯聚組最多可以有8個端口。組內的端口號必須連續,但對起始端口無特殊要求。
===============================================================================
6.S5600交換機匯聚:
支持手工、靜態、動態匯聚。
手工匯聚:創建手工匯聚組-->端口加入匯聚組
link-aggregation group id mode manual
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode manual
[Quidway] interface GigabitEthernet 1/0/1
[Quidway-GigabitEthernet1/0/1] port link-aggregation group 1
靜態匯聚:創建靜態匯聚組-->端口加入匯聚組
link-aggregation group id mode static
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode static
[Quidway] interface GigabitEthernet 1/0/1
[Quidway-GigabitEthernet1/0/1] port link-aggregation group 1
動態匯聚:端口開啟LACP協議即可
端口視圖下:lacp enable
例:[Quidway] interface GigabitEthernet 1/0/1
[Quidway-GigabitEthernet1/0/1] lacp enable
===============================================================================
7.S5500交換機匯聚:
link-aggregation ethernet .. to ethernet .. both
進行匯聚的以太網端口可以工作在不同速率及雙工模式
一台S5516以太網交換機最多可以有8個匯聚組,1個匯聚組最多可以有16個端口。如果組內的端口跨越了兩個槽,則槽號必須連續。
===============================================================================
8.S6500交換機匯聚: 支持手工、靜態、動態匯聚。
手工匯聚:創建手工匯聚組-->端口加入匯聚組
link-aggregation group id mode manual
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode manual
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
靜態匯聚:創建靜態匯聚組-->端口加入匯聚組
link-aggregation group id mode static
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode static
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
動態匯聚:端口開啟LACP協議即可
端口視圖下:lacp enable
例:[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] lacp enable
跨板聚合:3130(含)以后版本支持跨板鏈路聚合,跨板聚合要求使用支持HG的分布式單板。
===============================================================================
9.S7800交換機匯聚:支持手工、靜態匯聚
支持手工、靜態匯聚
手工匯聚:創建手工匯聚組-->端口加入匯聚組
link-aggregation group id mode manual
端口視圖下:port link-aggregation group id
靜態匯聚:創建靜態匯聚組-->端口加入匯聚組
link-aggregation group id mode static
端口視圖下:port link-aggregation group id
注:port-group aggregation
------------------------------------------------------------------
聚合端口組:
手工聚合組和靜態LACP聚合組中,只有與參考端口配置一致的端口才允許成為Selected端口。這些配置包括端口的速率、雙工、鏈路狀態和基本配置。用戶需要通過手工配置的方式保持各端口基本配置一致。當聚合組內有多個端口而用戶需要修改某一基本配置時,可能需要在多個端口上配置多次。為提高可用性提出聚合端口組,在聚合端口組模式下,用戶只需輸入一次配置命令,則該組內的所有成員端口都會配置該屬性。
聚合端口組隨着聚合組的創建而自動生成,用戶不能通過命令直接創建。只有通過對聚合組操作才能給聚合端口組添加或刪除端口。port-group aggregation agg-id
采用靜態聚合模式
# 創建二層聚合端口1。
<DeviceA> system-view
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] quit
# 將以太網端口Ethernet2/0/1至Ethernet2/0/3加入聚合組1。
[DeviceA] interface ethernet 2/0/1
[DeviceA-Ethernet2/0/1] port link-aggregation group 1
[DeviceA-Ethernet2/0/1] interface ethernet 2/0/2
[DeviceA-Ethernet2/0/2] port link-aggregation group 1
[DeviceA-Ethernet2/0/2] interface ethernet 2/0/3
[DeviceA-Ethernet2/0/3] port link-aggregation group 1
l 采用動態聚合模式
# 創建二層聚合端口1,並配置成動態聚合模式。
<DeviceA> system-view
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation1] quit
===============================================================================
10.S8500交換機匯聚:
支持手工、靜態、動態匯聚。
手工匯聚:創建手工匯聚組-->端口加入匯聚組
link-aggregation group id mode manual
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode manual
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
靜態匯聚:創建靜態匯聚組-->端口加入匯聚組
link-aggregation group id mode static
端口視圖下:port link-aggregation group id
例:[Quidway] link-aggregation group 1 mode static
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-aggregation group 1
動態匯聚:端口開啟LACP協議即可
端口視圖下:lacp enable
例:[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] lacp enable
跨板聚合:8500從1250以后的版本開始支持跨板聚合
===============================================================================
華為自研X3 X7系列交換機聚合
手工聚合
操作步驟
1.創建Eth-Trunk
# 創建Eth-Trunk 1。
<Quidway> system-view
[Quidway] sysname Switch
[Switch] interface eth-trunk 1
[Switch-Eth-Trunk1] quit
2.向Eth-Trunk中加入成員接口
# 將GE0/0/3加入Eth-Trunk 1。
[Switch] interface gigabitethernet 0/0/3
[Switch-GigabitEthernet0/0/3] eth-trunk 1 //如果不能加入,需要將端口下ntdp bdp bpdu undo掉
[Switch-GigabitEthernet0/0/3] quit
# 將GE0/0/4加入Eth-Trunk 1。
[Switch] interface gigabitethernet 0/0/4
[Switch-GigabitEthernet0/0/4] eth-trunk 1
[Switch-GigabitEthernet0/0/4] quit
3.配置Eth-Trunk 1
# 配置Eth-Trunk 1允許VLAN100-200的報文通過。
[Switch] interface eth-trunk 1
[Switch-Eth-Trunk1] port link-type trunk
[Switch-Eth-Trunk1] port trunk allow-pass vlan 100 to 200
[Switch-Eth-Trunk1] quit
lacp方式
1.創建編號為1的Eth-Trunk,配置它的工作模式為靜態LACP模式
# 配置SwitchA。
<Quidway> system-view
[Quidway] sysname SwitchA
[SwitchA] interface eth-trunk 1
[SwitchA-Eth-Trunk1] bpdu enable
[SwitchA-Eth-Trunk1] mode lacp-static
[SwitchA-Eth-Trunk1] quit# 配置SwitchB。
<Quidway> system-view
[Quidway] sysname SwitchB
[SwitchB] interface eth-trunk 1
[SwitchB-Eth-Trunk1] bpdu enable
[SwitchB-Eth-Trunk1] mode lacp-static
[SwitchB-Eth-Trunk1] quit
2.將成員接口加入Eth-Trunk
# 配置SwitchA。
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] eth-trunk 1
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] eth-trunk 1
[SwitchA-GigabitEthernet0/0/2] quit
[SwitchA] interface gigabitethernet 0/0/3
[SwitchA-GigabitEthernet0/0/3] eth-trunk 1
[SwitchA-GigabitEthernet0/0/3] quit# 配置SwitchB。
[SwitchB] interface gigabitethernet 0/0/1
[SwitchB-GigabitEthernet0/0/1] eth-trunk 1
[SwitchB-GigabitEthernet0/0/1] quit
[SwitchB] interface gigabitethernet 0/0/2
[SwitchB-GigabitEthernet0/0/2] eth-trunk 1
[SwitchB-GigabitEthernet0/0/2] quit
[SwitchB] interface gigabitethernet 0/0/3
[SwitchB-GigabitEthernet0/0/3] eth-trunk 1
[SwitchB-GigabitEthernet0/0/3] quit
3.在SwitchA上配置系統優先級為100,使其成為LACP主動端
[SwitchA] lacp priority 100
4.在SwitchA上配置活動接口上限閾值為2
[SwitchA] interface eth-trunk 1
[SwitchA-Eth-Trunk1] max active-linknumber 2
[SwitchA-Eth-Trunk1] quit
5.在SwitchA上配置接口優先級確定活動鏈路
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] lacp priority 100
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] lacp priority 100
[SwitchA-GigabitEthernet0/0/2] quit