10-28-2010 12:51 PM - edited 03-04-2019 10:17 AM
I have this network setup
LAN ----------- Rtr1------------Rtr2--------------WAN Rtr
I want to setup static routes to make this work.
My 3 networks are: 220.10.5.32 , 64, 96 / 28
My question is this. On the WAN Rtr to route to the two LAN networks will I need two different ip route commands since there's two networks or can it be done with just one?
ip route 220.10.5.32 255.255.255.240
and
ip route 220.10.5.64 255.255.255.240
I know dynamic routing would be the choice here but I want to use static.
Thanks in advance
Solved! Go to Solution.
10-28-2010 01:12 PM
To give really good answers we need to know a bit more about your network. You describe 3 subnets as /28 networks. 220.10.5.32 , 64, 96 / 28. So you have a subnet at 220.10.5.32/28. There is a subnet at 220.10.5.48/28 which you do not tell us about. Is it in the network somewhere? Do you care about it? Similarly after 220.10.5.64/28 there is subnet 220.10.5.80/28 and after 220.10.5.96 there is 220.10.5.112/28. Do you care about these subnets?
If you do not care about any of those subnets, then it would be possible to create a single static route on your WAN router that would forward to all 3 subnets. If the other subnets are anything that you do care about (and that would include the possibility to route to them if they were on the provider side of the WAN router) then you would need a specific /28 static route for each of the subnets.
If you know the topology of the network you can decide whether it is safe to use the single static route. Without knowing the details, the safe answer would be to use the 3 specific static routes.
HTH
Rick
10-28-2010 01:12 PM
To give really good answers we need to know a bit more about your network. You describe 3 subnets as /28 networks. 220.10.5.32 , 64, 96 / 28. So you have a subnet at 220.10.5.32/28. There is a subnet at 220.10.5.48/28 which you do not tell us about. Is it in the network somewhere? Do you care about it? Similarly after 220.10.5.64/28 there is subnet 220.10.5.80/28 and after 220.10.5.96 there is 220.10.5.112/28. Do you care about these subnets?
If you do not care about any of those subnets, then it would be possible to create a single static route on your WAN router that would forward to all 3 subnets. If the other subnets are anything that you do care about (and that would include the possibility to route to them if they were on the provider side of the WAN router) then you would need a specific /28 static route for each of the subnets.
If you know the topology of the network you can decide whether it is safe to use the single static route. Without knowing the details, the safe answer would be to use the 3 specific static routes.
HTH
Rick
10-28-2010 01:26 PM
Youre right I should have put networks 220.10.5.16, 32 , 48 / 28.
Ok so I was not too far off thinking to use separate routes for each network.
thanks a bunch.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide