VMware Cloud Community
terran0925
Contributor
Contributor

Setting a native VLAN for a vswitch

Is there a way to set a native VLAN for a vswitch? I'm not much of a network guy but I suspect the vswitch just listens to all VLANs so it can pass it onto the ports with VLANs specified.

Thanks.

0 Kudos
4 Replies
AntonVZhbankov
Immortal
Immortal

You can set up VLAN ID 4095 to allow traffic from all VLANs to go to this portgroup.


---

MCP, MCTS, VCP, VMware vExpert '2009

http://blog.vadmin.ru

EMCCAe, HPE ASE, MCITP: SA+VA, VCP 3/4/5, VMware vExpert XO (14 stars)
VMUG Russia Leader
http://t.me/beerpanda
0 Kudos
terran0925
Contributor
Contributor

But is it possible to set, say, VLAN 200, for the vswitch itself so it'll only listen on that vlan?

0 Kudos
sflanders
Commander
Commander

You can tag a port / use a default VLAN as follows:

  • VLAN<BLAH>, VLAN ID: none (this would be whatever the default VLAN is set to, say 2000)

  • VLAN<BLAH2>, VLAN ID: <NUM> (this would be a tagged VLAN on the same port, if applicable)

The configuration needs to be made on the switch side such as:

interface GigabitEthernet4/12

switchport trunk native vlan 2000

switchport trunk encapsulation dot1q

switchport trunk allowed vlan 2000-2005

switchport mode trunk

spanning-tree portfast trunk

Hope this helps! === If you find this information useful, please award points for "correct" or "helpful". ===
0 Kudos
BenConrad
Expert
Expert

A 'native' vlan is a switch port in 802.1q trunking mode that will effectively take any 'untagged' (no VLAN ID) Ethernet frames and assign them to the native VLAN assigned to the switch port trunk.

So as sflanders said, if you leave the VLAN ID blank on the portgroup and the switch port has the native VLAN ID set you should be in business.

Ben

0 Kudos