I am using Ubuntu on VirtualBox as guest, on a Windows 7 host.
I would like to have this configuration: 1) both guest and host connected to internet. 2) guest can reach host (through ping) 3) host can reach guest (through ping)
I setup a Host-Only-Network on the VirtualBox before importing the image of Debian, and then imported it, and everything worked fine with the internet. I got directly internet.
My Settings for the "VirtualBox Host-Only Ethernet Adapter" are the following:
Here is the content of etc/network/interfaces:
The loopback network interface
iface lo inet loopback
The primary network interface
iface eth0 inet dhcp
The DHCP-Server is unchecked (disabled)
Now when I ping the windows host from the Debian guest, typing "ping 192.168.56.254" (I hope I am really pinging the guest here..) everything goes fine and the packets are sent back.
How can I ping the guest Debian from Windows now? Which address should I ping? How could I know and set the IP of the Guest Debian?