可參考:
- VMware KB: Sample configuration of EtherChannel / Link aggregation with ESXi/ESX and Cisco/HP switches
- Cisco: EtherChannel Between Catalyst 3550/3560/3750 Series Switches and Catalyst Switches Running Cisco IOS System Software Configuration Example
前陣子曾遇過在 Port channel 上頭跑 trunk 結果鬼打牆的狀況,多台電腦雖然在同一 Vlan,部分電腦卻會隨機發生無法連上 ESXi Guest 的狀況,找廠商來看也摸不著頭緒… 之後砍掉重練解決。
註記一下這邊跑 trunk 的設定方式。
- C3560G 的設定:
!
port-channel load-balance src-dst-ip
!
interface Port-channel1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan all
switchport mode trunk
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan all
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet0/2
switchport trunk encapsulation dot1q
switchport trunk allowed vlan all
switchport mode trunk
channel-group 1 mode on
! - ESXi 的設定:vSwitch 與 Management Network 的 Load-Balancing 設定為「Route based on ip hash」。