Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to create a bridge on my Ubuntu machine, to build virtual OSs. I did:

sudo brctl addbr br0    
sudo brctl addif br0 eth0
sudo brctl stp br0 on
sudo ifconfig br0 up
dhclient br0

After sudo brctl addif br0 eth0 internet connection on my metal machine is down.

ifconfig -a
br0   Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
      inet6 addr: fe80::6631:50ff:fe86:1e92/64 Scope:Link
      UP BROADCAST MULTICAST  MTU:1500  Metric:1
      RX packets:31 errors:0 dropped:0 overruns:0 frame:0
      TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:1420 (1.4 KB)  TX bytes:168 (168.0 B)

eth0  Link encap:Ethernet  HWaddr 64:31:50:86:1e:92  
      inet addr:172.18.192.45  Bcast:172.18.192.255  Mask:255.255.255.0
      inet6 addr: fe80::6631:50ff:fe86:1e92/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:122911 errors:0 dropped:0 overruns:0 frame:0
      TX packets:94871 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:47922825 (47.9 MB)  TX bytes:11101511 (11.1 MB)
      Interrupt:20 Memory:d4500000-d4520000 

eth1  Link encap:Ethernet  HWaddr 90:00:4e:3e:04:5b  
      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:19 

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:8606 errors:0 dropped:0 overruns:0 frame:0
      TX packets:8606 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:717966 (717.9 KB)  TX bytes:717966 (717.9 KB)

tun0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
      inet addr:10.1.0.30  P-t-P:10.1.0.29  Mask:255.255.255.255
      UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:100 
      RX bytes:0 (0.0 B)  TX bytes:963 (963.0 B)

How to up an internet connection with a bridge? What did I do wrong?

share|improve this question
    
IP is not there in ifconfig for br0 . it is there in eth0 . dhclient failed ?. setup using the below link –  Ranjith Ruban Jun 19 '13 at 13:36
    
techotopia.com/index.php/… –  Ranjith Ruban Jun 19 '13 at 13:39
    
Even the MAC is wrong for br0. It should be same as eth0 MAC. –  Ranjith Ruban Jun 19 '13 at 13:42

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.