LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-09-2004, 01:37 AM   #1
munkeevegetable
LQ Newbie
 
Registered: Oct 2004
Location: Melbourne, VIC, Australia
Distribution: Ubuntu Debian
Posts: 20

Rep: Reputation: 0
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.

Edit:-
The wireless card in my PIII connects to the router, I want to use ethernet between my two computers.
 
Old 10-09-2004, 01:46 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i didnt try bridge b4.
but i know a link that may help u:
http://bridge.sourceforge.net/

good luck.
 
Old 10-09-2004, 01:52 AM   #3
munkeevegetable
LQ Newbie
 
Registered: Oct 2004
Location: Melbourne, VIC, Australia
Distribution: Ubuntu Debian
Posts: 20

Original Poster
Rep: Reputation: 0
thanks for the link, ill check it out
 
Old 10-09-2004, 06:55 AM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
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 0.0.0.0; ifconfig wl0 0.0.0.0
up the device: ifconfig br0 up

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

there are bridge howtos at www.tldp.org

sl mritch.
 
Old 10-09-2004, 10:56 PM   #5
munkeevegetable
LQ Newbie
 
Registered: Oct 2004
Location: Melbourne, VIC, Australia
Distribution: Ubuntu Debian
Posts: 20

Original Poster
Rep: Reputation: 0
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
--Nathan
 
Old 10-10-2004, 07:11 AM   #6
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
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.
 
Old 10-10-2004, 07:15 AM   #7
munkeevegetable
LQ Newbie
 
Registered: Oct 2004
Location: Melbourne, VIC, Australia
Distribution: Ubuntu Debian
Posts: 20

Original Poster
Rep: Reputation: 0
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?
--NB
 
Old 10-10-2004, 09:54 AM   #8
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
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.
 
Old 10-10-2004, 09:59 AM   #9
munkeevegetable
LQ Newbie
 
Registered: Oct 2004
Location: Melbourne, VIC, Australia
Distribution: Ubuntu Debian
Posts: 20

Original Poster
Rep: Reputation: 0
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
--NB
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up a Red Hat 9.0 system as a bridge qqbeng Linux - Networking 1 04-11-2005 11:40 PM
How to set up a bridge? Royle Linux - Networking 10 10-30-2004 08:26 PM
How to set up a bridge? tlawlessrr Linux - Networking 6 07-17-2004 10:39 AM
Best way to set up a wireless to ethernet bridge? Electrode Linux - Wireless Networking 1 10-11-2002 11:52 PM
bridge Cubiq Linux - Networking 9 08-10-2002 11:13 AM


All times are GMT -5. The time now is 08:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration