Skip to content

Instantly share code, notes, and snippets.

@ochinchina
Created August 7, 2015 07:47
Show Gist options
  • Save ochinchina/3e19520ee4ca18f859ff to your computer and use it in GitHub Desktop.
Save ochinchina/3e19520ee4ca18f859ff to your computer and use it in GitHub Desktop.
virtualbox vboxnet management in the linux system

create hostonly network

$ vboxmanage hostonlyif create
%0...%10...%20...%30...%40...%50...%60...%70...%80...%90...%100
Interface 'vboxnet3' was successfully created

###assign ip address to the newly create network

$ vboxmanage hostonlyif ipconfig vboxnet3 --ip 10.1.0.1 --netmask 255.255.255.0

###set dhcp server

$ vboxmanage dhcpserver add --netname vboxnet3 --ip 10.1.0.100 --netmask 255.255.255.0 --lowerip 10.1.0.101 --upperip 10.1.0.254 --enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment