Skip to content

Instantly share code, notes, and snippets.

@madssj
Created July 29, 2013 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madssj/6103494 to your computer and use it in GitHub Desktop.
Save madssj/6103494 to your computer and use it in GitHub Desktop.
Fetches the ip address of a vagrant box's eth1.
vagrant ssh -c 'ip a s eth1 | grep "inet " | cut -d " " -f 6 | cut -d/ -f 1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment