二层链路聚合
配置命令:
交换机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
查看端口阻塞情况
[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
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)