思科、华为交换机链路聚合(LACP)配置实例

思科:3560G
华为:S5300

思科G0/25---华为G0/0/1
思科G0/27---华为G0/0/2

华为交换机配置链路聚合有两种模式,分别是manual和lacp-static,如果不做配置,交换机默认是manual,所以一定要手动将模式改为lacp-static,这点很重要,否则无法跟思科交换机成功协商LACP。

华为交换机
#interface Eth-Trunk1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
 mode lacp-static    //修改链路聚合模式
 max active-linknumber 2   //设置最大活动链接数为2
 bpdu enable        //开启BPDU

#lacp priority 100

#interface GigabitEthernet0/0/1
 eth-trunk 1
 undo ntdp enable
 undo ndp enable
(在配置端口前,一定要将端口原有配置清空,全部undo掉,否则无法应用eth-trunk命令。如果之前端口配置过trunk口,可以使用undo port link-type清除trunk状态)

#interface GigabitEthernet0/0/2
 eth-trunk 1
 undo ntdp enable
 undo ndp enable

思科交换机
interface port-channel1
 switchport trunk encapsulation dot1q
 switchport mode trunk

interface g0/25
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode active

interface g0/27 
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode active

posted on   剩余价值  阅读(3631)  评论(0编辑  收藏  举报

编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2020-11-29 手动安装cockpit(linux web consol)
2020-11-29 pve安装+cockpit+docker
2020-11-29 pve添加zfs磁盘阵列,分配存储
2020-11-29 PVE解决ZFS内存高占用ARC
2020-11-29 proxmox设置zfs的samba共享
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示