Bridging Wireless and Wired Interfaces in Linux
- by The Daemons Advocate
My network setup is something like:
Wireless Router <---> Netbook <---> Ubuntu Desktop
...or, more verbosely (with interfaces):
Wireless Router <--(wireless)--> (eth2) Ubuntu Netbook
Ubuntu Netbook (eth0) <---(wired)----> (eth0) Ubuntu Desktop
In a perfect world, I'd have the desktop wired, but weird circumstances combined with my wanting to understand more about networking in linux make me want to figure out how to bridge these two devices.
A bit of googling has given me this example using bridge-utils, and here's how I'm (failing) to setup the bridge (on the netbook):
sudo -i
ifconfig eth0 0.0.0.0
ifconfig eth2 0.0.0.0
brctl addbr bridget
brctl addif bridget eth0
brctl addif bridget eth2
ifconfig bridget up
...then, trying to make sure that the netbook can still get on the internets...
route add default gateway 192.168.2.1
dhclient bridget
What happens after this is that the dhclient command above (netbook) doesn't get served an IP, and the Desktop, if I run dhclient, it doesn't get served an IP.
Some weird considerations might be that I'm running the Network Manager Applet that comes with Ubuntu. While I'm sure I can get a command line wireless configuration setup, it's a bit complex.
Can someone give me a shout as to where I'm going wrong?
I'd also like to note another related question titled 'Bridging my laptop’s wireless and wired adaptors', however the setup is different to mine.