Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a netbook that I want to set up as a bridge (that's the only thing I want it to do, I don't use it for anything else anymore). I want to bridge wlan0 to eth0 (see picture below)

Ethernet Cable: ===>

Wireless: ) ) )

internet ===> modem ===> router ) ) ) netbook ===> switch ===> LAN

Right now I have Lubuntu 12.04 installed on my netbook with the wlan0 connection set to Shared so that my LAN has internet access through the wireless connection (which is what I want). The problem however is that Ubuntu does this by making its own network (with a different DHCP) so that the IP address of my netbook is in the (from wlan0) range but any computer on my LAN gets an IP address in the (from eth0) range.

So my question is:
Is there an OS that I can install on my netbook that can easily set up a bridge?

I tried Untangle but it doesn't currently support bridging a wireless connection to a wired connection.

share|improve this question
up vote 1 down vote accepted

The ability to bridge interfaces is inherent with the Linux 2.4 and 2.6 kernel series. Ubuntu and Lubuntu both include the requisite code.

You want the "brctl" command. Ubuntu man page here.

Essentially, you will:

  • Create the bridge via: brctl addbr (name)
  • Add interfaces to the bridge via: brctl addif (brname) (ifname)

If you have other bridges on your LAN/network, be mindful of bridging loops and possible spanning tree issues.

share|improve this answer
I was hoping for a router OS that i could install on my netbook since i dont need a full fledged desktop OS – Rapture Sep 21 '12 at 20:34
As I mention, any Linux distribution using either the 2.4 or 2.6 kernel will have the ability to use the 'brctl' command. There are many Linux "router OS" distributions. This link will give you a starting point: – John Sep 23 '12 at 6:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .