vSwitch within two different network dilemma :
Let say we have 2 different network,
network A = 192.x.x.x network
network B = 10.x.x.x network
vSwitch can be considered as physical layer 2 switch. Hence, how you isolate those two network, depends on your vSwitch.
However, since vSwitch is layer 2 switch, it’s clearly only can do network isolate via ip address instead software layer like vlan & etc which require layer 3 switch.
So, do u need another vSwitch for 10.x.x.x network?
First, no need if 10.x.x.x is only for virtual machine network and 192.x.x.x network sharing same physical layer 2 switch
Second, yes u need, if you need to manage your ESXi from both network (192.x.x.x and 10.x.x.x)
Not only vSwitch, but also secondary service console for management purposes via vi-client
greetz athlon_crazy
Hi, today i’ve learned new thing regarding vmware esxi 4.
If we open the Vmware vSphere client, go to Home -> Inventory -> HOST (Vmware esxi 4 host) -> Configuration -> Networking, by default the network is set up in Virtual Switch : vSwitch0. There we can see our network adapter card (e.g vmnic1) attached with the network.

So here’s my problem statement,
I have one network using ip 192.x.x.x and another network using 10.x.x.x .. My esxi 4 machine is configured with IP 192.x.x.x. IP 192.x.x.x is segregate with IP 10.x.x.x. Which means both IP can’t “see” each other.
In the esxi, there are bundles of virtual machine running, and I want to set 1 virtual machine (ubuntu) that host a web server to be accessed via both network (192.x.x.x and 10.x.x.x).
Method,
To do this, I set up additional LAN cable to be attached with another physical adapters/network card (e.g vmnic2).
Then, in vSphere client, go to Add networking -> Virtual Machine -> Create a virtual switch and choose your second network interface. The output is as follow..

Then next step is add another virtual network interface to the virtual machine. go to Edit settings and add another network adapter and choose Network connection -> network label.


Finally, fire up the virtual machine, you will see new network card added (eth0, eth1). eth0 is for 192.x.x.x, eth1 for 10.x.x.x. Issue ifconfig -a | more
Make sure to check the mac address of eth1 with vmimage in the vSphere client. If it is match, we are good to go..
greetz yomuds, hafiz, athlon crazy
salawank is Digg proof thanks to caching by WP Super Cache