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

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

目录

06-以太网链路聚合典型配置举例

本章节下载 06-以太网链路聚合典型配置举例  (288.81 KB)

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

06-以太网链路聚合典型配置举例


1  简介

本文档介绍以太网链路聚合特性的配置举例。

2  配置前提

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

本文档假设您已了解以太网链路聚合特性。

3  二层链路聚合配置举例

3.1  组网需求

图1所示:

·            Device A与Device B通过各自的二层以太网接口GigabitEthernet1/0/1~GigabitEthernet1/0/3相互连接。

·            Device A和DeviceB均参与VLAN 10、VLAN 20的数据流量转发。现要求两设备上相同VLAN可以互通。为提高设备间链路带宽及可靠性,可使用二层链路聚合特性实现。

图1 二层链路聚合配置示例图

 

3.2  配置思路

要使VLAN 10与VLAN 20的数据流量均能通过二层聚合接口1,可配置二层聚合接口的链路类型为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。

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命令删除这些配置,使端口保持在缺省属性类配置状态,然后再把端口加入到新创建的聚合组内。

·            由于静态聚合组中端口选中状态不受对端端口是否在聚合组中及是否处于选中状态的影响。这样有可能导致两端设备所确定的Selected状态端口不一致,当两端都支持配置静态和动态聚合组的情况下,建议用户优选动态聚合组。

·            配置或使能了下列功能的端口将不能加入二层聚合组:MAC地址认证、端口安全模式、802.1X功能。

3.5  配置步骤

3.5.1  Device A的配置

# 创建VLAN 10,并将端口GigabitEthernet1/0/4加入到该VLAN 10中。

<DeviceA> system-view

[DeviceA] vlan 10

[DeviceA-vlan10] port gigabitethernet 1/0/4

[DeviceA-vlan10] quit

# 创建VLAN 20,并将端口GigabitEthernet1/0/5加入到该VLAN 20中。

[DeviceA] vlan 20

[DeviceA-vlan20] port gigabitethernet 1/0/5

[DeviceA-vlan20] quit

# 创建二层聚合接口1。(根据具体情况选择下面两种方式之一)

·            采用静态聚合模式:创建二层聚合接口1

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] quit

·            采用动态聚合模式:创建二层聚合接口1,并配置动态聚合模式

[DeviceA] interface bridge-aggregation 1

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

[DeviceA-Bridge-Aggregation1] quit

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

[DeviceA] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/3

[DeviceA-if-range] port link-aggregation group 1

[DeviceA-if-range] quit

# 配置二层聚合接口1为Trunk端口,并允许VLAN 10和VLAN 20的报文通过。

[DeviceA] interface bridge-aggregation 1

[DeviceA-Bridge-Aggregation1] port link-type trunk

Configuring GigabitEthernet1/0/1 done.

Configuring GigabitEthernet1/0/2 done.

Configuring GigabitEthernet1/0/3 done.

[DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 20

Configuring GigabitEthernet1/0/1 done.

Configuring GigabitEthernet1/0/2 done.

Configuring GigabitEthernet1/0/3 done.

[DeviceA-Bridge-Aggregation1] quit

3.5.2  Device B的配置

Device B上的配置与Device A完全相同,此处不再赘述。

3.6  验证配置

# 通过display link-aggregation verbose命令来显示聚合组的相关信息,以验证配置是否成功。

·            采用静态聚合模式的链路聚合配置信息

[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

 

Aggregation Interface: Bridge-Aggregation1

Aggregation Mode: Static

Loadsharing Type: Shar

Management VLANs: None

  Port             Status  Priority  Oper-Key

  GE1/0/1(R)       S       32768     1

  GE1/0/2          S       32768     1

  GE1/0/3          S       32768     1

结果说明:本端加入到静态聚合组内的成员端口都处于Selected状态,与对端对应端口是否是Selected状态无关。

·            采用动态聚合模式的链路聚合配置信息

[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

 

Aggregation Interface: Bridge-Aggregation1

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x8000, 000f-e234-5678

Local:

  Port                Status   Priority Index    Oper-Key               Flag

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

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

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

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  GE1/0/1(R)          32768    2        1        0x8000, a4e5-c316-0100 {ACDEF}

  GE1/0/2             32768    3        1        0x8000, a4e5-c316-0100 {ACDEF}

  GE1/0/3             32768    4        1        0x8000, a4e5-c316-0100 {ACDEF}

结果说明:本端和对端设备上聚合组内的成员端口都处于Selected状态。原因是在动态链路聚合中通过LACP协议报文交互,可使两端聚合组内的成员端口选中状态达成一致,可顺利实现对用户数据的转发。

3.7  配置文件

说明

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

 

·            Device A:

#

vlan 10

#

interface GigabitEthernet1/0/4

 port link-mode bridge

 port access vlan 10

#

vlan 20

#

interface GigabitEthernet1/0/5

 port link-mode bridge

 port access vlan 20

¡  采用静态聚合模式

#

interface Bridge-Aggregation1

 port link-type trunk

 port trunk permit vlan 10 20

¡  采用动态聚合模式

#

interface Bridge-Aggregation1

 port link-type trunk

 port trunk permit vlan 10 20

 link-aggregation mode dynamic

#

interface GigabitEthernet1/0/1

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 10 20

 port link-aggregation group 1

#

interface GigabitEthernet1/0/2

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 10 20

 port link-aggregation group 1

#

interface GigabitEthernet1/0/3

 port link-mode bridge

 port link-type trunk

 port trunk permit vlan 10 20

 port link-aggregation group 1

#

·            Device B:

Device B上的配置文件与Device A相同。

4  二层以太网链路聚合配合IRF典型配置举例

4.1  组网需求

图2所示,接入层和汇聚层都有两台设备,现要求使用链路聚合特性和IRF特性实现以下需求:

·            由于公司人员不断增加,要求接入层具有易管理能力和强扩展能力,可以提供更多的端口来满足PC的接入需求。

·            由于接入层的流量增加,要求增强接入层到汇聚层的链路具有较高可靠性,且可实现流量的负载分担。

图2 以太网链路聚合配置IRF配置组网图

 

4.2  配置思路

·            要使接入层具有易管理能力和强扩展能力,可通过配置IRF功能,轻松扩展接入层端口数量、带宽。

·            为了提高链路可靠性,可通过配置链路聚合配合IRF功能实现,每台接入层设备双上行连到汇聚层上,并且将四条上行链路进行聚合,当某个成员设备离开IRF,其它成员设备上的链路仍能收发报文,从而提高了链路的可靠性。

·            可以在汇聚层IRF和接入层IRF上同时开启LACP MAD功能,使两个IRF相互作为中间设备,完成各自的LACP MAD检测。以快速排查IRF分裂原因并及时恢复成员设备IRF状态。

4.3  适用产品及版本

表2 适用产品及版本

产品

软件版本

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系列

 

4.4  配置注意事项

·            IRF物理端口必须工作在二层模式下,才能与IRF端口进行绑定。

·            与同一个IRF端口绑定的多个IRF物理端口必须工作在相同模式。

·            IRF中成员设备间相连的IRF物理端口必须配置为同一种工作模式。关于配置IRF物理端口的工作模式的介绍,请参见“IRF配置指导”。

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

·            由于静态聚合组中成员端口选中状态不受对端端口是否在聚合组中及是否处于选中状态的影响。这样有可能导致两端设备所确定的Selected状态端口不一致,并且LACP MAD必须在动态聚合接口上应用才能生效。所以本例要求用户选择配置动态聚合组。

·            配置或使能了下列功能的端口将不能加入二层聚合组:MAC地址认证、端口安全模式、802.1X功能。

4.5  配置步骤

(1)       Device A的IRF相关配置

# 关闭GigabitEthernet1/0/1。关于IRF配置的介绍,请参见“IRF配置指导”。

<DeviceA> system-view

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] shutdown

[DeviceA-GigabitEthernet1/0/1] quit

# 配置IRF端口1/1,并将它与物理端口GigabitEthernet1/0/1绑定。

[DeviceA] irf-port 1/1

[DeviceA-irf-port1/1] port group interface gigabitethernet 1/0/1

You must perform the following tasks for a successful IRF setup:

Save the configuration after completing IRF configuration.

Execute the "irf-port-configuration active" command to activate the IRF ports.

[DeviceA-irf-port1/1] quit

# 开启GigabitEthernet1/0/1端口,并保存配置。

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] undo shutdown

[DeviceA-GigabitEthernet1/0/1] quit

[DeviceA] save

# 激活IRF端口下的配置。

[DeviceA] irf-port-configuration active

(2)       Device B的IRF相关配置

# 将Device B的成员编号配置为2,并重启设备使新编号生效。

<DeviceB> system-view

[DeviceB] irf member 1 renumber 2

Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y

[DeviceB] quit

<DeviceB> reboot

# IRF物理端口绑定要求与Device A相同,本例中以GigabitEthernet2/0/1为例,关闭该端口。关于IRF配置的介绍,请参见“IRF配置指导”。

<DeviceB> system-view

[DeviceB] interface gigabitethernet 2/0/1

[DeviceB-GigabitEthernet2/0/1] shutdown

[DeviceB-GigabitEthernet2/0/1] quit

# 配置IRF端口2/2,并将它与物理端口GigabitEthernet2/0/1绑定。

[DeviceB] irf-port 2/2

[DeviceB-irf-port2/2] port group interface gigabitethernet 2/0/1

You must perform the following tasks for a successful IRF setup:

Save the configuration after completing IRF configuration.

Execute the "irf-port-configuration active" command to activate the IRF ports.

[DeviceB-irf-port2/2] quit

# 开启GigabitEthernet2/0/1端口,并保存配置。

[DeviceB] interface gigabitethernet 2/0/1

[DeviceB-GigabitEthernet2/0/1] undo shutdown

[DeviceB-GigabitEthernet2/0/1] quit

[DeviceB] save

# 激活IRF端口下的配置。

[DeviceB] irf-port-configuration active

# Device A和Device B间将会进行Master竞选,竞选失败的一方将重启,重启完成后,IRF形成。

# 通过display irf命令来显示IRF相关信息,Device A为Master主设备。

[DeviceA] display irf

MemberID    Role    Priority  CPU-Mac         Description

 *+1        Master   1        00a0-fc00-5801  ---

   2        Standby  1        00e0-fc58-1235  ---

--------------------------------------------------

 * indicates the device is the master.

 + indicates the device through which the user logs in.

 

 The bridge MAC of the IRF is: 00a0-fc00-5800

 Auto upgrade                : yes

 Mac persistent              : 6 min

 Domain ID                   : 0

 Auto merge                  : yes

(3)       Device A的二层动态聚合组相关配置

# 创建二层动态聚合组1。

[DeviceA] interface bridge-aggregation 1

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

[DeviceA-Bridge-Aggregation1] quit

# 将GigabitEthernet1/0/9、GigabitEthernet1/0/10、GigabitEthernet2/0/9、GigabitEthernet2/0/10加入该聚合组中。

[DeviceA] interface range gigabitethernet 1/0/9 to gigabitethernet 1/0/10

gigabitethernet 2/0/9 to gigabitethernet 2/0/10

[DeviceA-if-range] port link-aggregation group 1

[DeviceA-if-range] quit

(4)       Device A的LACP MAD相关配置

# 设置IRF域编号为1。

[DeviceA] irf domain 1

# 在动态聚合组1上使能LACP MAD检测功能。

[DeviceA] interface Bridge-Aggregation 1

[DeviceA-Bridge-Aggregation1] mad enable

You need to assign a domain ID (range: 0-4294967295)

[Current domain is: 1]:

The assigned domain ID is: 1

MAD LACP only enable on dynamic aggregation interface.

(5)       Device C的IRF相关配置

# Device C上的IRF相关配置与Device A完全相同,此处不再赘述。

(6)       Device D的IRF相关配置

# Device D上的IRF相关配置与Device B完全相同,此处不再赘述。

# Device C和Device D间将会进行Master竞选,竞选失败的一方将重启,重启完成后,IRF形成,Device C为Master主设备。

(7)       Device C的二层动态聚合组相关配置。

# Device C上的二层动态聚合组相关配置与Device A完全相同,此处不再赘述。

(8)       Device C的LACP MAD相关配置

# 设置IRF域编号为2。

<DeviceC> system-view

[DeviceC] irf domain 2

# 在动态聚合组1上使能LACP MAD检测功能。

[DeviceC] interface Bridge-Aggregation 1

[DeviceC-Bridge-Aggregation1] mad enable

You need to assign a domain ID (range: 0-4294967295)

[Current domain is: 2]:

The assigned domain ID is: 2

MAD LACP only enable on dynamic aggregation interface.

4.6  验证配置

# 在Device A上通过display link-aggregation verbose命令来显示聚合组的相关信息,以验证配置是否成功。

[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: 0x8000, 00a0-fc00-5800

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  GE1/0/9(R)          S        32768    10       1                      {ACG}

  GE1/0/10            S        32768    11       1                      {ACG}

  GE2/0/9             S        32768    138      1                      {ACG}

  GE2/0/10            S        32768    139      1                      {ACG}

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  GE1/0/9             32768    0        0        0x8000, 0000-0000-0000 {EF}

  GE1/0/10            32768    0        0        0x8000, 0000-0000-0000 {EF}

  GE2/0/9             32768    0        0        0x8000, 0000-0000-0000 {EF}

  GE2/0/10            32768    0        0        0x8000, 0000-0000-0000 {EF}

结果说明:本端和对端设备上聚合组内的成员端口都处于Selected状态。原因是在动态链路聚合中通过LACP协议报文交互,可使两端聚合组内的成员端口选中状态达成一致,可顺利实现对用户数据的转发。

# 由于配置了LACP MAD功能,当IRF分裂时,设备会收到相关日志信息,提示IRF分裂原因。

[DeviceA]%Jul  9 16:52:41:734 2016 DeviceA STM/3/STM_LINK_DOWN: IRF port 1 went down.

%Jul  9 16:52:41:800 2016 DeviceA IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0/1 changed to down.

%Jul  9 16:52:41:854 2016 DeviceA IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/1 changed to down.

%Jul  9 16:52:41:867 2016 DeviceA DEV/3/BOARD_REMOVED: Board was removed from slot 2, type is Simware.

结果说明:因为与IRF端口2/2绑定的GigabitEthernet2/0/1物理端口的物理状态为关闭,造成汇聚层IRF分裂。可通过检查物理连线或者线路故障来解决此问题。

4.7  配置文件

说明

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

 

·            Device A:

#

 irf domain 1

 irf mac-address persistent timer

 irf auto-update enable

 irf auto-merge enable

 undo irf link-delay

 irf member 1 priority 1

 irf member 2 priority 1

#

irf-port 1/1

 port group interface GigabitEthernet1/0/1

#

irf-port 2/2

 port group interface GigabitEthernet2/0/1

#

 

interface Bridge-Aggregation1

 link-aggregation mode dynamic

#

interface GigabitEthernet1/0/9

 port link-mode bridge

 port link-aggregation group 1

#

interface GigabitEthernet1/0/10

 port link-mode bridge

 port link-aggregation group 1

#

interface GigabitEthernet2/0/9

 port link-mode bridge

 port link-aggregation group 1

#

interface GigabitEthernet2/0/10

 port link-mode bridge

 port link-aggregation group 1

#

·            Device C:

Device C上的配置文件与Device A类似。

5  三层链路聚合配置举例

5.1  组网需求

图3所示:

·            Device A与Device B通过各自的三层以太网接口GigabitEthernet1/0/1~GigabitEthernet1/0/3相互连接。

·            在Device A和Device B上分别配置三层链路聚合组,并为对应的三层聚合接口配置IP地址和子网掩码。

图3 三层聚合配置示例图

 

5.2  适用产品及版本

表3 适用产品及版本

产品

软件版本

S5560X-EI系列

不支持

S5560X-HI系列

不支持

S5500V2-EI系列

不支持

MS4520V2-30F

不支持

S6520X-HI系列

S6520X-EI系列

不支持

S6520X-SI系列

S6520-SI系列

不支持

S5000-EI系列

不支持

MS4600系列

不支持

S5560S-EI系列

S5560S-SI系列

Release 63xx系列

S5130S-HI系列

S5130S-EI系列

S5130S-SI系列

S5130S-LI系列

不支持

S5120V2-SI系列

S5120V2-LI系列

不支持

S3100V3-EI系列

S3100V3-SI系列

不支持

S5110V2系列

不支持

S5110V2-SI系列

不支持

S5000V3-EI系列

Release 63xx系列

S5000E-X系列

不支持

E128C

E152C

E500C系列

E500D系列

不支持

MS4520V2系列(除MS4520V2-30F)

Release 63xx系列

MS4320V2系列

MS4300V2系列

MS4320系列

MS4200系列

不支持

WS5850-WiNet系列

Release 63xx系列

WS5820-WiNet系列

WS5810-WiNet系列

不支持

WAS6000系列

不支持

 

5.3  配置注意事项

由于静态聚合组中端口选中状态不受对端端口是否在聚合组中及是否处于选中状态的影响。这样有可能导致两端设备所确定的Selected状态端口不一致,当两端都支持配置静态和动态聚合模式的情况下,建议用户选择配置动态聚合模式。

5.4  配置步骤

5.4.1  Device A的配置

# 创建三层聚合接口1。(根据具体情况选择下面两种方式之一)

·            采用静态聚合模式

<DeviceA> system-view

[DeviceA] interface route-aggregation 1

·            采用动态聚合模式

<DeviceA> system-view

[DeviceA] interface route-aggregation 1

[DeviceA-Route-Aggregation1] link-aggregation mode dynamic

# 为三层聚合接口1配置IP地址和子网掩码。

[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24

[DeviceA-Route-Aggregation1] undo shutdown

[DeviceA-Route-Aggregation1] quit

# 将接口GigabitEthernet1/0/1~GigabitEthernet1/0/3加入聚合组1。

[DeviceA] interface range gigabitethernet 1/0/1 to gigabitethernet 1/0/3

[DeviceA-if-range] port link-mode route

[DeviceA-if-range] undo shutdown

[DeviceA-if-range] port link-aggregation group 1

[DeviceA-if-range] quit

5.4.2  Device B的配置

Device B上的配置与Device A相同,配置过程略。

5.5  验证配置

# 通过display link-aggregation verbose命令来显示聚合组的相关信息,以验证配置是否成功。

·            采用静态聚合模式的聚合组信息

[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: Route-Aggregation1

Aggregation Mode: Static

Loadsharing Type: Shar

Management VLANs: None

  Port             Status  Priority Oper-Key

  GE1/0/1          S       32768    1

  GE1/0/2          S       32768    1

  GE1/0/3          S       32768    1

结果说明:本端加入到静态聚合组内的成员端口都处于Selected状态,与对端对应端口是否是Selected状态无关。

·            采用动态聚合模式的聚合组信息

[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: Route-Aggregation1

Creation Mode: Manual

Aggregation Mode: Dynamic

Loadsharing Type: Shar

Management VLANs: None

System ID: 0x8000, 000f-e267-6c6a

Local:

  Port                Status   Priority Index    Oper-Key               Flag

  GE1/0/1(R)          S        32768    2        1                      {ACDEF}

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

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

Remote:

  Actor               Priority Index    Oper-Key SystemID               Flag

  GE1/0/1             32768    2        1        0x8000, 68fa-34f2-0200 {ACDEF}

  GE1/0/2             32768    3        1        0x8000, 68fa-34f2-0200 {ACDEF}

  GE1/0/3             32768    4        1        0x8000, 68fa-34f2-0200 {ACDEF}

结果说明:本端和对端设备上聚合组内的成员端口都处于Selected状态。原因是在动态链路聚合中通过LACP协议报文交互,可使两端聚合组内的成员端口选中状态达成一致,可顺利实现对用户数据的转发。

5.6  配置文件

说明

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

 

·            Device A:

#

¡  采用静态聚合模式

#

interface route-aggregation1

 ip address 192.168.1.1 255.255.255.0

#

¡  采用动态聚合模式

#

interface route-aggregation1

 ip address 192.168.1.1 255.255.255.0

 link-aggregation mode dynamic

#

interface GigabitEthernet1/0/1

 port link-mode route

 port link-aggregation group 1

#

interface GigabitEthernet1/0/2

 port link-mode route

 port link-aggregation group 1

#

interface GigabitEthernet1/0/3

 port link-mode route

 port link-aggregation group 1

#

·            Device B:

Device B上的配置文件与Device A类似。

 

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

新华三官网
联系我们