Skip to content

Instantly share code, notes, and snippets.

@cdaringe
Created December 30, 2016 17:08
Show Gist options
  • Save cdaringe/3c0f3459a90afa113c87cec3a24e4b1d to your computer and use it in GitHub Desktop.
Save cdaringe/3c0f3459a90afa113c87cec3a24e4b1d to your computer and use it in GitHub Desktop.
get vagrant box ip
vagrant ssh w1 -c "ip address show eth0 | grep 'inet ' | sed -e 's/^.*inet //' -e 's/\/.*$//'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment