VMware

This Question is Answered

2 "helpful" answers available (6 pts)
5 Replies Last post: Jul 23, 2006 10:34 AM by rriis  

VM's and IP's posted: Jul 22, 2006 7:48 AM

Click to view rriis's profile Enthusiast 68 posts since
Feb 14, 2006
Setup: I have an ESX 3 server that I have dedicated 3 1 Gig NIC's for VM's. I have those going to a physical switch that is connected to my production LAN (10.1.1.0 network). I have those 3 NIC's in a vSwitch. I was under the assumption that I would simply put 10.1.1.x addresses on my VM's. I tried this on a new VM, but am not able to ping out to anything. The 3 ports on the physical switch have been teamed up. Should I NOT team the ports on the physical switch (...or for that matter on the virtual switch...).

Any help would be appreciated.

Re: VM's and IP's

1. Jul 22, 2006 9:09 AM in response to: rriis
Click to view whynotq's profile Master 759 posts since
Mar 2, 2005
check the physical conection details in networking. then if all are showing connected and at the correct speed remove 2 of the adapters from the team so it's just a single one on the vswitch and test this, repeat for each NIC.

I had a similar scenario that turned out to be a VLAN issue, 3 NICs connected to 2 different VLANs, independantly all 3 NICs worked but together they gave nothing.

Re: VM's and IP's

4. Jul 22, 2006 11:44 PM in response to: rriis
Click to view Quotient's profile Expert 394 posts since
Nov 30, 2005
It sounds like a misalignment between your vSwitch and pSwitch load-balancing algorithms, or perhaps the method used to team the pSwitch ports.

Use the following process to check / resolve the problem. It assumes that you are using Virtual Switch Tagging (VST) as described in http://www.vmware.com/vmtn/resources/412...

1. Determine what load balancing algorithm is in use on the pSwitch.
In IOS this is usually something like "show etherchannel load-bal..."
If possible use a load-balancing algorithm of src-dst-ip - this provides the greatest flexibility.
Most low-end Cisco switches default to src-mac, whereas higher-end switches usually default to src-dst-ip.
In any case, note the algorithm you are using.

2. Ensure that the vSwitch is using a complimentary algorithm.
If you can't get to the ESX host using the VIC, either unlug all ports (except one - usually vmnic0) or shut them down on the pSwitch.
This will ensure that you are "load-balancing" on a single port. Make sense?
Then:
For *-mac configure the vSwitch to use the MAC hash option.
For *-ip configure the vSwitch to use the IP hash option.

3. Configure the pSwitch to properly team and trunk VLANs.
In IOS this would include:
a) The creation of an EtherChannel port group (aka IEEE 802.3ad Static);
b) The addition of all teamed ports to this FEC/GEC port group;
c) The addition of the following commands to boththe FEC/GEC port group (int poN) and all switch ports (int x/x):
switchport mode trunk
switchport trunk encapsualtion dot1q
switchport trunk allowed vlan x,y,z
optional: switchport trunk native vlan xx
spanning-tree portfast trunk

4. Add the appropriate vmnics to the vSwitch using:
esxcfg-vswitch -L vmnicX vSwitchY...

5. Re-enable all pSwitch ports you may have disabled in step 2 above...

... and you should have peace, hapiness & joy :)

Hope this helps.

Ben

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities