VMware Cloud Community
rajepatwal
Contributor
Contributor

Is it possible to have the VM in different VLAN and can communicate with the outer machines

Hi,

Is it possible to have different VLAN VM in one ESX server. I have installed ESX 3i in one machine and that machine is having 2 NIC . I have used one NIC for the configuration of the ESX whcih is in the X-VLAN network (192.168.14.X) is it possible that I can give the different network IP to the diffrent VM machine that is (71.5.250.Y) or (116.21.24.Z).

If yes will these VM be communicating with he outer network??

What can we do to communicate with the VM of IP (71.5.250.Y) or (116.21.24.Z) to outer network of IP physical machine.

Please suggest.

Reply
0 Kudos
4 Replies
AndreTheGiant
Immortal
Immortal

Each portgroup (on each vSwitch) can be tagged on a particular VLAN.

Uplink port (where physical NICs are connected) must be in trunk mode and VLAN ID must match between physical switches and portgroup.

Also an external routing is required, cause you have different (V)LANs and different IP networks..

See also:

http://www.vmware.com/files/pdf/virtual_networking_concepts.pdf

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
bulletprooffool
Champion
Champion

Absollutely, yes this can be done simply by creating new port groups and / or vSwitches using the same pNics and assigning the relevant VLans.

You then will need to direct the traffic using VLan tagging on your physical switches . . but be VERY careful, as you can get into a situation where you circumvent your firewalls etc - get your network guys to review your config carefully.

One day I will virtualise myself . . .
Reply
0 Kudos
rajepatwal
Contributor
Contributor

Hi,

I have only one NIC in the ESX server which is functional and I want to assign the 2 diffrent VLAN to the virtual machine which can communicate with the outer phy. server.

How can we create a vswitch in this case.

Reply
0 Kudos
AndreTheGiant
Immortal
Immortal

I have only one NIC in the ESX server which is functional and I want to assign the 2 diffrent VLAN to the virtual

Create the VLAN on the physical switch.

Put the port connected to ESX NIC in trunk mode on the 2 VLAN.

On the existing vSwitch create 2 VM portgroup, each with the right VLAN ID.

See also: VMware Virtual Networking Concepts

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro