May 18, 2009 Archives

18-05-2009 10:50

Setup and internal network on VirtualBox

I wanted to setup an internal network using VirtualBox for some testing. The steps to do this are:

  1. Create a VM whats going to be the gateway. On that, setup 1 NIC to be NAT. This will be your route out onto the internet and LAN the Host resides on.
  2. Create a 2nd NIC on this box thats set for internal network and give it a name.
  3. Get this intiail VM setup with its OS and setup a dhcp server onit. I chose dnsmasq.
  4. Now the rest, just create VM's with 1 NIC on intenral networking of the same name.
  5. One last thing, to get out of this netowkr and onto the 'paren't network, Internet, enable ip_forward on the dhcp server VM you setup in step 1 in the /etc/sysctl.conf file. This had me for a little bit.

I know these are brief instructions, it's just something I wanted to get down before I forgot about it.


Posted by DaveQB | Permanent Link | Categories: IT