2618交换机链路聚合配置

交换机A和交换机B通过聚合端口相连(将端口15和16捆绑而成),交换机A的端口1与交换机B的端口2是VLAN2的成员,交换机A的端口2与交换机B的端口4是VLAN3的成员。
2.6 配置步骤
2.6.1 静态聚合
交换机A的具体配置如下:
zte(cfg)#set lacp enable //使能LACP功能
zte(cfg)#set lacp aggregator 3 add port 15-16 //在LACP 3中加入端口15和16
zte(cfg)#set lacp aggregator 3 mode static //设置LACP 3的聚合模式为静态
zte(cfg)#set vlan 2 add trunk 3 tag //在VLAN 2中加入trunk 3,并打tag
zte(cfg)#set vlan 2 add port 1 untag //在VLAN 2中加入端口1,不打tag
zte(cfg)#set vlan 3 add trunk 3 tag //在VLAN 3中加入trunk 3,并打tag
zte(cfg)#set vlan 3 add port 2 untag //在VLAN 3中加入端口2,不打tag
zte(cfg)#set port 1 pvid 2 //设置端口1的PVID为2
zte(cfg)#set port 2 pvid 3 //设置端口3的PVID为3
zte(cfg)#set vlan 2-3 enable //使能VLAN 2和3
交换机B的具体配置如下:
zte(cfg)#set lacp enable //使能LACP功能
zte(cfg)#set lacp aggregator 3 add port 15-16 //在LACP 3中加入端口15和16
zte(cfg)#set lacp aggregator 3 mode static //设置LACP 3的聚合模式为静态
zte(cfg)#set vlan 2 add trunk 3 tag //在VLAN 2中加入trunk 3,并打tag
zte(cfg)#set vlan 2 add port 2 untag //在VLAN 2中加入端口2,不打tag
zte(cfg)#set vlan 3 add trunk 3 tag //在VLAN 3中加入trunk 3,并打tag
zte(cfg)#set vlan 3 add port 4 untag //在VLAN 3中加入端口4,不打tag
zte(cfg)#set port 2 pvid 2 //设置端口2的PVID为2
zte(cfg)#set port 4 pvid 3 //设置端口4的PVID为3
zte(cfg)#set vlan 2-3 enable //使能VLAN 2和3
2.6.2 动态聚合
交换机A的具体配置如下:
zte(cfg)#set lacp enable //使能LACP功能
zte(cfg)#set lacp aggregator 3 add port 15-16 //在LACP 3中加入端口15和16
zte(cfg)#set lacp aggregator 3 mode dynamic //设置LACP 3的聚合模式为动态
zte(cfg)#set vlan 2 add trunk 3 tag //在VLAN 2中加入trunk 3,并打tag
zte(cfg)#set vlan 2 add port 1 untag //在VLAN 2中加入端口1,不打tag
zte(cfg)#set vlan 3 add trunk 3 tag //在VLAN 3中加入trunk 3,并打tag
zte(cfg)#set vlan 3 add port 2 untag //在VLAN 3中加入端口2,不打tag
zte(cfg)#set port 1 pvid 2 //设置端口1的PVID为2
zte(cfg)#set port 2 pvid 3 //设置端口3的PVID为3
zte(cfg)#set vlan 2-3 enable //使能VLAN 2和3
交换机B的具体配置如下:
zte(cfg)#set lacp enable //使能LACP功能
zte(cfg)#set lacp aggregator 3 add port 15-16 //在LACP 3中加入端口15和16
zte(cfg)#set lacp aggregator 3 mode dynamic //设置LACP 3的聚合模式为动态
zte(cfg)#set vlan 2 add trunk 3 tag //在VLAN 2中加入trunk 3,并打tag
zte(cfg)#set vlan 2 add port 2 untag //在VLAN 2中加入端口2,不打tag
zte(cfg)#set vlan 3 add trunk 3 tag //在VLAN 3中加入trunk 3,并打tag
zte(cfg)#set vlan 3 add port 4 untag //在VLAN 3中加入端口4,不打tag
zte(cfg)#set port 2 pvid 2 //设置端口2的PVID为2
zte(cfg)#set port 4 pvid 3 //设置端口4的PVID为3
zte(cfg)#set vlan 2-3 enable //使能VLAN 2和3
2.7 验证方法
PC-1和PC-2不能互通,PC-1和PC-3互通,PC-2和PC-4互通;当拔掉交换机A的15或16端口时,PC-1和PC-3、PC-2和PC-4还可以互通。同时,可通过相关命令显示LACP的配置信息和聚合结果,下面命令可在所有模式下运行。
show lacp //显示LACP的配置信息
show lacp aggregator 3 //显示LACP聚合组聚合信息
show lacp port 15-16 //显示LACP参与聚合的端口信息
2.8 实验结论
链路聚合形成的新的逻辑端口和交换机普通的端口一样,可以打tag或不打tag,链路聚合有增加上行带宽和链路备份的作用。

你可能感兴趣的:(学习笔记)