Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.)
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.