First off take notes of your current DHCP ip details, by passing the command below.

esxcfg-vswif -l

Then remove vswif0 by issuing the below command

esxcfg-vswif -d vswif0

Then type the below command by specifying correct ip details captured in the first step. Remember this is case sensitive ( i = Ip address, n = Subnet mask, b = broadcast )

esxcfg-vswif -a vswif0 -p Service\ Console -i -n -b

2593 Total Views 4 Views Today