VMware:Changing Service Console IP Address in ESX 3.5

0

Be sure to put the machine in Maintenance Mode then Disconnect it from Virtual Center. Then connect to the console of the ESX host;

 First we need to remove the old IP, the easiest way is to delete the vswif interface

    • esxcfg-vswif -d vswif0
      • replace vswif0 with the interface you’d like to remove
  1. Then we need to create a new vswif interface with our new IP address
    • esxcfg-vswif -a vswif0 -p Service\ Console -i 10.1.1.1 -n 255.255.255.0 -b 10.1.1.255
      • replace vswif0 with the interface you’d like to use
      • replace Service\ Console with the name of your Service Console portgroup (this is the default)
      • -i reflects your new IP
      • -n reflects your subnet
      • -b reflects your broadcast
  2. Now we need to update our default gateway
    • This is a simple change to the /etc/sysconfig/network file
  3. One last thing you’ll want to do after changing your gateway is reset the vswif interface, this will ensure it is connected as well as generate the new default gateway.
    • esxcfg-vswif -s vswif0 (this will disable the vswif0 interface)
    • esxcfg-vswif -e vswif0 (this will enable the vswif0 interface)

That’s it…. Now do NOT forget to update DNS and your HOSTS files, then I would suggest doing a ipconfig /flushdns on your VirtualCenter server before you attempt to re-connect the Host in VirtualCenter.

Interesting news… If you change your Service Console IP and your a host managed by VirtualCenter, SVMotion could stop working. The resolution I found was to put your host(s) into maintenance mode, disconnect, remove and re-add them. This will re-install the VC Agent and reconnect verifying the new IP, and SVMotion will work again.  Duncan Epping over at yellow-bricks.com has also seen this and has a similar resolution listed on his website (http://www.yellow-bricks.com/2008/09/29/storage-vmotion-fails-after-service-console-ip-change/), it also includes a change to the VC database, but we both did not need this step for it to work.

Bron: http://vmwaretips.com

About Author

Leave a Reply

Your email address will not be published. Required fields are marked *