13.20-二层链路聚合

数通

二层链路聚合

13.20-二层链路聚合-下一朵云
图1 二层链路聚合

配置命令:

交换机SW1

[SW1]int Eth-Trunk 1    #创建捆绑组1
[SW1-Eth-Trunk1]int g0/0/2
[SW1-GigabitEthernet0/0/2]eth-trunk 1    #将g0/0/2加入捆绑组1
[SW1-GigabitEthernet0/0/2]int g0/0/3
[SW1-GigabitEthernet0/0/3]eth-trunk 1
[SW1-GigabitEthernet0/0/3]int g0/0/4
[SW1-GigabitEthernet0/0/4]eth-trunk 1
[SW1-GigabitEthernet0/0/4]int g0/0/5
[SW1-GigabitEthernet0/0/5]eth-trunk 1

交换机SW2(配置方法二)

[SW2]int Eth-Trunk 1
[SW2-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/4
#将接口g0/0/1到g0/0/4全部加入捆绑组1

查看捆绑端口状态

[SW1]dis eth-trunk 1
13.20-二层链路聚合-下一朵云
图2 捆绑端口状态

查看端口阻塞情况

[SW1]dis stp brief 
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
   0    Eth-Trunk1                  ROOT  FORWARDING      NONE

修改负载均衡的方式(可选):默认负载均衡方式src-dst-ip

[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]load-balance ?
  dst-ip       According to destination IP hash arithmetic
  dst-mac      According to destination MAC hash arithmetic
  src-dst-ip   According to source/destination IP hash arithmetic
  src-dst-mac  According to source/destination MAC hash arithmetic
  src-ip       According to source IP hash arithmetic
  src-mac      According to source MAC hash arithmetic

将捆绑链路配置为trunk链路

[SW2]int Eth-Trunk 1
[SW2-Eth-Trunk1]port link-type trunk
[SW2-Eth-Trunk1]port trunk allow-pass vlan all

查看端口vlan配置

[SW2]dis port vlan 
13.20-二层链路聚合-下一朵云
图3 Eth-Trunk 1 VLAN配置
版权声明:本文为下一朵云发布文章,转载请附上原文出处链接和本声明。
本文链接:https://www.orcy.net.cn/2559.html

​ 广告:HCIE-Security认证课程辅导资料(付费)

暂无评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注