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

Author: salawank on January 12, 2010
Category: Uncategorized
Tags: ,
4 responses to “Configure Virtual Switch in VMWare ESXi 4”
  1. Helen Neely says:

    Thanks for this post, this is a simple yet nice article on configuring vmware. I will bookmark it for later use.

  2. Helen Neely says:

    Is there any way you can make those images clickable?
    I am guessing your visitor will find it hard to see the screenshots clearly.

  3. salawank says:

    Hi Helen,
    You can right click and view image for better presentation.
    thanks

  4. Wankguest says:

    LOVE your work! You just saved me trawling through the manuals. Thx!

Leave a Reply

Last articles

3 visitors online now
3 guests, 0 members
Max visitors today: 5 at 01:48 am GMT-8
This month: 8 at 09-04-2010 04:05 pm 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