Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Using Ubuntu 13.04 as virtualbox guest on Windows 8 Host. My etc/network/interfaces looks like that:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.38
netmask 255.255.255.0
gateway 192.168.1.1
broadcast 192.168.1.255

auto eth1
iface eth1 inet static
address 192.168.56.102
netmask 255.255.255.0
gateway 192.168.56.1
broadcast 192.168.56.255

Here is adapter 1's config

enter image description here

And adapter 2's config

enter image description here

ifconfig returns:

enter image description here

Internet comes from 192.168.1.38 - bridged adapter (I think it's eth0). It's connected directly to wireless router. But Ubuntu doesn't get internet from this adapter.

I can connect from host to guest using putty with ip 192.168.56.102 but when I try to connect to the internet from inside guest os - ubuntu, here is what I see:

enter image description here

What am I doing wrong?

share|improve this question
2  
Just a thought- perhaps you need to define a DNS server. Have you tried pinging a direct ip address like 8.8.8.8? –  Icero Sep 8 '13 at 5:13
    
I agree with @Icero - if pinging by IP is successful then try adding a dns-nameservers line to your interface definition, with the IP address(es) of your preferred nameserver(s) - see man interfaces –  steeldriver Sep 8 '13 at 9:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.