VMware Workstation 12: Can't edit network mask
For some insane reason, you can't edit the network masks when editing your virtual networks in VMware Workstation (Linux version. This issue doesn't affect the Windows version) This is unacceptable for us network admins. What if you have to use a non-standard network mask?
Here's a screenshot showing that the network mask can't be edited from the GUI:
How to fix it
- First of all, you can add networks by ip in the GUI, to simplify the procedure.
Why? VMware will create the appropriate file structure. You will edit the network mask later.
- Stop vmware network service like this:
sudo /usr/bin/vmware-networks --stop -v
- Edit vmware networks like this: (Be sure to backup this file first)
Extract from my /etc/vmware/networking file:
1 VERSION=1,0 2 answer VNET_10_HOSTONLY_NETMASK 255.255.0.0 3 answer VNET_10_HOSTONLY_SUBNET 172.16.0.0 4 answer VNET_10_VIRTUAL_ADAPTER yes 5 answer VNET_11_HOSTONLY_NETMASK 255.255.0.0 6 answer VNET_11_HOSTONLY_SUBNET 172.20.0.0 7 answer VNET_11_VIRTUAL_ADAPTER yes 8 answer VNET_12_HOSTONLY_NETMASK 255.255.0.0 9 answer VNET_12_HOSTONLY_SUBNET 172.30.0.0 10 answer VNET_12_VIRTUAL_ADAPTER yes
(Edit your network masks if necessary)
- Restart vmware network service like this:
/usr/bin/vmware-networks --start -v