-   Linux - Networking (
-   -   how to set up bridge? (

munkeevegetable 10-09-2004 02:37 AM

how to set up bridge?
Okay I have 2 computers to put on my home network.
I have a wireless card in my PIII box (on Ubuntu Debian), and I'd like to set that up as a bridge to my P4 box, which is on Win2k.
How do I do this? I don't know the first thing about bridging and my brother (who has helped me with all other linux problems so far) has no idea either.

I went through the forums here, but others seem to just recommend to buy another router/AP/switch, this is NOT an option as I don't want to spend any money.

The wireless card in my PIII connects to the router, I want to use ethernet between my two computers.

maxut 10-09-2004 02:46 AM

i didnt try bridge b4.
but i know a link that may help u:

good luck.

munkeevegetable 10-09-2004 02:52 AM

thanks for the link, ill check it out :)

mritch 10-09-2004 07:55 AM

have a kernel with bridging enabled and the bridge utils.
addthe bridge: brctl addbr br0
add the interfaces: brctl addif br0 eth0; brctl addif br0 wl0
zero the ifaces: ifconfig eth0; ifconfig wl0
up the device: ifconfig br0 up

you can also assign a ipaddress to br0 with the specific ifconfig command

there are bridge howtos at

sl mritch.

munkeevegetable 10-09-2004 11:56 PM

got the bridge going..
i just used aptitude to install bridge-utils.
then i had set up the bridge.. after i had zeroed my IP's on both IFs i couldnt get access to anything..
so i reset both interfaces as i originally had them.
(one using static on home network, second using pointtopoint static between the two computers)
bridge worked fine, even without it configured in brctl.. which is strange.
then i set up squid, so i have internet proxy too.. which is nice. :P
thanks for the help

mritch 10-10-2004 08:11 AM

read the bridge howto at tldp. i don't think you have set up a bridge properly. i rather think you're just forwarding the traffic.

to verify this: "ifconfig" there should show up a bridge
"brctl show" to get a list of your configured bridges.

sl mritch.

munkeevegetable 10-10-2004 08:15 AM

yeah, i dont think i have my bridge up properly. but i -can- get internet etc. on both PCs.. which was the most important thing, thats what i thought the bridge would do..
would there be any extra advantage to setting up the bridge properly?

mritch 10-10-2004 10:54 AM

you can do a lot of fancy things with a bridge. think of a bridge as kind hub or switch.
to get/share and internet connection just routing and forwarding or filtering traffic is enough.

one cool feature to do with an bridge is to not assign an ip address to devices but filter the packets going trough it. in fact this is a completely invisible firewall or loging-host or whatever you want to do then.
very useful to get good security on a nearly uncompromiseable box.

sl mritch.

munkeevegetable 10-10-2004 10:59 AM

hmm, i think ill have a go at setting up the bridge properly then, sounds kinda neat ^_^
but if i dont manage to, then its not too important..
i'll just go through the howto again, and set it all up that way..
and once again thanks a lot for your help mritch :)

All times are GMT -5. The time now is 02:19 PM.