Skip to content

Instantly share code, notes, and snippets.

@jrhea
Created May 13, 2014 05:18
Show Gist options
  • Save jrhea/e8e0f325c5b67e81f13f to your computer and use it in GitHub Desktop.
Save jrhea/e8e0f325c5b67e81f13f to your computer and use it in GitHub Desktop.
Create a sub-net between the host and guest OS
echo Creating host-guest internal network
VBoxManage hostonlyif remove "VirtualBox Host-Only Ethernet Adapter"
VBoxManage hostonlyif create
VBoxManage hostonlyif ipconfig "VirtualBox Host-Only Ethernet Adapter" --ip 192.168.56.1 --netmask 255.255.255.0
VBoxManage dhcpserver add --ifname "VirtualBox Host-Only Ethernet Adapter" --ip 192.168.56.1 --netmask 255.255.255.0 --lowerip 192.168.56.1 --upperip 192.168.56.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment