Skip to content

Instantly share code, notes, and snippets.

@fnichol
Created February 13, 2014 19:32
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fnichol/8982147 to your computer and use it in GitHub Desktop.
Save fnichol/8982147 to your computer and use it in GitHub Desktop.
"Fix" VMware Network
#!/usr/bin/env bash
set -e
[ -n "$DEBUG" ] && set -x
banner() { printf -- "-----> $*\n"; }
banner "Restarting VMware networking"
banner "Stoping networking"
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
banner "Configuring networking"
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --configure
banner "Starting networking"
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start
banner "Displaying status"
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --status
banner "Ensure that only vmnet1 and vmnet8 devices are showing"
banner "Background: http://serverascode.com/2013/04/11/vagrant-and-vmware.html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment