VMware Cloud Community
Tenere
Contributor
Contributor

ESXi 6.7 vSwitch VLAN tagging issue

Hello everyone,

I'm just tinkering with ESXi in my homelab and noticed the following issue:

  • the vNIC in the Voice portgroup can't pass traffic to the switch
  • in the ESXi Web Console it looks like vSwitch is recognizing the wrong MAC address for the second NIC attached to VLAN 10.

The switches (Cisco 2960G) are configured for VLAN trunking and in general VLANs work pretty well in my lab setting. The only issue ist the ESXi: the vNIC attached to the portgroup "Voice" with VLAN 10 does not seem to be able to pass traffic through the physical NIC to the switch (as mentioned above).

2019-03-25 ESXi vSwitch 01.jpg

2019-03-25 ESXi vSwitch.jpg

On the left side there's the output of the linux "ip addr sh" command. On the right side there's the vSwitch overwiew. Please note the MAC addresses are different in the linux VM but are the same in the vSwitch overview. Is this a possible bug or just a feature...?

I'm grateful for any hints to point me in the right direction...

Cheers,

Joerg

Tags (3)
4 Replies
a_p_
Leadership
Leadership

Is this a possible bug or just a feature...?

That's a bug in the GUI, so don't worry too much about that one.

As for the VLANs, can you confirm that VLAN10 is allowed on the physical switch port (show run int gi#), and that VLAN10 is available on the switch (show vlan)?

André

Reply
0 Kudos
Tenere
Contributor
Contributor

Hello André,

thanks for the answer.

I can confirm both.

Switch-02#sh run int g0/1

Building configuration...

Current configuration : 245 bytes

!

interface GigabitEthernet0/1

switchport mode trunk

srr-queue bandwidth share 10 10 60 20

queue-set 2

priority-queue out

mls qos trust cos

macro description cisco-switch

auto qos voip trust

spanning-tree link-type point-to-point

end

Switch-02#sh vlan

VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

1    default                          active    Gi0/2, Gi0/3, Gi0/4, Gi0/5, Gi0/6, Gi0/7

10   Voice                            active

100  Guest                            active

1002 fddi-default                     act/unsup

1003 token-ring-default               act/unsup

1004 fddinet-default                  act/unsup

1005 trnet-default                    act/unsup

As the trunks support all VLANs (except defined otherwise) and VLAN 1 is the default VLAN I'm pretty sure there's nothing wrong with the switch config.

Best regards,

Joerg

Reply
0 Kudos
a_p_
Leadership
Leadership

I'm not a dedicated networking guy, but you try to modify/add some settings to meet the recommended configuration (see e.g https://kb.vmware.com/kb/1004074).

Sample settings (not including any qos settings):

interface Gi0/1

switchport trunk encapsulation dot1q

switchport mode trunk

switchport nonegotiate

spanning-tree portfast trunk

If this doesn't help, you may configure one of the switch ports as an access switch for VLAN10, and use e.g. a notebook to test connectivity to the subnet.

André

Reply
0 Kudos
Tenere
Contributor
Contributor

Hallo André,

I found my mistake.

Switch and ESXi config were flawless but my linux VM network config was faulty. One shouldn't tag the network adapter AND switch port...

Thanks and best regards,

Joerg