We help IT Professionals succeed at work.

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

189 Views
Last Modified: 2018-10-31
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.
Comment
Watch Question

Sajid Shaik MSystem Admin
CERTIFIED EXPERT

Commented:
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
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.
MichaelBalackSenior System Engineer

Author

Commented:
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?
Sajid Shaik MSystem Admin
CERTIFIED EXPERT

Commented:
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
VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
MichaelBalackSenior System Engineer

Author

Commented:
Hi Andrew,

Thanks for your comments on the native vlan on cisco switch, and matching with those set in ESXi port-group.
MichaelBalackSenior System Engineer

Author

Commented:
Hi Sajid and Andrew,

I am schedule to have the setup and configuration on this coming Friday.
MichaelBalackSenior System Engineer

Author

Commented:
Thanks expert-Andrew in solving the problem. It works now
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
no problems

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions