Friday, July 19, 2013

Changing ESXi IP address and default route via command line

esxcfg-vmknic "Management Network" -i [newip] -n [newsubnetmask]
esxcfg-route -d default 0.0.0.0 [olddefaultgw]
esxcfg-route -a default 0.0.0.0 [newdefaultgw]
/sbin/services.sh restart

3 comments:

  1. I would also add if need to change VLAN of Management

    esxcfg-vswitch -p "Management Network" -v [vlanID] vSwitch0

    ReplyDelete