Created
April 4, 2013 03:57
-
-
Save eedeep/5307709 to your computer and use it in GitHub Desktop.
~/.bashrc alias for finding the IP address of a headless virtualbox VM (in this case named "pupone") configured to get it's IP via DHCP on the network 192.168.0.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias vboxip="nmap -sP 192.168.0.1-254 && arp -n|grep ether|sed s/://g|grep `VBoxManage showvminfo pupone| egrep '^NIC 1'|awk '{print tolower($4)}'|sed s/,//`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment