PDA

View Full Version : [ubuntu] Bridging



bigbadbrad
November 20th, 2008, 10:07 PM
Hey everyone. My question is can I bridge two connection in ubuntu? I have a xbox 360 in my room but the router I have for it can't pick up our wlan but my laptop can. I just want to bridge my wlan and my lan so I can play xbox live unti l one of oure tvs gets fixed.

bigbadbrad
November 21st, 2008, 12:03 AM
Anyone?

adaptr
November 21st, 2008, 12:10 AM
Strictly speaking, this is not "bridging" as it is known in Linux/Unix.
You probably want one device to bridge two networks, but that is not the same thing.
Simply enable routing on the device by running

echo "1" > /proc/sys/net/ipv4/ipforward
and then add routes to the other side of the device on all connected devices you wish to route.

bigbadbrad
November 21st, 2008, 12:18 AM
Ok I think I understand, I'll give it a try.


bash: /proc/sys/net/ipv4/ipforward: No such file or directory


This is what I get.

adaptr
November 21st, 2008, 01:24 AM
Ok I think I understand, I'll give it a try.
This is what I get.
Sorry, that should have been

echo "1" > /proc/sys/net/ipv4/ip_forward

You might want to google for "linux routing tutorial" or something along those lines.

www.tldp.org (http://www.tldp.org)has a few good examples.

bigbadbrad
November 21st, 2008, 01:46 AM
Thanks again, I flash my router with DD-WRT and thats giving me a problem. I'll try this in the morning.