VMware Cloud Community
jgap
Contributor
Contributor
Jump to solution

vSwitchs & VMs with multiple VLANs

Hello there. I am deploying vSphere on an environment with VLAN tagging.

I have a Blade host with 2 Gbps NICs, configured to form a Team and plugged to vSwitch0. My Service Console´s port group is on VLAN2, then I have some Windows VMs that need to have access to different VLANs. How do i set this up?.

I have a port group for VM traffic, with access to VLAN2, but if some of the VMs need to access a different VLAN than 2,they fail to do so.

The thing is that you can't configure multiple VLAN to a port group, and by allowing 4095 (all VLANs) i get no connectivity to the VMs.

Any help is appreciated. Thanks in advance.

VCP, VSP, VTSP
Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
vpert
Enthusiast
Enthusiast
Jump to solution

Why not adding more then one virtual nic to the VM which needs more then one VLAN Access?

VM

- virt.NIC0 - PG VLAN2 - vSwitch0

- virt.NIC1 - PG VLAN10 - vSwitch0

Helps?

Tom

View solution in original post

Reply
0 Kudos
6 Replies
vpert
Enthusiast
Enthusiast
Jump to solution

just add an other portgroups with the other VLAN ID's to the switch an connect the appropriate VM's to them.

Does this solve your issue?

Tom

Reply
0 Kudos
pauljrb
Contributor
Contributor
Jump to solution

Have you set the physical switch ports to trunk? You'll need to do this if you want to have different VLANs on the same pNIC

Then as vpert says add a new portgroup to the same vSwitch call it VLANx and chuck insome VM's.

Reply
0 Kudos
jgap
Contributor
Contributor
Jump to solution

Yes, the physical ports are set to trunk. I have created VMNetwork22 and VMNetwork10 with their respective VLAN IDs. On the VM I need multiple VLANs I only have one virtual NIC, this NIC can only be set to access the network via one port group, I can't have the same vNIC on different port groups right?.

The thing is that all the physical NICs have access to the VLANs, they show it via vSphere Client.Each VM has one vNIC, and some of them need access to VLAN2 and VLAN10, and VLAN14.

So, I understand that if I create port groups I can assign a different VLAN to each on, but I can't link a vNIC to more than one port group.

What am I missing?

Regards,

VCP, VSP, VTSP
Reply
0 Kudos
pauljrb
Contributor
Contributor
Jump to solution

Sorry, that makes it clearer!

This thread might give you some pointers http://communities.vmware.com/thread/83099

If you want the server to see all Vlans you could have a router to route between them. You can only have one portgroup per vNIC.

- This blog has some good stuff regarding Vlans in it also.

Hope this helps

Paul

Reply
0 Kudos
vpert
Enthusiast
Enthusiast
Jump to solution

Why not adding more then one virtual nic to the VM which needs more then one VLAN Access?

VM

- virt.NIC0 - PG VLAN2 - vSwitch0

- virt.NIC1 - PG VLAN10 - vSwitch0

Helps?

Tom

Reply
0 Kudos
jgap
Contributor
Contributor
Jump to solution

Yes. I just spoke to the networking group, adding additional vNICs and linking them to the appropriate VLAN should do the trick along with static routes.

I believe this solves the issue.

Thanks for the help!!

Best regards,

VCP, VSP, VTSP
Reply
0 Kudos