VMware Cloud Community
Krax
Contributor
Contributor
Jump to solution

Can not start vswif0

Hi all,

I can not start vswif0. Smiley Sad

vmware -v : Vmware ESX Server 3.5.0 build-64607

esxcfg-nics -l : Vmnic0 is up . Vmnic1 is down. (Broadcom BCM5715 Gigabit Ethernet)

esxcfg-vswif -l: Enabled DHCP. IP Adress, Netmask, Broadcast appears empty ????

ifconfig -a: I can see vmnic1, vmnic0 and lo but not vswif0 ????

When i run service network status:

Cofigured devices: lo eth1 vswif0

Currently active devices: lo vmnic vmnic0 but not vswif0 ???

What can i do?

Reply
0 Kudos
1 Solution

Accepted Solutions
Karunakar
Hot Shot
Hot Shot
Jump to solution

Please follow the below steps to create a vSwitch, and a port group

for vSwitch.

esxcf-vswitch -a vSwitch0 -L vmnic0 (select the nic you wanted to give)

then to create the port group under this vswitch

esxcfg-vswitch -A "Service Console" vSwitch0

Now try to create the service console vswif0

/usr/sbin/esxcfg-vswif -a vswif0 -p “Service Console” -i 192.168.100.7 -n 255.255.255.0 (IP mentioned here is an example)

please make an entry of gateway and hostname in /etc/sysconfig/network

now restart the network.

check the result of esxcfg-vswif -l, esxcfg-vswitch -l

-Karunakar

View solution in original post

Reply
0 Kudos
7 Replies
Rockapot
Expert
Expert
Jump to solution

Type "esxcfg-vswif -l" on the service console.., what results do you get back?

To bring up the vswif interface type "esxcfg-vswif --enable-all"

Carl

Reply
0 Kudos
jayolsen
Expert
Expert
Jump to solution

type: esxcfg-vswitch -l

Is vmnic0 an uplink for your vswitch for the service console port?

Reply
0 Kudos
Karunakar
Hot Shot
Hot Shot
Jump to solution

Hi,

Looks like the vswif0 you are trying to find is not created.

Can you try to create the vswif0 using teh esxcfg-vswif command, this will help us.

if you are giving the ip from DHCP try to give the below command.

esxcfg-vswif -a vswif0 -i DHCP -p " port group name"

If trying to give the static IP , then give the below command.

esxcfg-vswif -a vswif0 -i <ip> -n <netmask> -p " port group name"

and the gateway can be mentioned in /etc/sysconfig/network

then try to restart the network service.

-Karunakar

Reply
0 Kudos
Krax
Contributor
Contributor
Jump to solution

When i run esxcfg-vswitch -l it's appears empty.

I have other host, with the same hardware, the same ESX version...and when i run esxcfg-vswitch on this host, the result is:

SwitchName NumPorts UsedPorts ConfiguredPorts MTU Uplinks

vSwitch0 64 4 64 1500 Vmnic0

Portgroup Name VlanID UsedPort Uplinks

VMNetwork 0 0 Vmnic0

ServiceConsole 0 1 Vmnic0

Any idea?

How can i reconfigure vswitch?

Reply
0 Kudos
Karunakar
Hot Shot
Hot Shot
Jump to solution

Please follow the below steps to create a vSwitch, and a port group

for vSwitch.

esxcf-vswitch -a vSwitch0 -L vmnic0 (select the nic you wanted to give)

then to create the port group under this vswitch

esxcfg-vswitch -A "Service Console" vSwitch0

Now try to create the service console vswif0

/usr/sbin/esxcfg-vswif -a vswif0 -p “Service Console” -i 192.168.100.7 -n 255.255.255.0 (IP mentioned here is an example)

please make an entry of gateway and hostname in /etc/sysconfig/network

now restart the network.

check the result of esxcfg-vswif -l, esxcfg-vswitch -l

-Karunakar

Reply
0 Kudos
mike_laspina
Champion
Champion
Jump to solution

Hi,

Try restoring the last config with the following command..

esxcfg-vswif -r

http://blog.laspina.ca/ vExpert 2009
Reply
0 Kudos
langadi
Contributor
Contributor
Jump to solution

Just to add to karunkar point...

The esxcfg-vswif creates a device file under /etc/sysconfig/network-scripts/ifcfg-vswif0

you can use that file to change IPs address,netmask etc.

If file does'nt exist your vswif0 with not come up.

-langadi

Reply
0 Kudos