思科、華為交換機鏈路聚合(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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM