Monday, November 17, 2008

Changing your ESX Service Console IP

At the command line with root privileges :

To view your current IP and Netmask type:
esxcfg-vswif –l

To change your IP and Subnet Mask type:
esxcfg-vswif –i 172.30.38.20 –n 255.255.255.0 vswf0

Also you will need to change you defaul gateway and DNS :
use:
nano –w /etc/sysconfig/network

DNS nano –w /etc/resolv.conf

once you are finished restart network using:

services network restart

Adding static route to an ESXi 5.0 host

Use esxcfg-route command as follow:

  •   esxcfg-route -a target_network_IP netmask default_gateway
ie:

  •   esxcfg-route -a 192.168.100.0 255.255.255.0 192.168.0.1
 
Review the changes using:

  •    esxcfg-route -l