Home Assistant set up VM Wi-Fi connection via CLI
2026-04-20 – Agron Merseli
Open Virtual Network Editor from VMware Workstation.

Set up the network as bridged to the Wi-Fi card.

Enter the VM settings.

Select the virtual network.

Restart the machine.
Check if the router has not give any ip address.
Note the name of the network interface, in this case is enp2s0, this will not change also if you move the Vm to another machine.

Now type the follow lines to permit to HA to connect to the existing Wi-Fi connection.
network info
Check if network interface has no ip

Now type the following command (remember to rename the interface)
network update enp2s0 --ipv4-method auto --ipv6-method disabled

This means the IPv6 is disabled you need only IPv4 set to auto that means DHCP.
If you need to set up a fixed IP you need to set method static and set the ip address, using the highlighted commands.

Finally you have to set the Wi-Fi SSID and Wi-Fi password using the following command.
Remember to change the network interface, name SSID and password.
network update enp2s0 --wifi-auth wpa-psk --wifi-ssid WIFIXYZ123 --wifi-psk pwdwifi123
After that type
exit
to return the the top of the CLI.
And check ip the router has give a new ip address to the HA server.

Finally you can enter the webserver running locally at the following address.
http://homeassistant.local:8123
or, using the actual ip:
http://192.168.X.Y:8123
