LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to set up a bridge? (http://www.linuxquestions.org/questions/linux-networking-3/how-to-set-up-a-bridge-246340/)

Royle 10-23-2004 10:35 AM

How to set up a bridge?
 
I want to set up a network bridge to share the internet connection from my router. I don't need this bridge to have a firewall. Does anyone have a step-by-step guide for this? Thanks in advance for your help.

ugge 10-23-2004 05:16 PM

You are looking for a router. Have a look at the wiki pages of linuxquestions.org
http://wiki.linuxquestions.org/wiki/Networking
Also search around this forum for questions/answers.

Royle 10-23-2004 05:35 PM

wait I'm confused. I'm looking for a router? I already have a router connected to this pc. I want to connect this pc to another so they both can have internet. I used to have Windows XP. In that, I would select both NIC's right click and select bridge. Windows XP would create a bridge. So wouldn't that mean I'm looking for how to create a bridge?

ugge 10-23-2004 05:48 PM

Sorry to be confusing you.
Does your router have more than 1 port for local computers? If so then connect the other computer to that port.
Does your router have NAT support, then the easiest way is to buy a small ethernet switch/hub.
If your router doesn't have NAT built in then you would have to go with bridging or routing in your first computer. (This of course has the disadvantage that the first computer need to be running for the other to reach Internet).

zaicheke 10-23-2004 06:10 PM

I just built a OpenBSD bridge and I finally got it working. If you decide to make a bridge OpenBSD is a good choice. Great documentation.

Royle 10-23-2004 06:51 PM

OK I think this needs more clarification. I have this router http://www.dlink.com/products/?sec=0&pid=62 .
I have 3 computers. I have 2 computers which connect to the router. One of these it in the same room as the router, the other is connected by a 70 foot cable. The 3rd computer is in the same room as the 70 foot cable. Instead of running another 70 foot cable to the router, I would like to create a bridge between the two computers using two nics.

I tried creating a bridge using this guide here : http://www.linux.com/howtos/BRIDGE-S...e-bridge.shtml
I have ethernet bridging enabledc in my kernel and I have installed the bridge utilities. After I create my bridge, both Nic's do not have an IP address. Also when I restart my computer the bridge is not there.
Thats my situation, I hope someone can help.

baz2 10-24-2004 07:40 AM

Why not get a small switch? Connect the switch to the router with the 70 foot cable. Then plug the two computers into the switch.

zaicheke 10-24-2004 11:47 AM

A small hub is a good idea. You don't really need to set up a bridge unless you want to firewall part of your network

aus9 10-30-2004 01:49 AM

HI

hijacking thread just a little.

I have a old computer with no network card and I intend to buy a new computer with onboard ethernet.

Whats the easiest way to connect these 2 ?

just to show I know nothing about networking (dial up modem) I was hoping a usb to usb might work?

floppywhopper 10-30-2004 02:10 AM

hey Aus9
where in WA are you, I'm in Albany

One solution to your Q would be to buy a small hub
I picked up a 5 way for about $ 40
then plug in to the hub
allows for future expansion
buy a NIC ( about $ 20 ) for your old computer

for Royle's Q
a hub seems a good idea
no need to build a bridge this way

check out
http://www.faqs.org/docs/
plenty of good reading here

floppywhopper

aus9 10-30-2004 08:26 PM

floppywhopper

In the big smoke of course,

thanks for the info and the link.


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