esx

vSwitch(s) within ESX(i)

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

By salawank on April 13, 2010 | Uncategorized | A comment?
Tags: , , ,

Configure Virtual Switch in VMWare ESXi 4

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.

Screenshot

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..

vswitch

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.

network

network2

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

By salawank on January 12, 2010 | Uncategorized | 4 comments
Tags: ,

6 visitors online now
6 guests, 0 members
Max visitors today: 11 at 11:25 am GMT-8
This month: 11 at 09-09-2010 11:25 am GMT-8
This year: 21 at 03-24-2010 06:49 pm GMT-8
All time: 43 at 10-20-2009 08:17 am GMT-8

salawank is Digg proof thanks to caching by WP Super Cache