Wednesday, February 24, 2010

Troubleshooting VMware ESX Networking


Troubleshooting ESX 4.0 Networking Issues

Phase one: Verification


If you installed the ESX software and you are unable to ping the host after installation try the following steps.

1. Verify that the required network interface cards are up and the switch port is up and configure correctly.
ESX Command to check network cards:
 esxcfg-nics –l 
Once you confirmed that your NICS are up verify the duplex setting on both your network switch and your ESX host.

ESX Command to set the speed to 1 Gig / Full duplex to full for NIC 0
esxcfg-nics –s 1000 –d full vmnic0
2. Verify that you have the  correct network addressing configuration:
less /etc/sysconfig/network
3.       Verify your vSwitch configuration.
esxcfg-vswitch –l
This command is also use to create and update a virtual machine (vswitch) network settings as you will see later one.
Here you can see that NIC 0 and 2 are both assigned to vSwitch0



Verify your service console network setting.
esxcfg-vswif –l

This command is also used to create and update the service console network settings. This command is used if you cannot manage the ESX Server host through the VI Client because of network configuration issues

                   
      You can also use this command to create and update the virtual machine (vswitch) network settings.

If you are still unable to establish connectivity to the hosts, by this time, you can use the following commands to delete and recreate the vSwitch.

Phase two: Changes
At this point if after verifying the following settings you don’t see anything unusual, you would take note of the above settings, delete them and recreate it.

esxcfg-vswitch  –d vSwitch0 --> To remove virtual switch
esxcfg-vswitch  –a vSwitch0 --> To re-add a virtual switch
esxcfg-vswitch -L vmnic0 vSwitch0 --> To assign physical nic0  (repeat and add additional nics)
esxcfg-vswif  -d vswif0 --> To remove the service console network.

esxcfg-vswif -a vswif0 -p "Service Console" -i 10.100.0.114 -n 255.255.255.128 --> Add a Service Console (vswif0)
esxcfg-vswitch -v 69 -p "Service Console" vSwitch0 --> Add Vlan 69 to service console on vSwitch0


After these steps its important to restart the network service with the "service network restart" command.



No comments:

Post a Comment