LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-03-2007, 03:12 AM   #1
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Rep: Reputation: 30
Connect 3 computers with router and crossover?


Hiya guys,

I have 3 computers, A, B, and C. A and B are both hanging off a router/switch. C is as of yet, not connected to anything. I want to connect C to the network. B, and C are geographically far away from the router, but right next to each other. I have a spare NIC and short crossover cable. Can I/How would I connect B to C with a crossover, and have C and A talk to each other?

I drew y'all a purdy diagram too.

Code:
   router               ^
    |  |                |
____|  |____            | 5 miles (creative license)
|          |            |
|          |            |
A          B........C   v

| = CAT5
. = crossover
Thanks for any help.


eh.. this is simplified. A is actually about 5 computers all over the place, so no I can't move the router.

Last edited by Ynot Irucrem; 09-03-2007 at 03:19 AM.
 
Old 09-03-2007, 04:33 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You are implying that the connection to the router is fiber. Does computer B have a fiber NIC or does it feed into a fiber transceiver?

If it is the latter, you could check if the transceiver has spare input (ethernet) ports. Or you insert a switch in between.

If it is the former, you could simply set up computer C on a different subnet, and set up a route on computer B. You will need to use computer B's second NIC IP address as the default gateway address on computer C. You also need to enable ip forwarding on computer B. ( From personal experience, I needed to modprobe the ip_conntrack module before forwarding would work. )

Your distro probably has a GUI configuration to setup the routes and enable forwarding on computer B. Look either in the networking setup or the firewall setup. You can do it in a script using either the IP command or the route command. To enable forwarding, is simple:
as root# echo 1 >/proc/sys/net/ipv4/ip_forward
 
Old 09-05-2007, 03:36 AM   #3
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Original Poster
Rep: Reputation: 30
Ah yes, IP forwarding. That's what I was looking for. Thanks.
 
Old 09-05-2007, 09:46 PM   #4
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
The post would be helpful for others if they got similar linux questions.

From the network diagram, if all connections are by ethernet, no fiber. (They could be difference of standards, config between on fiber and ethernet NIC.)

Code:
  router              
    |  |                
____|  |____            
|          |            
|          |            
A          B........C  

| = CAT5
. = crossover
The subnet of computer B and C has to be different and so the ip address class?
Quote:
If it is the former, you could simply set up computer C on a different subnet, and set up a route on computer B. You will need to use computer B's second NIC IP address as the default gateway address on computer C. You also need to enable ip forwarding on computer B. ( From personal experience, I needed to modprobe the ip_conntrack module before forwarding would work. )



and how would I have computer C and A NOT talk to each other? Please help
 
Old 09-06-2007, 01:16 AM   #5
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Original Poster
Rep: Reputation: 30
I must have filtered out where jschiwal talked about fiber. All connections are just normal Cat 5e, except of course the crossover, which is a crossover Cat 5e.

The 5 mile measurement was an embellishment intended to discourage replies of "move the router closer and use a normal Cat 5", because I don't want to do that.

To have A and C NOT talk to each other, just don't turn on IP forwarding on B.
 
  


Reply



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
I want to network 2 computers over an ethernet crossover cable rob.rice Linux - Networking 5 08-12-2007 10:59 PM
Networking two computers using crossover cable Nitin Bhumkar Linux - Networking 5 01-15-2007 04:56 AM
2 Computers LAN Crossover Samba azuiden Linux - Networking 1 11-15-2005 06:06 PM
Connect multiple computers behind a broadband router timyaukey Linux - Networking 4 07-03-2004 08:44 AM
computers, crossover cables & internet, Oh My! Imyrryr Linux - Networking 6 06-02-2004 11:31 PM

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

All times are GMT -5. The time now is 08:39 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