IT Employment

General discussion


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
Router two = IP address
Router three = IP address
Router four = IP address
Router five = IP address

All on subnet mask 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

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 and router B uses IP address

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.

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:

This will give you a network ID of

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

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 ...


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, it gets a route to, netmask, gateway gets a route to, same mask and gateway.

Same thing for the other two routers, and

Then you go to the next router, set up similar routes to the other routers. 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 to will be routed to will read the packet address, and will pass it on to, which will accept the packet and put it on its network segment.

I hope that's clear.

Collapse -


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

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

Related Discussions

Related Forums