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.

I have a Ubuntu 13.10 installed as a guest on virtualbox 4.3.4 r91027 on a Windows 7 host.

When I use network mode NAT, the ubuntu guest can access the internet. but when I change the networking mode to bridged, the ubuntu guest does not connect to internet and does not get a inet address.

Here is the ifconfig output for NAT.
eth0      Link encap:Ethernet  HWaddr 08:00:27:0b:cc:7b  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe0b:cc7b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:89652 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42366 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:107627599 (107.6 MB)  TX bytes:3037228 (3.0 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1584 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:154254 (154.2 KB)  TX bytes:154254 (154.2 KB)


Here is the same output for Bridged network.
eth0      Link encap:Ethernet  HWaddr 08:00:27:0b:cc:7b  
          inet6 addr: fe80::a00:27ff:fe0b:cc7b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:89652 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42383 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:107627599 (107.6 MB)  TX bytes:3040704 (3.0 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1584 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:154254 (154.2 KB)  TX bytes:154254 (154.2 KB)

share|improve this question
add comment

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.