Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Second Gateway on Windows 7

Posted on 2014-04-27
7
Medium Priority
?
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 29

Accepted Solution

by:
becraig earned 1000 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 500 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 71

Assisted Solution

by:Qlemo
Qlemo earned 500 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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
LVL 29

Assisted Solution

by:becraig
becraig earned 1000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 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