Solved

Second Gateway on Windows 7

Posted on 2014-04-27
7
215 Views
Last Modified: 2014-05-23
Hi All,

For various political reason in a clients site I am the position of having 4 VLANs off 2 different routers but only 1 physical network.

My plan is to place all the printers in 1 VLAN and this works fine for all the VLANs bar 1. This is because in this particular VLAN the router providing the vlan is not the default gateway.

sooo..... on a windows 7 machine can I place a rule somewhere that all networking goes to the actual default gateway, except when it is for the printer vlan and this will go to a 2nd default gateway???

I hope this makes sense
thanks
gareth
0
Comment
Question by:gareth629
7 Comments
 
LVL 29

Accepted Solution

by:
becraig earned 250 total points
ID: 40026059
Yup by creating a persistent route


You simply indicate traffic for an address range is routed through a specific endpoint.

route -p add <destination network> mask <net mask> <gateway> <METRIC>

route add 172.16.8.0 mask 255.255.255.0 172.16.1.250

(172.16.8.0 is the subnet I want to reach, 255.255.255.0 is a /24 subnet mask of the destination I want to reach while 172.16.1.250 is my gateway).
0
 
LVL 26

Assisted Solution

by:Fred Marshall
Fred Marshall earned 125 total points
ID: 40026087
Yet, doing this PC-by-PC isn't considered to be good practice.
It's better to put the route in the gateway device.
Then there is one route to add and all the PCs can deal with it.
And, it's much easier to change.

Same idea (using Windows command line notation):
route add 172.16.8.0 mask 255.255.255.0 172.16.1.250

But there's a lot to assume about the topology here:

Is this it?

internet <> Router1 <> 3 VLANs 1-3

then where is Router2 with 1 VLAN (4) connected??  WAN side?  LAN side?
Presumably the LAN side is VLAN4 and nothing else?
How do you get connectivity between the VLANs if that's needed?
etc.
0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 125 total points
ID: 40026315
I concur with fmarshall. It is much better to have a single point of routing here, and leave the PCs and other devices alone.
Technically this is not "a second default gateway" - such does not exist, you can't have alternative default gateways (except in a failover scenario). You have less specific routes or more specific ones, with the more specific routes having precedence over the more generic ones. The default gateway describes the most generic (or least specific) route.

Don't forget you need the reverse route on your "other" VLAN to reach the other VLANs, but I assume that goes without saying.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 29

Assisted Solution

by:becraig
becraig earned 250 total points
ID: 40026333
Yup the guys are perfectly correct on making this change at as high as level as possible which makes it more manageable.

My answer was to your question specifically about doing it from a PC:

sooo..... on a windows 7 machine can I place a rule somewhere that all networking goes to the actual default gateway, except when it is for the printer vlan and this will go to a 2nd default gateway???

As Qlemo says it is not a second gateway but rather just route.
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 40087336
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
 

Author Closing Comment

by:gareth629
ID: 40087337
Thanks guys.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question