10-H3C_S-MLAG典型配置舉例
本章節下載: 10-H3C_S-MLAG典型配置舉例 (225.17 KB)
資料版本:6W100-20200330
產品版本:Release 7585P05
Copyright © 2020 bobty下载软件 版權所有,保留一切權利。 非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部, 並不得以任何形式傳播。本文檔中的信息可能變動,恕不另行通知。 |
|
本文檔介紹S-MLAG特性的配置舉例。
S-MLAG將多台獨立運行的物理設備在聚合層麵虛擬成一台設備實現簡單的跨設備鏈路聚合,從而提供設備級冗餘保護和流量負載分擔。
本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。
本文檔假設您已了解S-MLAG特性。
如圖1所示:
· Device A通過二層以太網接口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/3分別與Device B、Device C、Device D的二層以太網接口Ten-GigabitEthernet1/0/1相互連接。
· Device B、Device C、Device D為獨立運行的設備,由於用戶對於業務的可靠性要求很高,要求Device A和Device B、Device C、Device D之間配置鏈路聚合。為了實現Device B、Device C、Device D之間跨設備聚合,這時用戶可以配置S-MLAG功能,保證正常工作時鏈路進行負載分擔且任何一台設備故障對業務均沒有影響,提高可靠性。
圖1 S-MLAG配置組網圖
· 設備Device A與Device B、Device C、Device D之間部署二層動態聚合。
· 將設備Device B、Device C、Device D上的聚合接口加入同一S-MLAG組。
· 配置聚合組的成員端口過程中,建議配置順序:在端口視圖下使用display this命令查看端口上是否存在屬性類配置(包括端口隔離配置、QinQ配置、VLAN配置、VLAN映射),如果有這類配置,請使用對應的undo命令刪除這些配置,使端口保持在缺省屬性類配置狀態,然後再把端口加入到新創建的聚合組內。
· 在加入S-MLAG組的設備上,保證聚合配置一致。
· 為了保證業務的正常運行,建議加入S-MLAG組的各個設備的業務配置保持一致。
<DeviceA> system-view
[DeviceA] interface bridge-aggregation 10
[DeviceA-Bridge-Aggregation10] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation10] quit
# 分別將端口Ten-GigabitEthernet1/0/1至Ten-GigabitEthernet1/0/3加入到聚合組10中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 10
[DeviceA-Ten-GigabitEthernet1/0/1] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] port link-aggregation group 10
[DeviceA-Ten-GigabitEthernet1/0/2] quit
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/3] port link-aggregation group 10
[DeviceA-Ten-GigabitEthernet1/0/3] quit
# 配置LACP的係統地址為0001-0001-0001。
<DeviceB> system-view
[DeviceB] lacp system-mac 1-1-1
# 配置LACP的係統優先級為123。
[DeviceB] lacp system-priority 123
# 配置LACP的係統編號為1。
[DeviceB] lacp system-number 1
# 創建二層聚合接口2,並配置該接口為動態聚合模式。
[DeviceB] interface bridge-aggregation 2
[DeviceB-Bridge-Aggregation2] link-aggregation mode dynamic
# 將二層聚合接口2加入S-MLAG組100。
[DeviceB-Bridge-Aggregation2] port s-mlag group 100
[DeviceB-Bridge-Aggregation2] quit
# 將端口Ten-GigabitEthernet1/0/1加入到聚合組2中。
[DeviceB] interface ten-gigabitethernet 1/0/1
[DeviceB-Ten-GigabitEthernet1/0/1] port link-aggregation group 2
[DeviceB-Ten-GigabitEthernet1/0/1] quit
<DeviceC> system-view
[DeviceC] lacp system-mac 1-1-1
# 配置LACP的係統優先級為123。
[DeviceC] lacp system-priority 123
# 配置LACP的係統編號為2。
[DeviceC] lacp system-number 2
# 創建二層聚合接口3,並配置該接口為動態聚合模式。
[DeviceC] interface bridge-aggregation 3
[DeviceC-Bridge-Aggregation3] link-aggregation mode dynamic
# 將二層聚合接口3加入S-MLAG組100。
[DeviceC-Bridge-Aggregation3] port s-mlag group 100
# 將端口Ten-GigabitEthernet1/0/1加入到聚合組3中。
[DeviceC] interface ten-gigabitethernet 1/0/1
[DeviceC-Ten-GigabitEthernet1/0/1] port link-aggregation group 3
[DeviceC-Ten-GigabitEthernet1/0/1] quit
<DeviceD> system-view
[DeviceD] lacp system-mac 1-1-1
# 配置LACP的係統優先級為123。
[DeviceD] lacp system-priority 123
# 配置LACP的係統編號為3。
[DeviceD] lacp system-number 3
# 創建二層聚合接口4,並配置該接口為動態聚合模式。
[DeviceD] interface bridge-aggregation 4
[DeviceD-Bridge-Aggregation4] link-aggregation mode dynamic
# 將二層聚合接口4加入S-MLAG組100。
[DeviceD-Bridge-Aggregation4] port s-mlag group 100
# 將端口Ten-GigabitEthernet1/0/1加入到聚合組4中。
[DeviceD] interface ten-gigabitethernet 1/0/1
[DeviceD-Ten-GigabitEthernet1/0/1] port link-aggregation group 4
[DeviceD-Ten-GigabitEthernet1/0/1] quit
# 查看Device A上所有聚合組的詳細信息,可以看到Device A的端口Ten-GigabitEthernet1/0/1~Ten-GigabitEthernet1/0/3均處於選中狀態,此時Device A將Device B、Device C、Device D認為是一台設備,從而實現了跨設備的聚合。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation10
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x8000, a0c7-9afd-0100
Local:
Port Status Priority Index Oper-Key Flag
XGE1/0/1 S 32768 1 1 {ACDEF}
XGE1/0/2 S 32768 2 1 {ACDEF}
XGE1/0/3 S 32768 3 1 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE1/0/1(R) 32768 16385 50100 0x7b , 0001-0001-0001 {ACDEF}
XGE1/0/2 32768 32769 50100 0x7b , 0001-0001-0001 {ACDEF}
XGE1/0/3 32768 49153 50100 0x7b , 0001-0001-0001 {ACDEF}
· Device A:
#
interface Bridge-Aggregation10
link-aggregation mode dynamic
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-aggregation group 10
#
interface Ten-GigabitEthernet1/0/2
port link-mode bridge
port link-aggregation group 10
#
interface Ten-GigabitEthernet1/0/3
port link-mode bridge
port link-aggregation group 10
#
· Device B:
#
lacp system-mac 0001-0001-0001
lacp system-number 1
lacp system-priority 123
#
interface Bridge-Aggregation2
link-aggregation mode dynamic
port s-mlag group 100
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-aggregation group 2
#
· Device C:
#
lacp system-mac 0001-0001-0001
lacp system-number 2
lacp system-priority 123
#
interface Bridge-Aggregation3
link-aggregation mode dynamic
port s-mlag group 100
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-aggregation group 3
#
· Device D:
lacp system-mac 0001-0001-0001
lacp system-number 3
lacp system-priority 123
#
interface Bridge-Aggregation4
link-aggregation mode dynamic
port s-mlag group 100
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-aggregation group 4
#
如圖2所示:
· Device A、Device B、Device C與服務器Server均通過端口Ten-GigabitEthernet1/0/1相互連接。
· Device A、Device B、Device C為獨立運行的設備,由於用戶對於業務的可靠性要求很高,要求Server和Device A、Device B、Device C之間配置鏈路聚合。為了實現Device A、Device B、Device C之間跨設備聚合,這時用戶可以配置S-MLAG功能,保證正常工作時鏈路進行負載分擔且任何一台設備故障對業務均沒有影響,提高可靠性。
· 在Device A、Device B、Device C上配置二層聚合接口為聚合邊緣接口,以便當服務器上未配置動態聚合組時,Device A、Device B、Device C上聚合組成員端口都能作為普通端口正常轉發報文。
圖2 S-MLAG配置組網圖
· 設備Server與Device A、Device B、Device C之間部署二層動態聚合。
· 將設備Device A、Device B、Device C上的聚合接口加入同一S-MLAG組。
· 配置聚合組的成員端口過程中,建議配置順序:在端口視圖下使用display this命令查看端口上是否存在屬性類配置(包括端口隔離配置、QinQ配置、VLAN配置、VLAN映射),如果有這類配置,請使用對應的undo命令刪除這些配置,使端口保持在缺省屬性類配置狀態,然後再把端口加入到新創建的聚合組內。
· 在加入S-MLAG組的設備上,保證聚合配置一致。
· 為了保證業務的正常運行,建議加入S-MLAG組的各個設備的業務配置保持一致。
# 配置LACP的係統地址為0001-0001-0001。
<DeviceA> system-view
[DeviceA] lacp system-mac 1-1-1
# 配置LACP的係統優先級為123。
[DeviceA] lacp system-priority 123
# 配置LACP的係統編號為1。
[DeviceA] lacp system-number 1
# 創建二層聚合接口1,並配置該接口為動態聚合模式。
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
# 配置二層聚合接口1為聚合邊緣接口。
[DeviceA-Bridge-Aggregation1] lacp edge-port
# 將二層聚合接口1加入S-MLAG組100。
[DeviceA-Bridge-Aggregation1] port s-mlag group 100
[DeviceA-Bridge-Aggregation1] quit
# 將端口Ten-GigabitEthernet1/0/1加入到聚合組1中。
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-Ten-GigabitEthernet1/0/1] quit
# 配置LACP的係統地址為0001-0001-0001。
<DeviceB> system-view
[DeviceB] lacp system-mac 1-1-1
# 配置LACP的係統優先級為123。
[DeviceB] lacp system-priority 123
# 配置LACP的係統編號為2。
[DeviceB] lacp system-number 2
# 創建二層聚合接口2,並配置該接口為動態聚合模式。
[DeviceB] interface bridge-aggregation 2
[DeviceC-Bridge-Aggregation2] link-aggregation mode dynamic
# 配置二層聚合接口2為聚合邊緣接口。
[DeviceB-Bridge-Aggregation2] lacp edge-port
# 將二層聚合接口2加入S-MLAG組100。
[DeviceB-Bridge-Aggregation2] port s-mlag group 100
# 將端口Ten-GigabitEthernet1/0/1加入到聚合組2中。
[DeviceB] interface ten-gigabitethernet 1/0/1
[DeviceB-Ten-GigabitEthernet1/0/1] port link-aggregation group 2
[DeviceB-Ten-GigabitEthernet1/0/1] quit
# 配置LACP的係統地址為0001-0001-0001。
<DeviceC> system-view
[DeviceC] lacp system-mac 1-1-1
# 配置LACP的係統優先級為123。
[DeviceC] lacp system-priority 123
# 配置LACP的係統編號為3。
[DeviceC] lacp system-number 3
# 創建二層聚合接口3,並配置該接口為動態聚合模式。
[DeviceC] interface bridge-aggregation 3
[DeviceC-Bridge-Aggregation3] link-aggregation mode dynamic
# 配置二層聚合接口3為聚合邊緣接口。
[DeviceC-Bridge-Aggregation3] lacp edge-port
# 將二層聚合接口3加入S-MLAG組100。
[DeviceC-Bridge-Aggregation3] port s-mlag group 100
# 將端口Ten-GigabitEthernet1/0/1加入到聚合組3中。
[DeviceC] interface ten-gigabitethernet 1/0/1
[DeviceC-Ten-GigabitEthernet1/0/1] port link-aggregation group 3
[DeviceC-Ten-GigabitEthernet1/0/1] quit
# 當Server未完成動態聚合模式配置時,查看Device A、Device B、Device C上聚合組的詳細信息。當Device A、Device B、Device C未收到Server的LACP報文時,Device A、Device B、Device C的聚合成員端口都工作在Individual狀態,該狀態下聚合成員端口可以作為普通物理口轉發報文,以保證此時Server與Device A、Device B、Device C間的鏈路都可以正常轉發報文,且相互形成備份。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation1
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x7b, 0001-0001-0001
Local:
Port Status Priority Index Oper-Key Flag
XGE1/0/1 I 32768 16385 50100 {AG}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE1/0/1 32768 0 0 0x8000, 0000-0000-0000 {DEF}
[DeviceB] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation2
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x7b, 0001-0001-0001
Local:
Port Status Priority Index Oper-Key Flag
XGE1/0/1 I 32768 32769 50100 {AG}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE1/0/1 32768 0 0 0x8000, 0000-0000-0000 {DEF}
[DeviceC] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation3
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x7b, 0001-0001-0001
Local:
Port Status Priority Index Oper-Key Flag
XGE1/0/1 I 32768 49153 50100 {AG}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE1/0/1 32768 0 0 0x8000, 0000-0000-0000 {DEF}
# 當Server完成動態聚合模式配置時,查看Device A、Device B、Device C上聚合組的詳細信息。可以看到Device A、Device B、Device C的端口Ten-GigabitEthernet1/0/1均處於選中狀態,此時Server將Device A、Device B、Device C認為是一台設備,從而實現了跨設備的聚合。
[DeviceA] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation1
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x7b, 0001-0001-0001
Local:
Port Status Priority Index Oper-Key Flag
XGE1/0/1(R) S 32768 16385 50100 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE1/0/1 32768 1 1 0x8000, 5022-e533-0400 {ACDEF}
[DeviceB] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation2
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x7b, 0001-0001-0001
Local:
Port Status Priority Index Oper-Key Flag
XGE2/0/1(R) S 32768 32769 50100 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE2/0/1 32768 2 1 0x8000, 5022-e533-0400 {ACDEF}
[DeviceC] display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation3
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x7b, 0001-0001-0001
Local:
Port Status Priority Index Oper-Key Flag
XGE2/0/1(R) S 32768 49153 50100 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
XGE2/0/1 32768 3 1 0x8000, 5022-e533-0400 {ACDEF}
· Device A:
#
lacp system-mac 0001-0001-0001
lacp system-number 1
lacp system-priority 123
#
interface Bridge-Aggregation1
link-aggregation mode dynamic
lacp edge-port
port s-mlag group 100
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-aggregation group 1
#
· Device B:
#
lacp system-mac 0001-0001-0001
lacp system-number 2
lacp system-priority 123
#
interface Bridge-Aggregation2
link-aggregation mode dynamic
lacp edge-port
port s-mlag group 100
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-aggregation group 2
#
· Device C:
#
lacp system-mac 0001-0001-0001
lacp system-number 3
lacp system-priority 123
#
interface Bridge-Aggregation3
link-aggregation mode dynamic
lacp edge-port
port s-mlag group 100
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-aggregation group 3
#
· H3C S10500係列交換機 二層技術-以太網交換配置指導-R758X
· H3C S10500係列交換機 二層技術-以太網交換命令參考-R758X
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!