Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Help on creating routes for two gateways

10 Aug 2015   #1

Windows 7 Ultimate x64
Help on creating routes for two gateways

Hi guys,

I searched in the forum and I couldn't find the answer to my problem, so here it is:

I need to manually configure a route in one computer that is connected to different networks, with two different gateways, one is on a cabled interface, the other uses a wireless adapter. The wireless connection is for internet, and the proper configuration is this:

Windows 7 x64
IP Address: (or any other termination needed)

The cable connection is for a dedicated server that stores images from 10 IP cameras. Any computer connected and configured in this network can use a specific program for real time monitoring. The config is as follows: (I did not configured this server)

Windows Server 2008 R2
Cameras: to 59
IP Address:
(things are messy on the server, I can post a Screenshot if needed)

A computer perfectly working and monitoring the cameras uses this configuration:

IP Address:
Gateway: or, both works
(This computer do not access internet, and is not required)

Add a computer connected to the camera server with cable interface, and connected to the internet with the wireless adapter.
Already tried to manually add a route for the internet/cameras with no succcess.

Any ideas ?
I can give more details if needed.
Thanks in advance and sorry for my english mistakes.

My System SpecsSystem Spec
10 Aug 2015   #2

7 Pro x64, 10 Pro x64

Odd that you can not set what you want with each adapter, can you post a screen shot of your network connections window. Also try leaving the gateway blank for only the lan connection so that all internet traffic goes though the wireless only and resolves correctly. Since you have two diff subnets it should just in theory work.
My System SpecsSystem Spec
13 Aug 2015   #3

Windows 7 Ultimate x64

Hi again
Here are some screenshots of the server configs:

Don't know why there are three IPs on the server o.O

And here a simple schematic of my needs:
(Ignore my Da Vinci skills)

Btw, I tried to leave an empty gateway for the Lan connection with the server, but then
I can't automatically get the gateway for the server
My System SpecsSystem Spec

14 Aug 2015   #4

7 Pro x64, 10 Pro x64

Is pc 1 only for the camera, and does your router support vlans? Why does the drawing have two connections to the switch? EDIT: also does the server get internet or is it strictly intranet?
My System SpecsSystem Spec
14 Aug 2015   #5

Windows 7 Ultimate x64

Yes, PC1 is only for the cameras and can be configured with or, both works.
The router is a Mikrotik Routerboard 1100, I'm not sure, but probably supports vlan.
The two connections are one for internet and cameras, the router is probably separating the traffic.
Yes, the server receives internet and cameras, but the internet is not the same of the PC2 connection.

Thanks for the attention
My System SpecsSystem Spec
18 Aug 2015   #6

7 Pro x64, 10 Pro x64

Sorry been busy, I wanted to let you know though that this is starting to get over my head. I do not know the perfect option you should use so I don't want to start suggesting things that would inadvertently mess up your CAM server. You might want to try to hit up a forum specific to networking questions that would know better. From what I can gather it has to do with your subnets but they seem like they are in order. I'm currently studying this stuff at the moment for the Network+, but your issue is confusing me for some reason.
My System SpecsSystem Spec
18 Aug 2015   #7

Windows 7 Ultimate x64

No problem man, appreciate your help so far.
The problem persists, I really don't want to put another computer just to browse the internet.
In fact, this is a ridiculous situation, because windows and programs can do almost anything in a computer
but I can't easily manage two connections -.-

Maybe I'm not using the route add -p correctly
All I need is to make windows understand that only the surveilance client needs to connect to that specific gateway in the LAN, the rest goes to the internet gateway on the WiFi

I will try to make other experiments, but any other idea would be good too.
My System SpecsSystem Spec
20 Aug 2015   #8

Windows 7 Ultimate x64 SP1

Any reason to have Internet IPs for the cameras and the server?

In cmd:
route print |clip
It will not print anything, paste (CTRL+V) here after running it (or just "route print" and copy-paste manually).

Anyway, try setting the gateway metric for the wireless lower than that of the wired on your PC (the command will show the value, possibly 10 for wired), so that it is preferred. Also, since there is only a switch in between server and your PC, you don't even need a default gateway for the wired connection.

(Do you have any DHCP within the network? What IP does your wired connection get if so? If your cameras and server aren't being connected to from the Internet, then I have no idea why they were given those network IDs.)
My System SpecsSystem Spec
25 Aug 2015   #9

Windows 7 Ultimate x64

HI, sorry for my delayed answer.

I'm happy to say that I was able to accomplish my objective.
The server apparently has no DHCP, cause if I don't manually input the IP, mask and gateway It does not
recognizes the connection. So I set the values manually and let the WiFi get the configs automatically.

The configuration I used is this, on LAN, for the cameras:


I'm assuming it was a problem with the Subnet Mask, not sure.

When the cameras worked fine, I connected the WiFI, and boom, it worked, both, at the same time.

Who knows....
Thanks guys for the help....
My System SpecsSystem Spec
26 Aug 2015   #10

7 Pro x64, 10 Pro x64

Glad you got it resolved thought you had tried getting stuff manually, whoops. It's always the small things.
My System SpecsSystem Spec

 Help on creating routes for two gateways

Thread Tools

Similar help and support threads
Thread Forum
Static Routes - Create or Remove
How to Create or Remove Static Routes in Windows 7 and 8 This tutorial will show you how to create or remove static routes used to override the default gateway configured for certain networks. In this section I will be describing what a routing table is and how static routes play a role in...
Configuring Static Routes
Hello and thank you for taking the time to read this post. Here is my situation: Physical server configured with one NIC card. IP address is: Physical server is acting as the domain controller and running DNS services. Physical server is running Windows Server 2012 and...
Network & Sharing
Login routes me to temporary profile
I was runnning into some external problems today with internet (a site that was getting overloaded all the time), so I decided to restart my laptop because internet was starting to lag alltogether When I rebooted, I went to enter my password, and it sent me straight to a temporary profile. I can...
General Discussion
How to configure multiple gateways
I have 2 routers, and Computers are assigned IP address through DHCP with as the default gateway. is a test router to test different rules than what are set on the router. For me to test, I usually just set the default gateway as...
Network & Sharing
Upgrade Routes
Hi everyone! Just a little one really... I've got a 3 month old from DELL, the 'FREE' upgrade is on the way, but I have a copy of W7 from MSDNAA, but when I installed it there was almost zero support for my drivers... DELL has promised a resource CD that will contain the necessary drivers, but...
Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:42.
Twitter Facebook Google+