Skip to content

Instantly share code, notes, and snippets.

@mkocikowski
Last active February 9, 2016 03:46
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 mkocikowski/2e915273f10d8411f47f to your computer and use it in GitHub Desktop.
Save mkocikowski/2e915273f10d8411f47f to your computer and use it in GitHub Desktop.
get IP of eth1 on Vagrant private network (DHCP)
vagrant ssh -c 'ifconfig eth1' | awk '/inet addr/{print substr($2,6)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment