In the default NAT mode, VirtualBox happily assigns the default IPv4 address 10.0.2.15 to eth0, along with an IPv6 address. I can traceroute all the way out to Internet servers quite happily. But NAT isn't going to work for this VM, because I need my router to be able to forward packets received from Internet VPN clients. Reading the guest NIC choices, "Bridged Adapter" with a static IP seems to be what I need. But when I try to set that up I can't ping to or from the VM (i.e. destination unreachable pinging to/from the physical machines on the same subnet). Here are the config details:
IPs:
Router: 192.168.0.1
Host (Ubuntu): 192.168.0.105 (DHCP)
Guest (Debian): 192.168.0.99 (static)
Netmask: 255.255.255.0 (on all)
The router is set to issue DHCP leases for the range 192.168.0.100-199. I have tried with an without an address reservation on the router for the VM's static IP. I also tried to let the VM obtain a DHCP address, but it didn't pick one up. Oh, and I added the following to /etc/network/interfaces on the Debian VM:
Code: Select all
auto eth0
iface eth0 inet static
address 192.168.0.99
netmask 255.255.255.0