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

2018年6月30日23:54:18
在两台S9300 设备上配置静态LACP 模式链路聚合组,提高两设备之间
的带宽与可靠性,具体要求如下:
l 2 条活动链路具有负载分担的能力。
l 两设备间的链路具有1 条冗余备份链路,当活动链路出现故障链路时,备份链路替
代故障链路,保持数据传输的可靠性。
配置静态LACP 模式链路聚合组网图
配置静态LACP <wbr><wbr>模式链路聚合(以太网文档)

配置思路
采用如下的思路配置静态LACP 模式链路聚合:
1. 在S9300 设备上创建Eth-Trunk,配置Eth-Trunk 为静态LACP 模式。
2. 将成员接口加入Eth-Trunk。
3. 配置系统优先级确定主动端。
4. 配置活动接口上限阈值。
5. 配置接口优先级确定活动链路。
 
数据准备
为完成此配置例,需准备如下的数据:
l 两端S9300 设备链路聚合组编号。
l S9300-A 系统优先级。
l 活动接口上限阈值。
l 活动接口LACP 优先级。
操作
 
操作步骤
步骤1 创建编号为1 的Eth-Trunk,配置它的工作模式为静态LACP 模式
# 配置S9300-A。
system-view
[Quidway] sysname S9300-A
[S9300-A] interface eth-trunk 1
[S9300-A-Eth-Trunk1] mode lacp-static
[S9300-A-Eth-Trunk1] quit
# 配置S9300-B。
system-view
[Quidway] sysname S9300-B
[S9300-B] interface eth-trunk 1
[S9300-B-Eth-Trunk1] mode lacp-static
[S9300-B-Eth-Trunk1] quit
步骤2 将成员接口加入Eth-Trunk
# 配置S9300-A。
[S9300-A] interface gigabitethernet 1/0/1
[S9300-A-Gigabitethernet1/0/1] eth-trunk 1
[S9300-A-Gigabitethernet1/0/1] quit
[S9300-A] interface gigabitethernet 1/0/2
[S9300-A-Gigabitethernet1/0/2] eth-trunk 1
[S9300-A-Gigabitethernet1/0/2] quit
[S9300-A] interface gigabitethernet 1/0/3
[S9300-A-Gigabitethernet1/0/3] eth-trunk 1
[S9300-A-Gigabitethernet1/0/3] quit
# 配置S9300-B。
[S9300-B] interface gigabitethernet 1/0/1
[S9300-B-Gigabitethernet1/0/1] eth-trunk 1
[S9300-B-Gigabitethernet1/0/1] quit
[S9300-B] interface gigabitethernet 1/0/2
[S9300-B-Gigabitethernet1/0/2] eth-trunk 1
[S9300-B-Gigabitethernet1/0/2] quit
[S9300-B] interface gigabitethernet 1/0/3
[S9300-B-Gigabitethernet1/0/3] eth-trunk 1
[S9300-B-Gigabitethernet1/0/3] quit
步骤3 在S9300-A 上配置系统优先级为100,使其成为LACP 主动端
[S9300-A] lacp priority 100
步骤4 在S9300-A 上配置活动接口上限阈值为2
[S9300-A] interface eth-trunk 1
[S9300-A-Eth-Trunk1] max active-linknumber 2
[S9300-A-Eth-Trunk1] quit
步骤5 在S9300-A 上配置接口优先级确定活动链路
[S9300-A] interface gigabitethernet 1/0/1
[S9300-A-Gigabitethernet1/0/1] lacp priority 100
[S9300-A-Gigabitethernet1/0/1] quit
[S9300-A] interface gigabitethernet 1/0/2
[S9300-A-Gigabitethernet1/0/2] lacp priority 100
[S9300-A-Gigabitethernet1/0/2] quit
步骤6 验证配置结果
# 查看各S9300 设备的Eth-Trunk 信息,查看链路是否协商成功。
[S9300-A] display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: STATIC
Preempt Delay: Disabled Hash arithmetic: According to SA-XOR-DA
 
System Priority: 100 System ID: 00e0-fca8-0417
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
GigabitEthernet1/0/1 Selected 1GE 100 6145 2865 11111100 1
GigabitEthernet1/0/2 Selected 1GE 100 6146 2865 11111100 1
GigabitEthernet1/0/3 Unselect 1GE 32768 6147 2865 11100000 1
Partner:
------------------------------------------------------------------------------
PartnerPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet1/0/1 32768 00e0-fca6-7f85 32768 6145 2609 11111100
GigabitEthernet1/0/2 32768 00e0-fca6-7f85 32768 6146 2609 11111100
GigabitEthernet1/0/3 32768 00e0-fca6-7f85 32768 6147 2609 11110000
[S9300-B] display eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1 WorkingMode: STATIC
Preempt Delay: Disabled Hash arithmetic: According to SA-XOR-DA
System Priority: 32768 System ID: 00e0-fca6-7f85
Least Active-linknumber: 1 Max Active-linknumber: 8
Operate status: Up Number Of Up Port In Trunk: 2
------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet1/0/1 Selected 1GE 32768 6145 2609 11111100 1
GigabitEthernet1/0/2 Selected 1GE 32768 6146 2609 11111100 1
GigabitEthernet1/0/3 Unselect 1GE 32768 6147 2609 11100000 1
Partner:
------------------------------------------------------------------------------
PartnerPortName SysPri SystemID PortPri PortNo PortKey PortState
GigabitEthernet1/0/1 100 00e0-fca8-0417 100 6145 2865 11111100
GigabitEthernet1/0/2 100 00e0-fca8-0417 100 6146 2865 11111100
GigabitEthernet1/0/3 100 00e0-fca8-0417 32768 6147 2865 11110000
通过以上显示信息可以看到,S9300-A 的系统优先级为100,高于S9300-B 的系统优先
级。Eth-Trunk 的成员接口中Gigabitethernet 1/0/1、Gigabitethernet 1/0/2 成为活动接口,
处于“Selected”状态,接口Gigabitethernet 1/0/3 处于“Unselect”状态,同时实现M
条链路的负载分担和N 条链路的冗余备份功能。
 
配置文件
l S9300-A 的配置文件
#
sysname S9300-A
#
lacp priority 100
#
interface Eth-Trunk1
mode lacp-static
max active-linknumber 2
#
interface GigabitEthernet1/0/1
eth-trunk 1
lacp priority 100
#
interface GigabitEthernet1/0/2
eth-trunk 1
lacp priority 100
#
interface GigabitEthernet1/0/3
eth-trunk 1
#
return
 
l S9300-B 的配置文件
#
sysname S9300-B
#
interface Eth-Trunk1
mode lacp-static
#
interface GigabitEthernet1/0/1
eth-trunk 1
#
interface GigabitEthernet1/0/2
eth-trunk 1
#
interface GigabitEthernet1/0/3
eth-trunk 1
#
return

  • 更新时间:2018年6月30日23:54:18 ,共 4263 字。