User Tools

Site Tools


howto_ethernetbridge

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 0.0.0.0
  • sudo ifconfig eth1 0.0.0.0
  • 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!

Bookmark and Share

Share this knowledge with your friends!

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