LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-10-2001, 09:34 AM   #1
Nokon
LQ Newbie
 
Registered: Sep 2001
Posts: 1

Rep: Reputation: 0
Networking - Linux Hub thang


Problem: 1 linux box 2 ethernet cards (1x SMC EZ 10/100, 1x 3Com Etherlink XL Combi) -The machine sees the ethernet cards, or at least seems to.

What I want to do is link the two cards together so that I can connect a thin ethernet (BNC adaptor) to the existing twisted pair network. Alternatively you might say that I want a hub with a BNC adapter - but I'm too cheap to buy one.

The other machines on the network are Macs, but this shouldn't be a problem as I just want to route data via the linux box. (Or am I totally mistaken here?)

I've tried a few things but nothing seems to work.

Is there a web page with this kind of problem covered? I've read through the ethernet howtos, but I'm not really sure what I'm looking for.

Any help greatfully received.
 
Old 09-10-2001, 06:22 PM   #2
fishfork
LQ Newbie
 
Registered: Sep 2001
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Hi,

I'm new to linux too, so you might have to flesh out my answer from man pages and howtos a bit!

Lets call the BNC card eth0 and give it address 192.168.0.1

Similarly, the other interface can be known as eth1 and have address 192.168.1.1

(I won't go into IP addresses, its all in the HOWTOs)

The problem now is to get the linux box to examine packets from both of the networks and push them onto the other if necessary.

This is done using the route command.
I think the commands you need are
route add -net 192.168.0.1 dev eth0
route add -net 192.168.1.1 dev eth1

Of course, it would be nice if these were run automatically at startup. I have posted a question about doing this kind of thing myself!

Hope this helps,
Richard.
 
Old 09-10-2001, 11:25 PM   #3
Mr Smith
LQ Newbie
 
Registered: Sep 2001
Posts: 9

Rep: Reputation: 0
What you are trying to do is technically called a bridge. You want to bridge two networks together. One network is on eth0 and the other is on eth1. There are a couple bridging how-to's at www.linuxdoc.org

http://linuxdoc.org/HOWTO/HOWTO-INDE...html#NETBRIDGE

I currently run a linux box with three NIC's (eth0, eth1, and eth2). Only my goal was a little different. I had one network on eth1 and a different network on eth2. I didn't want them to be able to talk to each other, but I wanted both of them to be able to go through eth0 to access the internet. I used ipchains and masquerading to do it.

HTH
 
Old 09-15-2001, 08:37 AM   #4
Ript
LQ Newbie
 
Registered: Aug 2001
Location: Ohio
Distribution: RH 7.2, Coyote linux 1.30
Posts: 12

Rep: Reputation: 0
router/nat firewall

If what you want is a Router/NAT firewall for sharing an internet connection, then try LRP (linux router project) or the canned distros like Coyote Linux, or BBIagent...

http://www.coyotelinux.com/

http://www.bbiagent.net/
 
  


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
networking with router+hub mithereal Linux - Networking 3 10-30-2005 05:22 PM
New to Networking (Hub) revolutionary_era Linux - Networking 6 10-05-2005 09:30 AM
Networking + HUB = trouble nemo3383 Linux - Networking 3 11-11-2004 10:20 AM
Networking with a Hub? X3781 Linux - Networking 1 01-06-2003 08:59 PM
Trying to learn this linux thang Bodyshop40 Linux - Newbie 4 12-29-2002 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration