最近因為想將 vlan3的網段整理出來,放在另一台switch中,再用LACP的方式接兩條線(ㄈ)到core switch上,上網survey了一下建置方式,卻一直卡在switch mode沒搞懂而 造成失敗,因此這邊紀錄一下正確的佈建方式:
首先確認一下環境:
設備: 1.core switch 4507 2.edge switch 2970
目標: 將core 上 vlan3 接至 edge端,並設置lacp
步驟:
part A:
1.先在core switch 上找兩個空的 vlan3 port 組成 eterchannel,設置switchport mode 為 access vlan 3,switch mode很重要 當模式為access 系統會把vlan的tag拿掉 另一端的edge switch就可以直接存取 不用再解tag了
interface Port-channel3
description EteherChannel for vlan3 port 1 & 2
switchport
switchport access vlan 3
switchport mode access
2.在兩個port上設定 LACP 為active
interface G1/1
switchport access vlan 3
switchport mode access
channel-group 3 mode active
interface G1/2
switchport access vlan 3
switchport mode access
channel-group 3 mode active
-------------------------------------------------------------------------
part B
1.在edge switch 找兩個空的 port 組成 eterchannel,因整個switch 只有一個vlan,不需要再做分割,用預設 (vlan1)即可
interface port-channel3
description Etherchannel for vlan3 port 23 & 24
2.在兩個port上設定 LACP 為active,lacp兩邊都可設定為active 不用特別設一邊為positive
interface g1/23
channel-group 3 mode active
channel-protocol lacp
interface g1/24
channel-group 3 mode active
channel-protocol lacp
-----------------------------------
完成後 可以下
sh etherchannel summary 確認lacp是否有成功
sh etherchannel detailㄎ