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've been trying to configure another version of linux in virtualbox, and I want to connect it to my network using the bridged adapter option by bridging it to my wifi. Its been taking me a while to figure out how to do that, but on the way I needed to edit my /etc/network/interfaces file (on my host system). There, I saw that it looks like I only have one interface listed:

auto lo
iface lo inet loopback

From what I understand, which to be honest isn't much, I should have at least 3: the loopback, eth0, and the wifi. When I run ifconfig I get, the three interfaces, though again there's an abnormality: my wifi interface isn't named wlan0 but rather eth1. The output is (censored a little for internet safety):

eth0      Link encap:Ethernet  HWaddr --:--:6f:70:c3:f5  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:41 Base address:0x2000 

eth1      Link encap:Ethernet  HWaddr --:--:00:df:bf:a2  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::7ae4:ff:fedf:bfa2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:408173 errors:41 dropped:0 overruns:0 frame:534242
          TX packets:246382 errors:32 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:464348078 (464.3 MB)  TX bytes:35404570 (35.4 MB)
          Interrupt:17 

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:16436  Metric:1
          RX packets:8896 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8896 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:740380 (740.3 KB)  TX bytes:740380 (740.3 KB)

I haven't messed around much with networking, so I don't think this is something I did. Why are my interfaces so strange? If I add an eth0 and wlan0, what will happen to the interfaces that ifconfig is already showing? Where are those located?

The instructions I'm following that led my to look at /etc/network/interfaces are here: http://codesupply.net/content/setup-bridged-networking-virtualbox-ubuntu-1110 though I'm running ubuntu 12.04.

Also, my wifi is working on my host OS, and if I use NAT it works on my guest OS, just not when I use the bridge adapter.

share|improve this question
    
Did you ever resolve this? I have the identical question/issues. –  Neobyte Mar 29 at 17:49
    
Nope. Never managed it, just gave up eventually. –  drowdemon Mar 30 at 3:21
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.