First off take notes of your current DHCP ip details, by passing the command below.
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 10.1.1.1 -n 255.255.255.0 -b 10.1.1.255