Debian guest can't reach default gateway

Discussions about using Linux guests in VirtualBox.
Post Reply
FernandoCote84
Posts: 1
Joined: 30. Sep 2016, 18:37

Debian guest can't reach default gateway

Post by FernandoCote84 »

Hello,

I have created Debian 8 guest in VirtualBox.

Network adapter is using Bridged Adapter mode because I would like to be able to access the guest's web-service from host and LAN too.

The guest obtains a proper IP address(192.168.5.55) from the DHCP server, which happens to be the default gateway(192.168.5.1).
Problem, is that the guest can't ping default gateway(which means the Internet is not reachable too), but it can ping devices on the LAN including host itself and vice-versa.

I've tried disabling iptables with commands but it didn't help:

Code: Select all

iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
Setting network adapter setting to NAT lets me access the Internetfrom guest(I get different IP, probably assigned by VB itself), but host can't reach the guest then which is not desirable.

Also, I have a couple of other guests running different Linux distros and they seem to work fine in Bridged Adapter mode.

What else do you think I can try to fix this problem?
Post Reply