Skip to content

Instantly share code, notes, and snippets.

@binarytemple
Last active February 1, 2016 17:30
Show Gist options
  • Save binarytemple/c19e3694f9e494f8a5f0 to your computer and use it in GitHub Desktop.
Save binarytemple/c19e3694f9e494f8a5f0 to your computer and use it in GitHub Desktop.
Quick disable VMWare DHCP on vmnet1

Quick disable VMWare DHCP on vmnet1

Problem - VMWare Fusion (Pro) DHCP is a mess and almost impossible to configure, lets just do without it altogether.

Disable DHCP on vmnet1 (the VMWare private network).

sudo sed -i '' -e 's/answer VNET_1_DHCP yes/answer VNET_1_DHCP no/' \
/Library/Preferences/VMware\ Fusion/networking

Restart all the VMWare services

sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --configure
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --status
@binarytemple
Copy link
Author

may also need to mess with 'answer VNET_1_VIRTUAL_ADAPTER no' - prevent ip addresses leaking back and forth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment