配置手工负载分担模式链路聚合示例
组网需求
如图所示,SwitchA和SwitchB通过以太链路分别都连接VLAN10和VLAN20的网络,且SwitchA和SwitchB之间有较大的数据流量。用户希望SwitchA和SwitchB之间能够提供较大的链路带宽来使相同VLAN间互相通信。同时用户也希望能够提供一定的冗余度,保证数据传输和链路的可靠性。
配置手工负载分担模式链路聚合组网图
configures the manual load-sharing model example of synthesizing the network
network requirements
, as shown in the graph, which connects VLAN10 and VLAN20 networks via the Etherlink, respectively, and has a significant data flow between SwitchA and SwitchB. Users hope that larger links bandwidth will be provided between Switcha and SwitchB to enable the same VLAN to communicate with each other. Users also wish to be able to provide some redundancy to ensure the reliability of data transmission and links.
strang> configures the manual load-sharing model network map of the network of the network of networks of the links
配置思路
采用如下的思路配置负载分担链路聚合:
创建Eth-Trunk接口并加入成员接口,实现增加链路带宽。
说明:
接口缺省都加入了VLAN1,因此加入Eth-Trunk前建议先将接口从VLAN1中退出或将接口Shutdown,避免出现广播风暴。
创建VLAN并将接口加入VLAN。配置负载分担方式,实现流量在Eth-Trunk各成员接口间的负载分担,增加可靠性。
操作步骤
在SwitchA创建Eth-Trunk接口并加入成员接口。SwitchB配置与SwitchA类似,不再赘述。
[HUAWEI] sysname SwitchA
[SwitchA] interface eth-trunk 1
[SwitchA-Eth-Trunk1] trunkport gigabitethernet 0/0/1 to 0/0/3
[SwitchA-Eth-Trunk1] quit
创建VLAN并将接口加入VLAN。SwitchB配置与SwitchA类似,不再赘述。
# 创建VLAN10和VLAN20并分别加入接口。
[SwitchA] vlan batch 10 20
[SwitchA] interface gigabitethernet 0/0/4
[SwitchA-GigabitEthernet0/0/4] port link-type trunk
[SwitchA-GigabitEthernet0/0/4] port trunk allow-pass vlan 10
[SwitchA-GigabitEthernet0/0/4] quit
[SwitchA] interface gigabitethernet 0/0/5
[SwitchA-GigabitEthernet0/0/5] port link-type trunk
[SwitchA-GigabitEthernet0/0/5] port trunk allow-pass vlan 20
[SwitchA-GigabitEthernet0/0/5] quit
# 配置Eth-Trunk1接口允许VLAN10和VLAN20通过。
[SwitchA] interface eth-trunk 1
[SwitchA-Eth-Trunk1] port link-type trunk
[SwitchA-Eth-Trunk1] port trunk allow-pass vlan 10 20
配置Eth-Trunk1的负载分担方式。SwitchB配置与SwitchA类似,不再赘述。
[SwitchA-Eth-Trunk1] load-balance src-dst-mac
[SwitchA-Eth-Trunk1] quit
The configuration idea
is based on the following ideas:
create the Eth-Trunk interface and join the member interfaces to achieve additional bandwidth.
notes:
interface defaults include VLAN1 and therefore recommend that interfaces be withdrawn from VLAN1 or will be interfaced with Shutdown, avoid broadcast storms.
create VLAN and interface with VLAN.
配置LACP模式的链路聚合示例
组网需求
如图所示,在两台Switch设备上配置LACP模式链路聚合组,提高两设备之间的带宽与可靠性,具体要求如下:两条活动链路具有负载分担的能力。两设备间的链路具有1条冗余备份链路,当活动链路出现故障链路时,备份链路替代故障链路,保持数据传输的可靠性。
配置LACP模式链路聚合组网图
set of network requirements
as shown in the graph, configure the LACP model link aggregation group on two Switch devices, increasing bandwidth and reliability between the two devices, as follows: two active links have load-sharing capabilities. The links between the two devices have a redundant back-up link, which replaces the fault link and maintains the reliability of data transmission when there is a fault link in the active link.
Configure the LACP model network map of the association
配置思路
采用如下的思路配置LACP模式链路聚合:
创建Eth-Trunk,配置Eth-Trunk为LACP模式,实现链路聚合功能。
将成员接口加入Eth-Trunk。
说明:
接口缺省都加入了VLAN1,因此加入Eth-Trunk前建议先将接口从VLAN1中退出或将接口Shutdown,避免出现广播风暴。
配置系统优先级,确定主动端,按照主动端设备的接口选择活动接口。
配置活动接口上限阈值,实现保证带宽的情况下提高网络的可靠性。
配置接口优先级,确定活动链路接口,优先级高的接口将被选作活动接口。
操作步骤
在SwitchA上创建Eth-Trunk1并配置为LACP模式。SwitchB配置过程与SwitchA类似,不再赘述
[HUAWEI] sysname SwitchA
[SwitchA] interface eth-trunk 1
[SwitchA-Eth-Trunk1] mode lacp
[SwitchA-Eth-Trunk1] quit
配置SwitchA上的成员接口加入Eth-Trunk。SwitchB配置过程与SwitchA类似,不再赘述
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] eth-trunk 1
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] eth-trunk 1
[SwitchA-GigabitEthernet0/0/2] quit
[SwitchA] interface gigabitethernet 0/0/3
[SwitchA-GigabitEthernet0/0/3] eth-trunk 1
[SwitchA-GigabitEthernet0/0/3] quit
在SwitchA上配置系统优先级为100,使其成为LACP主动端
[SwitchA] lacp priority 100
在SwitchA上配置活动接口上限阈值为2
[SwitchA] interface eth-trunk 1
[SwitchA-Eth-Trunk1] max active-linknumber 2
[SwitchA-Eth-Trunk1] quit
在SwitchA上配置接口优先级确定活动链路
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] lacp priority 100
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] lacp priority 100
[SwitchA-GigabitEthernet0/0/2] quit
The configuration line
incorporates VLAN1 and therefore recommends that the interface be withdrawn from VLAN1 or replaced with the interface Shutdown and avoid broadcasting storms.
Add members interfaces to Eth-Trunk.
Descriptions:
interfaces are added to VLAN1 and that the interface at high levels be added to Eth-Trunk before adding the interface from VLAN1 or the interface Shutdown, avoid broadcasting storms.
configurations are prioritized, select the activity interfaces according to the interface of the active device, improve the reliability of the network with guaranteed bandwidth.
interfrink[Aitch/Sbrant/Switch/Sbret_Aitch/Swint_Abret_Swint_Abret_Abret_Sbret_Sbret_Aitch/Sbret_Sbret_Aitch/Sbret_Aitch/Swint_At_Awint/Swint_At_A/Swint_At_Awint_At_At_At_At_At_Aft_A._At_A./St/St_Aft_Aft_Aft_Aft_A/St_A.
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论