链路聚合实验

拓扑

image

配置

pc1
image
pc2
image
LSW1

[SW1]int Eth-Trunk 1//创建一个逻辑口
[SW1-Eth-Trunk1]mode manual load-balance //手工聚合模式(手动将成员接口加入),且开启负载均衡
[SW1-Eth-Trunk1]trunkport g0/0/2//将物理接口绑定到逻辑口上
[SW1-Eth-Trunk1]trunkport g0/0/3
[SW1-Eth-Trunk1]trunkport g0/0/4
[SW1]dis int Eth-Trunk 1//查看链路聚合具体参数
Eth-Trunk1 current state : UP
Line protocol current state : UP
Description:
Switch Port, PVID :    1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW:
 3G, Current BW: 3G, The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc31-27bc
Current system time: 2024-02-07 22:52:03-08:00
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%
-----------------------------------------------------
PortName                      Status      Weight
-----------------------------------------------------
GigabitEthernet0/0/2          UP          1
GigabitEthernet0/0/3          UP          1
GigabitEthernet0/0/4          UP          1
-----------------------------------------------------
The Number of Ports in Trunk : 3
The Number of UP Ports in Trunk : 3
[SW1]dis stp brief //查看stp发现原先的三个端口已经变为一个Eth-Trunk1逻辑口
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
   0    Eth-Trunk1                  DESI  FORWARDING      NONE

LSW2

[SW2]int Eth-Trunk 1
[SW2-Eth-Trunk1]mode manual load-balance 
[SW2-Eth-Trunk1]trunkport g0/0/1
[SW2-Eth-Trunk1]trunkport g0/0/2
[SW2-Eth-Trunk1]trunkport g0/0/3

通讯正常
image

posted @ 2024-02-07 23:23  cjssbd  阅读(41)  评论(0)    收藏  举报