Using VBox 5.02 OSE, host OS is Arch Linux 4.1.6-1-ARCH
I've configured Guest OS Ubuntu Minimal 14.04 with network adapter as "internal network" using the default name for the network (intnet).
Now I've enabled the Virtualbox dhcp server for the 'intnet' private network with the following command:
$ VBoxManage dhcpserver add --netname intnet --ip 10.10.10.1 --netmask 255.255.255.0 --lowerip 10.10.10.2 --upperip 10.10.10.12 --enable
I boot the guest OS and I see that it gets the IP 10.10.10.2 dynamically assigned by the dhcp server.
But if I try now to ping the dhcp server from my VM, I get no answer:
$ ping 10.10.10.1
PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data.
^C
--- 10.10.10.1 ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 5005ms
Why is that?
--netname
parameter not actually setting up a DHCP server properly, even though you specify it explicitly using the same name from within your VM's network configuration. I was basically unable to get a real DHCP service working with Internal Networking (intnet) using any other name besidesintnet
.