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,链路聚合有增加上行带宽和链路备份的作用。
  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值