Link to home
Start Free TrialLog in
Avatar of MichaelBalack
MichaelBalackFlag for Singapore

asked on

How to configure etherchannel trunk between ESXi hosts and Cisco 2960 switch?

This is using 2 VMware ESXi 6.5 hosts. There are 5 VMs per host. We are intend to have 1 vlan for management, 1 for backup segment, and 1 for the production segment. we intend to configure a NIC teaming on 2 physical network (vmnic0 & 1) port per host. Respective port-group for each vlan id were created. 101 for production, 121 for mgmt, and 122 for backup. All 3 port groups joined to the same vswitch0. Load-balancing mode is, Route based on IP hash.

This ESXi Hosts are connected to Cisco Catalyst 2960-48-port switch. The Ethernet channels were configured as follows,

int port-channel 1
  switchport trunk allowed vlan 101,121,122
  switchport mode trunk

int gigabitethernet1/15
  switchport trunk native vlan 101
  switchport trunk encap dot1q
  switchport trunk allowed vlan 101,121,122
  switchport mode trunk
  channel-group 1 mode on

int gigabitethernet1/16
  switchport trunk native vlan 101
  switchport trunk encap dot1q
  switchport trunk allowed vlan 101,121,122
  switchport mode trunk
  channel-group 1 mode on

Do these configurations work?

Thank in advance.
Avatar of Sajid Shaik M
Sajid Shaik M
Flag of Saudi Arabia image

Yes, at quick glance, that looks like the correct configuration.

Make sure you also set the vSwitch in ESXi to Route based on IP hash.

Also make sure you create the various Virtual Machine Portgroups with the correct VLAN Tag.
Avatar of MichaelBalack

ASKER

Hi Sajid,

Found the difference.

It looks like you are configure vlan 1 to be the native vlan without tag. In switch, you configured "switchport trunk native vlan 1", and other vlans must be in "switchport trunk allowed ...". Then for the vlan 1 in ESXi, you configured vlan 1 with vlan id 0.

My question is, can I replace this vlan 1 with 101, and set the vlan 101 with vlan id 0 in ESXi?
see the vlan 1 is the default vlan on the switch ... so when you trunk port to default then you have to go with only vlan 1
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Andrew,

Thanks for your comments on the native vlan on cisco switch, and matching with those set in ESXi port-group.
Hi Sajid and Andrew,

I am schedule to have the setup and configuration on this coming Friday.
Thanks expert-Andrew in solving the problem. It works now