链路聚合是指将两个或多个数据通道结合成一个信道,该信道以一个有更高带宽的逻辑链路的形势出现,一般用来连接一个或多个带宽需求打的设备,以增加设备间的带宽,并且在其中一条链路出现故障时,可以快速的将流量转移到其他链路,这种切换是毫秒级之间的,远远快于STP切换。
Link-to-link syndication refers to the combination of two or more data channels into a channel that emerges in a situation of a logical link with a higher bandwidth, which is usually used to connect one or more bandwidth-required equipment to increase bandwidth between equipments and, in the event of a malfunction in one of these links, can quickly transfer the flow to other links, which is between milliseconds and much faster than the STP switch.
- 华为S5700 S7710 S7706
- windows7 10 11windows
- SecureCRTPortable、Xshell 77
端口链路聚合条件
port link convergence conditions
1. 网络设备支持端口链路聚合。
1. & nbsp; network equipment to support port chain convergence.
2. 使用Eth-trunk端口实现端口链路聚合配置。
2. & nbsp; use of the Eth-trunk port to achieve the port chain polymer configuration.
3. 将端口加入Eth-trunk二层端口时,二层的成员端口也必须是二层端口,三层Eth-trunk端口时,三层的成员端口也必须是三层端口。
When adding the port to the Eth-trunk second level port, the second level member port must also be the second level port and the third level member port must also be the third level port.
4. 一个Eth-trunk端口最多支持8个成员端口加入,加入Eth-trunk的端口必须是默认的端口类型。
4. & nbsp; a Eth-trunk port supports the addition of up to eight member ports and the addition of the Eth-trunk port must be the default port type.
5. 成员端口必须一直,如:一个为吉比特端口(GE口),另一个也必须为吉比特端口(GE口)
5. & nbsp; member ports must always, for example, one for the Gibit port (GE port) and the other for the Gibit port (GE port)
6. 成员端口速率必须相同,如:都100Mbit/S或都1000Mbit/S
members must have the same port rate, e.g. 100 Mbit/S or 1000 Mbit/S
端口聚合模式
Port Aggregation Mode
手动模式
Manual Mode
手动模式下端口的Eth-trunk的建立都为手动建立,成员也均为手动加入Eth-trunk,没有链路聚合控制协议的参与,当两个直连设备间提供一个较大的链路带宽时而设备不支持端口两路聚合控制协议时就可以采用手动模式。手动模式下可以实现网络带宽的增加和提高可靠性,并且负责均衡。手动模式的端口聚合可以将多个成员端口聚合成一个逻辑链路来提高带宽。如果一条链路出现故障时,会自动切换到另一条链路来保障业务的正常运行
The creation of Eth-trunk at the lower end of the manual mode is built manually, with members joining Eth-trunk manually, without the involvement of a chain polymer control agreement, and a manual mode can be used when a larger chain bandwidth is provided between two straight-link devices and the equipment does not support the port-to-port polymer control protocol. The manual mode increases the bandwidth and improves reliability, and is responsible for balancing. The manual mode of port aggregations can bring multiple members'ports together into a logical link to increase bandwidth. If a link breaks, it automatically transfers to another link to guarantee normal operations.
配置手动模式端口链路聚合
Configure Manual Mode Port Link Convergence
如下图,将交换机核心A和核心B的GE0/0/23和GE0/0/24加入手动端口链路聚合。并各使用两台PC进行验证测试。
The following graph will add GE0/0/23 and GE0/0/24 of the switchboard core A and core B to the manual port links. Two PCs each will be used for validation tests.
配置代码
Configure Code
在交换机核心A上创建Eth-trunk端口,并将GE0/0/23、GE0/0/24成员端口加入,交换机核心B配置相同。
Create the Eth-trunk port on switch core A and add the GE0/0/23 and GEO0/0/24 member ports, with the same switch core B configuration.
<Huawei>system-view ---------------进入系统配置视图
& lt; Huawai> system-view & nbsp; & ; -- - access to system configuration view
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan batch 100 200 -------------创建Vlan 100 200
[Huawai] vlan batt 100 200 nbsp; & nbsp; - creation of Vlan 100 200
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]interface Eth-Trunk 1 ------------创建Eth-Trunk端口
[Huawaei] interface Eth-Trunk 1 - creating the Eth-Trunk port
[Huawei-Eth-Trunk1]trunkport GigabitEthernet 0/0/23 to 0/0/24 加入成员
[Huawei-Eth-Trunk1] Trunkport Gigabit Ethernet 0/0/23 to 0/0/24 & nbsp; membership
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk1]port link-type trunk --------配置Eth-Trunk端口类型
[Huawei-Eth-Trunk1] port link-type trunk & nbsp; & nbsp; - Configure Eth-Trunk Port Type
[Huawei-Eth-Trunk1]port trunk allow-pass vlan 100 200 ---把Vlan100 200加入Eth-Trunk端口
[Huawei-Eth-Trunk1] port trunk allow-pass vlan 100 200 & nbsp; & nbsp;-- add Vlan 100,200 to the Eth-Trunk port
[Huawei-Eth-Trunk1]undo port trunk pvid vlan ------禁止Vlan1数据转发
[Huawei-Eth-Trunk1] undo port trunk pvid vlan & nbsp; & nbsp; & nbsp; -- ban Vlan1 data transmission
[Huawei-Eth-Trunk1]load-balance src-dst-mac ------配置负载均衡方式
[Huawai-Eth-Trunk1]load-balance src-dst-mac - configuration of load balance
[Huawei-Eth-Trunk1]quit
[Huawei]interface GigabitEthernet 0/0/1 -----配置GE0/0/1口
[Huawai] interface GigabitEthernet 0/0/1 - configuration of GEO0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type access -----配置端口类型
[Huawai-GigabitEthernet0/0/1] port link-type access & nbsp; & nbsp;-- configuration port type
[Huawei-GigabitEthernet0/0/1]port default vlan 100 ----加入vlan100
[Huawai-GigabitEthernet0/0/1]port default vlan 100 - add vlan100
[Huawei-GigabitEthernet0/0/1]quit ----退出当前视图
[Huowai-GigabitEthernet0/0/1] quit & & & & Quit the current view.
[Huawei]interface GigabitEthernet 0/0/2 -----配置GE0/0/2口
[Huawai] interface GigabitEthernet 0/0/2 - configuration of GEO0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access -----配置端口类型
[Huawai-GigabitEthernet0/0/2] port link-type access - configuration port type
[Huawei-GigabitEthernet0/0/2]port default vlan 200 ----加入vlan100
[Huawai-GigabitEthernet0/0/2]port default vlan 200 & nbsp; - add vlan100
[Huawei-GigabitEthernet0/0/2]quit
[Huawei]
配置主要相关实例如下
Configure key relevant examples:
查看交换机核心A和核心B配置结果
View switch core A and core B configurations
输入dispaly Eth-trunk 1命令查看端口聚合状态
Enter the dispaly Eth-trunk 1 command to view port convergence status
实验测试
Experimental tests
在核心A和核心B下的PC进行测试(测试前提为同一Vlan下的PC),我们进入PC1下使用ping命令进行链路测试
The PCs under Core A and Core B are tested (based on the PC under the same Vlan), and we enter the PC1 for a link test using a pin command.
这时我们将核心A和核心B任意一台的GE0/0/23或者GE0/0/24端口关掉,模拟现实中当设备其中一条链路出现故障时,业务是否会自动切换到另一条链路
& nbsp; at this point we turn off any GE0/0/23 or GE0/0/24 port of Nucleus A and Nucleus B to simulate whether the business automatically switch to another link when one of the links of the equipment fails
我们在核心A上将GE0/0/23端口关闭
We shut down the GE0/0/23 port on Core A.
[Huawei]interface GigabitEthernet 0/0/23 ----------进入GE0/0/23端口
[Huawai] interface GigabitEthernet 0/0/23 & & & -- - access to the end of GE0/0/23
[Huawei-GigabitEthernet0/0/23]shutdown -------------------------关闭端口
[Huowai-GigabitEthernet0/0/23] Shutdown & nbsp; &---
关闭后我们输入display Eth-trunk查看端口聚合状态
When it closes, we enter Display Eth-trunk to see the port's convergence state
此时端口GE0/0/23已关闭,再次使用ping命令查看链路连通性,测试结果显示链路没有因为GE0/0/23端口的关闭而业务断开
At this time, the port GE0/0/23 was closed and again the ping command was used to view the connection, and the test showed that the link was not broken because of the closure of the GE0/0/23 port
END
- 成员端口必须一直,如:一个为吉比特端口(GE口),另一个也必须为吉比特端口(GE口)
- 成员端口速率必须相同,如:都100Mbit/S或都1000Mbit/S
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论