User Tools

Site Tools


Creating an ethernet bridge in Linux (Ubuntu).

Remove IP addresses from NIC's. Then create and set ethernet bridge to automatically get an IP address via DHCP (or a similar configuration) in order to enable bridging and making the bridge act as a single NIC.

  • sudo ifconfig eth0
  • sudo ifconfig eth1
  • sudo brctl addbr mybridge
  • sudo brctl addif mybridge eth0
  • sudo brctl addif mybridge eth1
  • sudo brctl stp mybridge on
  • sudo dhclient mybridge

In case you need to renew your ip: (also useful when it comes to ordinary NIC's like eth0 / eth1).

sudo dhclient mybridge -r

sudo dhclient mybridge

And as always - Remember - Man is your best friend!

<!-- AddThis Button BEGIN -->
<a class="addthis_button" href=";username=xa-4beeaaab61b514bf"><img src="" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src=""></script>
<!-- AddThis Button END -->

Share this knowledge with your friends!

howto_ethernetbridge.txt · Last modified: 2012/03/09 10:43 (external edit)