2012年7月21日 星期六

IP Address Change on ESX 4 host

  1. Check current IP address
    • esxcfg-vswif -l
  2. Change to new IP address and netmask
    • esxcfg-vswif -i <new IP address> -n <new netmask> vswif0
  3. Change local hosts file with new IP
    • vi /etc/hosts
  4. Change to new default gateway
    • vi /etc/sysconfig/network
  5. Change DNS resolver settings (if applicable)
    • vi /etc/resolv.conf
  6. Change the vCenter agent configuration
    • vi /etc/opt/vmware/vpxa/vpxa.cfg
  7. Restart the network
    • service network restart
  8. Restart the Management Agent
    • service mgmt-vmware restart
  9. Restart the vCenter Agent
    • service vmware-vpxa restart