79 |
您所在的位置:网站首页 › 华三交换机pim-sm配置思路 › 79 |
1 简介
本文档介绍S-MLAG特性的配置举例。 S-MLAG将多台独立运行的物理设备在聚合层面虚拟成一台设备实现简单的跨设备链路聚合,从而提供设备级冗余保护和流量负载分担。 2 配置前提本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。 本文档假设您已了解S-MLAG特性。 3 S-MLAG配置举例 3.1 组网需求如图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配置组网图 3.2 配置思路 · 设备Device A与Device B、Device C、Device D之间部署二层动态聚合。 · 将设备Device B、Device C、Device D上的聚合接口加入同一S-MLAG组。 3.3 适用产品及版本表1 适用产品及版本 产品 软件版本 S6800系列 S6860系列 S6861系列 Release 2702 3.4 配置注意事项 · 配置聚合组的成员端口过程中,建议配置顺序:在端口视图下使用display this命令查看端口上是否存在属性类配置(包括端口隔离配置、QinQ配置、VLAN配置、VLAN映射),如果有这类配置,请使用对应的undo命令删除这些配置,使端口保持在缺省属性类配置状态,然后再把端口加入到新创建的聚合组内。 · 在加入S-MLAG组的设备上,保证聚合配置一致。 · 为了保证业务的正常运行,建议加入S-MLAG组的各个设备的业务配置保持一致。 3.5 配置步骤 3.5.1 配置Device A# 创建二层聚合接口10,并配置该接口为动态聚合模式。 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 3.5.2 配置Device B# 配置LACP的系统地址为0001-0001-0001。 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 3.5.3 配置Device C# 配置LACP的系统地址为0001-0001-0001。 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 3.5.4 配置Device D# 配置LACP的系统地址为0001-0001-0001。 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 3.6 验证配置# 查看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} 3.7 配置文件· 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 # 4 相关资料· H3C S6800[60][61](R27xx) & S6820(R630x)系列以太网交换机 二层技术-以太网交换配置指导 · H3C S6800[60][61](R27xx) & S6820(R630x)系列以太网交换机 二层技术-以太网交换命令参考 |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |