VMware Cloud Community
jketron
Enthusiast
Enthusiast

vswif connection gone and cannot re-add

I have lab box that has the vswif0 connection is gone now and when I do a esxcfg-vswif -a vswif0 -p Service\ Console -i 10.1.1.1 -n 255.255.255.0 -b 10.1.1.255 it will not add the vswif back it errors out on trying to start the interface.

esxcfg-vswif -l shows there is no vswif

esxcfg-vswitch -l shows

vSwitch0 64 Ports 4 Ports used 64 Config'd Ports MTU 1500 Uplink vmnic0 and it has two portgroups Service Console and VMotion

I want to delete the VMotion portgroup but it shows 1 Used port, how do I delete it with that port in use? how do I stop what ever is using it?

0 Kudos
1 Reply
Lightbulb
Virtuoso
Virtuoso

You could try recreating the whole thing, something like the following should do it (Need to be done from console which is where you are already I guess).

esxcfg-vswitch --unlink=vmnic0 vSwitch0

esxcfg-vswitch --delete vSwitch0

esxcfg-vswif --del vswif0

esxcfg-vswitch –a vSwitch0

esxcfg-vswitch -link=vmnic0 vSwitch0

esxcfg-vswitch –A “Service Console” vSwitch0

esxcfg-vswif –a vswif0 –i 10.1.1.1 –n 255.255.255.0 –p “Service Console”

Check out the following for information on the esxcfg net commands

http://www.b2v.co.uk/b2vguide2vmware3.htm

http://kb.vmware.com/kb/1000258

0 Kudos