VMware Cloud Community
jomccon
Enthusiast
Enthusiast
Jump to solution

Problems with VLANs

I'm wanting to move my ESX servers from using a Cisco 2821 with a switch module, to using a Cisco 3750g Switch (layer 3). It was working on the 2821, but I'm going to add a couple more ESX servers, so I need more ports. Both ESX servers have Intel quad port gigabit NICs. I have 4 vSwitches that each connect to one of the NICs, and these vSwitches each have a port group that is tagged with a vlan number. On the switch each port has this config:

switchport trunk encapsulation dot1q

switchport trunk native vlan 1005

switchport mode trunk

I have the VLAN's created on the switch and the IP address for the VLAN is pingable from the switch.

____________________

If I turn off the VLAN tagging and set the port to "switchport access vlan nn" it works fine; I'm able to ping the ip address of each VLAN. But this means I can only use one port group per pNIC, which isn't what I need to do. Any help would be appreciated. Thanks.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Gabrie1
Commander
Commander
Jump to solution

Hi

When looking at this thread: http://communities.vmware.com/message/749561#749561

Try using:

switchport trunk encap dot1q

switchport mode trunk

switchport trunk allo vla 100,200

switchport nonego

Gabrie

http://www.GabesVirtualWorld.com

View solution in original post

0 Kudos
3 Replies
Gabrie1
Commander
Commander
Jump to solution

Hi

When looking at this thread: http://communities.vmware.com/message/749561#749561

Try using:

switchport trunk encap dot1q

switchport mode trunk

switchport trunk allo vla 100,200

switchport nonego

Gabrie

http://www.GabesVirtualWorld.com
0 Kudos
Rumple
Virtuoso
Virtuoso
Jump to solution

Also make sure the native vlan is different then the vlan's you are trying to pass over the link.

0 Kudos
jomccon
Enthusiast
Enthusiast
Jump to solution

It was all about "switchport nonegotiate". I thought the command "switchport mode trunk" was supposed to set it to only use trunking, but on I needed the other command. Thanks alot.

0 Kudos