• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C 园区盒式交换机典型配置举例-6W100

目录

61-S-MLAG典型配置举例

本章节下载 61-S-MLAG典型配置举例  (186.21 KB)

docurl=/cn/Service/Document_Software/Document_Center/Home/Switches/00-Public/Configure/Typical_Configuration_Example/H3C_CE-B70D022-6W100/202012/1371486_30005_0.htm

61-S-MLAG典型配置举例


1  简介

本文档介绍S-MLAG特性的配置举例。

S-MLAG将多台独立运行的物理设备在聚合层面虚拟成一台设备实现简单的跨设备链路聚合,从而提供设备级冗余保护和流量负载分担。

2  配置前提

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文档假设您已了解S-MLAG特性。

3  S-MLAG配置举例

3.1  组网需求

图1所示:

·            Device A通过二层以太网接口GigabitEthernet1/0/1~GigabitEthernet1/0/3分别与Device B、Device C、Device D的二层以太网接口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 适用产品及版本

产品

软件版本

S5560X-EI系列

Release 63xx系列

S5560X-HI系列

Release 63xx系列

S5500V2-EI系列

Release 63xx系列

MS4520V2-30F

Release 63xx系列

S6520X-HI系列

S6520X-EI系列

Release 63xx系列

S6520X-SI系列

S6520-SI系列

Release 63xx系列

S5000-EI系列

Release 63xx系列

MS4600系列

Release 63xx系列

S5560S-EI系列

S5560S-SI系列

Release 63xx系列

S5130S-HI系列

S5130S-EI系列

S5130S-SI系列

S5130S-LI系列

Release 63xx系列

S5120V2-SI系列

S5120V2-LI系列

Release 63xx系列

S3100V3-EI系列

S3100V3-SI系列

Release 63xx系列

S5110V2系列

Release 63xx系列

S5110V2-SI系列

Release 63xx系列

S5000V3-EI系列

Release 63xx系列

S5000E-X系列

Release 63xx系列

E128C

E152C

E500C系列

E500D系列

Release 63xx系列

MS4520V2系列(除MS4520V2-30F)

Release 63xx系列

MS4320V2系列

MS4300V2系列

MS4320系列

MS4200系列

Release 63xx系列

WS5850-WiNet系列

Release 63xx系列

WS5820-WiNet系列

WS5810-WiNet系列

Release 63xx系列

WAS6000系列

Release 63xx系列

 

3.4  配置注意事项

·            配置聚合组的成员端口过程中,建议配置顺序:在端口视图下使用display this命令查看端口上是否存在属性类配置(包括端口隔离配置、QinQ配置、VLAN配置、VLAN映射),如果有这类配置,请使用对应的undo命令删除这些配置,使端口保持在缺省属性类配置状态,然后再把端口加入到新创建的聚合组内。

·            在加入S-MLAG组的设备上,保证聚合配置一致。

·            为了保证业务的正常运行,建议加入S-MLAG组的各个设备的业务配置保持一致。

3.5  配置步骤

3.5.1  配置Device A

# 创建二层聚合接口10,并配置该接口为动态聚合模式。

<DeviceA> system-view

[DeviceA] interface bridge-aggregation 10

[DeviceA-Bridge-Aggregation10] link-aggregation mode dynamic

[DeviceA-Bridge-Aggregation10] quit

# 分别将端口GigabitEthernet1/0/1至GigabitEthernet1/0/3加入到聚合组10中。

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 10

[DeviceA-GigabitEthernet1/0/1] quit

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 10

[DeviceA-GigabitEthernet1/0/2] quit

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 10

[DeviceA-GigabitEthernet1/0/3] quit 

3.5.2  配置Device B

# 配置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

# 将端口GigabitEthernet1/0/1加入到聚合组2中。

[DeviceB] interface gigabitethernet 1/0/1

[DeviceB-GigabitEthernet1/0/1] port link-aggregation group 2

[DeviceB-GigabitEthernet1/0/1] quit

3.5.3  配置Device C

# 配置LACP的系统地址为0001-0001-0001。

<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

# 将端口GigabitEthernet1/0/1加入到聚合组3中。

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] port link-aggregation group 3

[DeviceC-GigabitEthernet1/0/1] quit

3.5.4  配置Device D

# 配置LACP的系统地址为0001-0001-0001。

<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

# 将端口GigabitEthernet1/0/1加入到聚合组4中。

[DeviceD] interface gigabitethernet 1/0/1

[DeviceD-GigabitEthernet1/0/1] port link-aggregation group 4

[DeviceD-GigabitEthernet1/0/1] quit

3.6  验证配置

# 查看Device A上所有聚合组的详细信息,可以看到Device A的端口GigabitEthernet1/0/1~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

  GE1/0/1             S        32768    1        1                      {ACDEF}

  GE1/0/2             S        32768    2        1                      {ACDEF}

  GE1/0/3             S        32768    3        1                      {ACDEF}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  GE1/0/1(R)          32768    16385    50100    0x7b  , 0001-0001-0001 {ACDEF}

  GE1/0/2             32768    32769    50100    0x7b  , 0001-0001-0001 {ACDEF}

  GE1/0/3             32768    49153    50100    0x7b  , 0001-0001-0001 {ACDEF}

3.7  配置文件

说明

部分交换机的配置文件中会显示port link-mode bridge命令,请以实际情况为准。

 

·            Device A:

#

interface Bridge-Aggregation10

 link-aggregation mode dynamic

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 combo enable fiber

 port link-aggregation group 10

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 combo enable fiber

 port link-aggregation group 10

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 combo enable fiber

 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 GigabitEthernet1/0/1

 port link-mode bridge

 combo enable fiber

 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 GigabitEthernet1/0/1

 port link-mode bridge

 combo enable fiber

 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 GigabitEthernet1/0/1

 port link-mode bridge

 combo enable fiber

 port link-aggregation group 4

#

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们