Advertisement

Routing

Started by June 20, 2002 08:27 AM
2 comments, last by Armera 22 years, 7 months ago
I have a couple of questions regarding routing. I have three computers at home. My workstation is running windows and I have two servers running linux (2.4.18). Now, my workstation has one ethernet card, my main server has two ethernet cards and my other small server has one ethernet card. I know I should be running class C instead of B here but I plan to add alot more computers very soon. Here is my current configuration: Workstation IP: 172.16.3.30 SN: 255.255.255.0 GW: 172.16.3.1 Server 1 IP: 172.16.3.40 SN: 255.255.255.0 GW: 172.16.3.1 IP: 172.16.5.40 SN: 255.255.255.0 GW: 172.16.5.1 Server 2 IP: 172.16.5.50 SN: 255.255.255.0 GW: 172.16.5.1 What I want this to do is make it so my workstation can talk to server 2. I have read some documentation on using gated and routed on linux but I don''t really know how to set it up. Which one would I use? Would I have to add some static routes? Would I have to create a /etc/gateways? Would I also have to change the default gateways on the cards? Any help would be appreciated.
It's not reverse engineering, unless you get caught.
Just a quick question or two, are you using any rooting devices or other boxes dedicated as rooters? Or are you just going to let server 1 act as the rooter to get on to your 172.16.5.0 network?

so it would look like this if a packet gets rooted:

workstation --> server1 ---> server2

and the reply would like like this:

server2 --> server1 ---> workstation

You may have to experiment with the static routes.
Hitchhiker90"There's one bitch in the world, one bitch with many faces" -- Jay"What are you people, on dope?" -- Mr. Hand
Advertisement
I dont have any hardware routers. I just want to implement it in software using linux(server 1). Does that help?
It's not reverse engineering, unless you get caught.
quote: Original post by Armera
I dont have any hardware routers. I just want to implement it in software using linux(server 1). Does that help?


What you can do is set the routes up using the route command. Do a man of it to learn how to use it. It should work fine. I have that same type of setup for a School project we're working on( except we have to split it into 3 segments ) and it works fine, the difference is that we have 1 novell server on segment 192.168.22.1/24, 1 Linux server on segment 192.168.23.1/24 and 2 NT 4.0 software routers on segment 192.168.21.108/24 and 192.168.21.104/24 ( using CIDR to denote the addresses since it's simpler than writing subnet 255.255.255.0 for each addr I type in ). Anyhow, we have it set up so that the Linux server is able to see and use the Novell shares and NT shares, Novell is able to see and use the Linux and NT shares, and finally, the NT machines are able to see and use the Linux and Novell shares. All of that with only one Username and Password for all machines including the Linux and Novell and NT machines. It's the first interesting assignement we get. If you encouter any problems give a bit more details as to what you have tried so we can try and help a bit more.

Anyhow, hope this helps. Sorry, I sometimes get carried away when I post replies. Especially when they're about a topic I find interesting... Like Linux... hehehehe...



"DaHjajmajQa'jajHeghmeH!"

Cyberdrek
danielc@iquebec.com
Founder
Laval Linux

/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash

[edited by - cyberdrek on June 21, 2002 7:04:26 AM]
[Cyberdrek | ]

This topic is closed to new replies.

Advertisement