General discussion

Locked

Static Routing between two routers

By brandis ·
I have several SOHO routers on my network. (Linksys and D-Link). I get five static WAN IPs from my DSL provider and I have segregated my network into five different segments so that the PCs behind each router would use their own gateway to the internet. Linksys recommended this and it has certainly improved my overall network performance I must say. However my network looks like five different networks and not one big network.

Now I would like to connect this five routers for the purpose of backing up each system to a tape backup drive and occassionally map a drive from one system to another.

Basically my network looks like this:

Router one = IP address 192.168.1.1
Router two = IP address 192.168.2.1
Router three = IP address 192.168.3.1
Router four = IP address 192.168.4.1
Router five = IP address 192.168.5.1

All on subnet mask 255.255.255.0. Everything on my network is static IPs, no DHCP. What I want to do is be able to link these routers via static routes. The routers are capable of this. Each router can have up to 20 routes each. (Visio Diagram here (external link to dslreports.com):
http://www.dslreports.com/r0/download/426552~bb2d9951de967c164e6e4cb20309e63c/desired_network_configuration.jpg

I have asked this question on other websites and people have been most helpful. Unfortunately most of the answers are to scrap my existing setup and all these routers and go with a multi-nat router instead. If I had it all to do over again I would certainly go with this option, however I would like to use my existing setup and use my current hardware to accomplish this.

Seems like a simple enough task.

If I use the following as an example and can get a solution then I'm sure I can figure out the rest.

Example: Router A uses IP address 192.168.1.5 and router B uses IP address 192.168.10.1.

Question: On router A what would be the correct static route information to make a route to router B?
1) Destination IP address?
2) Subnet Mask?
3) Default Gateway?

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Lot's of work... Some questions

by LordInfidel In reply to Static Routing between tw ...

First off you said that you have a single ISP, and you were issued 5 static IP's. I am assuming that they issued you a netblock.?.

IE. assuming this is a public address range:
192.168.1.1/29 255.255.255.248

This will give you a network ID of
192.168.1.1

Your Internet facing gateway would be 192.168.1.2
You would be able to use address 3,4,5,6 for hosts
Your broadcast address would be 192.168.1.7

Your router always takes an address, so that they know where to route your address block to.

Now that we got that part out of the way.

What is the reasoning for each host on your network needing a routable IP address?

Are these servers that need to host internet services? Or are these just hosts, IE machines on the network.

I ask this question because of a fundemental design issue. There is a reason why people are telling you to scrap this setup. Basically you have created more work for yourself then what is actually needed.

I'll post some different design scenarios for you.
And they do scrap your architecture. Since all you need is 1 router.

Collapse -

You can do this, but it is a mess

by paul.davis In reply to Static Routing between tw ...

Bleah.

Anyone trying to look at that image URL, cutting and pasting puts a blank space (%20) in the middle of it. Clear that space, and you can see it.

Man, that is a mess. OK, assuming those routers understand the concept of route or gateway of last resort, here is how you'd do it.

(Could be the connection to the DSL modem is auto listed as gateway of last resort - and the documentation may not tell you that.)

First, every router has to have a route to every other router. The DSL modem gets the route as gateway for everything else.

Starting with 192.168.1.5, it gets a route to 192.168.2.1, netmask 255.255.255.0, gateway 192.168.10.1.

192.168.1.5 gets a route to 192.168.3.1, same mask and gateway.

Same thing for the other two routers, and 192.168.10.1.

Then you go to the next router, set up similar routes to the other routers.

192.168.10.1 gets routes to all the other routers, same deal.

You should then be able to ping from anywhere to anywhere on your network.

Gateway of last resort should be the DSL line in every case EXCEPT 10.1. Any of the other routers would serve 10.1 as gateway of last resort, unless it gets a DSL connection sometime.

That's how you do it, but a couple of switches would have made life a whole lot simpler.

How it works - routers simply check an internal list against the packet addressing. If they can't find a specific route, they drop it on the gateway of last resort. A packet bound from 192.168.1.5 to 192.168.5.1 will be routed to 192.168.10.1

192.168.10.1 will read the packet address, and will pass it on to 192.168.5.1, which will accept the packet and put it on its network segment.

I hope that's clear.

Collapse -

Note

by paul.davis In reply to You can do this, but it i ...

In the case of 192.168.10.1, the gateway for each individual router is that routers IP address. Netmask in all instances is 255.255.255.0, except for the gateway of last resort, which probably doesn't need one.

Back to IT Employment Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums