链路聚合配置

二层链路聚合配置

一、手工负载分担模式配置

(1)

LSW1:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]sysn LSW1

[LSW1]int eth-trunk 1   //创建编号为1的eth-trunk端口

[LSW1-Eth-Trunk1]mode ?

lacp-static  Static working mode

manual       Manual working mode

注意:eth-trunk工作模式分为手工负载分担模式和lacp模式两种

[LSW1-Eth-Trunk1]mode manual load-balance         //配置为手工分钟分担模式

[LSW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3   //将物理端口G0/0/1,G0/0/2,G0/0/3加入eth-trunk 1 端口

[LSW1-Eth-Trunk1]dis eth-trunk 1   //查看eth-trunk端口信息

Eth-Trunk1's state information is:

WorkingMode: NORMAL         Hash arithmetic: According to SIP-XOR-DIP

Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 8

Operate status: up          Number Of Up Port In Trunk: 3

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

PortName                      Status      Weight

GigabitEthernet0/0/1          Up          1

GigabitEthernet0/0/2          Up          1

GigabitEthernet0/0/3          Up          1

(2)LSW2也需要同样的配置

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]sysn LSW2

[LSW2]int eth-trunk 1

[LSW2-Eth-Trunk1]mode manual load-balance

[LSW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3

Info: This operation may take a few seconds. Please wait for a moment...

[LSW2-Eth-Trunk1]dis eth-trunk 1

Eth-Trunk1's state information is:

WorkingMode: NORMAL         Hash arithmetic: According to SIP-XOR-DIP

Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 8

Operate status: up          Number Of Up Port In Trunk: 3

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

PortName                      Status      Weight

GigabitEthernet0/0/1          Up          1

GigabitEthernet0/0/2          Up          1

GigabitEthernet0/0/3          Up          1

(3)

回显信息中WorkingMode: NORMAL ,表示eth-trunk1的工作模式为收工负载分担模式,eth-trunk1包含了3个成员端口G0/0/1,G0/0/2,G0/0/3,

此时,两台设备之间的三条物理链路聚合在一起,已绑定成为一条逻辑上的链路。

二、静态LACP模式配置

(1)删除LSW1和LSW2上的G0/0/1,G0/0/2和G0/0/3接口下的配置。

LSW1:

[LSW1]int g0/0/1

[LSW1-GigabitEthernet0/0/1]undo eth-trunk

[LSW1-GigabitEthernet0/0/1]int g0/0/2

[LSW1-GigabitEthernet0/0/2]undo eth-trunk

[LSW1-GigabitEthernet0/0/2]int g0/0/3

[LSW1-GigabitEthernet0/0/3]undo eth-trunk

[LSW1-GigabitEthernet0/0/3]q

[LSW1]

LSW2:

[LSW2]int g0/0/1

[LSW2-GigabitEthernet0/0/1]undo eth-trunk

[LSW2-GigabitEthernet0/0/1]int g0/0/2

[LSW2-GigabitEthernet0/0/2]undo eth-trunk

[LSW2-GigabitEthernet0/0/2]int g0/0/3

[LSW2-GigabitEthernet0/0/3]undo eth-trunk

[LSW2-GigabitEthernet0/0/3]q

[LSW2]

(2)创建eth-trunk端口,配置为lacp模式,将g0/0/1,g0/0/2,g0/0/3加入eth-trunk端口

LSW1:

[LSW1]int Eth-Trunk 1

[LSW1-Eth-Trunk1]mode lacp

[LSW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3

[LSW1-Eth-Trunk1]dis eth-trunk 1    //查看链路协商信息

Local:

LAG ID: 1                   WorkingMode: STATIC          //此处工作模式为lacp-static

Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP

System Priority: 32768      System ID: 4c1f-cce2-765e

Least Active-linknumber: 1  Max Active-linknumber: 8         //默认的最大活动端口数

Operate status: down        Number Of Up Port In Trunk: 0

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

ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight

GigabitEthernet0/0/1   Unselect 1GE      32768   2      305     10100010  1

GigabitEthernet0/0/2   Unselect 1GE      32768   3      305     10100010  1

GigabitEthernet0/0/3   Unselect 1GE      32768   4      305     10100010  1

Partner:

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

ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState

GigabitEthernet0/0/1   0        0000-0000-0000  0       0      0       10100011

GigabitEthernet0/0/2   0        0000-0000-0000  0       0      0       10100011

GigabitEthernet0/0/3   0        0000-0000-0000  0       0      0       10100011

LSW2:

[LSW2]interface Eth-Trunk 1

[LSW2-Eth-Trunk1]mode lacp

[LSW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/3

[LSW2-Eth-Trunk1]dis eth-trunk 1

Eth-Trunk1's state information is:

Local:

LAG ID: 1                   WorkingMode: STATIC

Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP

System Priority: 32768      System ID: 4c1f-cc59-12d7

Least Active-linknumber: 1  Max Active-linknumber: 8

Operate status: up          Number Of Up Port In Trunk: 3

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

ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight

GigabitEthernet0/0/1   Selected 1GE      32768   2      305     10111100  1

GigabitEthernet0/0/2   Selected 1GE      32768   3      305     10111100  1

GigabitEthernet0/0/3   Selected 1GE      32768   4      305     10111100  1

Partner:

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

ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState

GigabitEthernet0/0/1   32768    4c1f-cce2-765e  32768   2      305     10111100

GigabitEthernet0/0/2   32768    4c1f-cce2-765e  32768   3      305     10111100

GigabitEthernet0/0/3   32768    4c1f-cce2-765e  32768   4      305     10111100

(3)修改最大活动端口数为2 ,使g0/0/1和g0/0/2处于select状态,g0/0/3处于unselect状态。

LSW1:

[LSW1]interface Eth-Trunk 1

[LSW1-Eth-Trunk1]max active-linknumber 2   //设置最大活动端口数为2

LSW2:

[LSW2]interface Eth-Trunk 1

[LSW2-Eth-Trunk1]max active-linknumber 2

查看:

[LSW1]dis Eth-Trunk 1

Eth-Trunk1's state information is:

Local:

LAG ID: 1                   WorkingMode: STATIC

Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP

System Priority: 32768      System ID: 4c1f-cce2-765e

Least Active-linknumber: 1  Max Active-linknumber: 2

Operate status: up          Number Of Up Port In Trunk: 2

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

ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight

GigabitEthernet0/0/1   Selected 1GE      32768   2      305     10111100  1

GigabitEthernet0/0/2   Selected 1GE      32768   3      305     10111100  1

GigabitEthernet0/0/3   Unselect 1GE      32768   4      305     10100000  1     //此处g0/0/3链路已处于unselect状态

Partner:

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

ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState

GigabitEthernet0/0/1   32768    4c1f-cc59-12d7  32768   2      305     10111100

GigabitEthernet0/0/2   32768    4c1f-cc59-12d7  32768   3      305     10111100

GigabitEthernet0/0/3   32768    4c1f-cc59-12d7  32768   4      305     10100000

当g0/0/1或者g0/0/2的端口处于中断状态时,lacp将会自动协商,将g0/0/3转变为转发(select)状态,维持链路的正常,这就是lacp模式的作用

========

三层链路聚合配置与二层链路聚合配置类似,假如在路由器上配置三层链路聚合,需要先创建Eth-Trunk接口,然

后在Eth-Trunk逻辑口上执行undo portswitch命令,把聚合链路从二层转为三层链路。执行undo portswitch命令后,可以为Eth-Trunk逻辑口

分配一个IP地址。

原文地址:http://blog.51cto.com/12184141/2148209

时间: 2024-09-29 01:13:01

链路聚合配置的相关文章

七厂节目接入,中兴交换机链路聚合配置

需求:从数字电视机房核心交换机引出复用器IP组播信号,将前端节目信号传输至七厂交换机中兴5950,因带宽不够用,需做链路聚合,并通过NSG重新调制输出.中兴5950交换机配置如下: Building configuration... ! ! vlan list 1-3 ! interface vlan 1                     // 创建vlan1,将其加入smartgroup1 ip address 172.30.101.251 255.255.255.0 out_index

Eth-Trunk链路聚合配置

Eth-Trunk概述 Eth-Trunk接口能够实现负载分担.增加带宽和提高可靠性 Eth-Trunk接口把多个物理接口捆绑成一个逻辑接口 Eth-Trunk接口的链路聚合模式 链路聚合模式 应用场景 手工负载分担模式Eth-Trunk接口 当Eth-Trunk链路两端设备中有一台设备不支持LACP协议时,可在NE20E设备上创建手工负载分担模式的Eth-Trunk,并加入多个成员接口增加设备间的带宽及可靠性. 静态LACP (Link Aggregation Control Protocol

华为交换机LACP模式链路聚合配置

交换机A和交换机B之间通过3条GE以太网连接,活动链路为2,配置如下: SwitchA配置 <HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] interface eth-trunk 1 # 创建Eth-Trunk1 [SwitchA-Eth-Trunk1] mode lacp # 配置LACP模式 [SwitchA-Eth-Trunk1] trunkport gigabtiethernet 0/0/1 to 0/0/3 # 添加接口

最近进坑了DCS-3950双层交换机链路聚合配置整理

交换机A上1-2端口对应交换机B上3-4端口 PC1链接交换机A上23端口 PC2链接交换机B上24端口 命令如下: DCS-3950-28C>enDCS-3950-28C#conDCS-3950-28C(config)#hostname switchAswitchA(config)#%Jan 01 00:01:39 2006 %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/2, changed state to DOWN%Ja

以太网链路聚合配置1(手动模式的链路聚合)

<Huawei> Aug 25 2015 09:26:52-08:00 Huawei %%01PHY/1/PHY(l)[0]:    GigabitEthernet0/0/1: c hange status to up Aug 25 2015 09:26:52-08:00 Huawei %%01IFNET/4/IF_STATE(l)[1]:Interface Vlanif1 ha s turned into UP state. Aug 25 2015 09:26:52-08:00 Huawei

以太网链路聚合配置2(静态LACP模式的链路聚合)

[s1]inte [s1]interface gi [s1]interface GigabitEthernet 0/0/1 [s1-GigabitEthernet0/0/1]und [s1-GigabitEthernet0/0/1]undo et [s1-GigabitEthernet0/0/1]undo eth-trunk Info: This operation may take a few seconds. Please wait for a moment...done. [s1-Giga

H3C交换机配置链路聚合

# 创建聚合组1(根据具体情况选择下面两种方式之一). l采用静态聚合模式:创建二层聚合接口1 <SwitchA> system-view [SwitchA] interface bridge-aggregation 1 [SwitchA-Bridge-Aggregation1] quit l采用动态聚合模式:创建二层聚合接口,并配置动态聚合模式 <SwitchA> system-view [SwitchA] interface bridge-aggregation 1 [Swit

HCNA配置手工负载分担模式链路聚合

一.配置手工负载分担模式链路聚合 1.手工负载分担模式链路聚合配置场景 当需要增加两台设备之间的带宽或可靠性,而两台设备中有一台不支持LACP协议时,可在Switch设备上创建手工负载分担模式的Eth-Trunk,并加入多个成员接口增加设备间的带宽及可靠性 2.步骤 2.1 配置Eth-Trunk工作模式为手工负载分担模式 执行命令system-view,进入系统视图. 执行命令interface eth-trunk trunk-id,进入Eth-Trunk接口视图. 执行命令mode manu

链路聚合基本概念

链路聚合:通过多条以太网物理链路捆绑在一起成为一条逻辑链路,从而增加链路带宽的目的,提高链路的可靠性 链路聚合两种类型二层聚合组/二层聚合接口:Bridge-aggregation interface,BAGG三层聚合组/三层聚合接口:Route-aggregation interface RAGG 聚合组内的成员端口状态选中(selected)状态:此状态下的成员端口可以参与用户的数据的转发,成员端口为"选中端口"非选中(unselected)端口:此状态下的成员端口不能参与用户数据