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.

Network Connection error & can't browse internet, how do I troubleshoot the network connection? I want to set a static IP for vbox guest ubuntu 12.04 machine on bridged network Host is ubuntu 12.04.

steps i did:

on vbox, I enabled bridged network & in ubuntu host's network interface I added a new wired connection with following info:

IP : 192.168.8.8 netmask: 255.255.255.0 gateway/DNS:192.168.1.1

in my host cat /etc/network/interfaces (i did a gedit to append the static IP info)

auto lo
iface lo inet loopback


iface eth0 inet static
       address 192.168.8.8
       netmask 255.255.255.0
       gateway 192.168.1.1

in my guest cat /etc/network/interfaces

auto lo
iface lo inet loopback
share|improve this question

1 Answer 1

IP : 192.168.8.8 netmask: 255.255.255.0 gateway/DNS:192.168.1.1

This is not going to work. Your IP is not in the same subnet than the default gateway. Either use a IP in the correct network (i.e. 192.168.0.8) or change the network mask to 255.255.0.0, whatever is appropriate for your network configuration.

If you give us some working machine configuration we can deduce the correct option.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.