[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How to have two gateways running in one network

Posted on 2009-04-16
Medium Priority
Last Modified: 2012-05-06
OK so bascially here is my setup is a computer running windows XP. It has 2 network cards, 1 in on the LAN and uses the IP address just mentioned. The other is connected to a modem which is shared with the network so we can access the internet. is a router on the network, it handles DHCP and ALSO acts as a modem to connect to an external network (

The problem I have is that on any given computer in the LAN if the default gateway is set to, I can see the external network but cannot go on the internet. If the default gateway is set to I can go on the internet by cannot see the external network,.

How can I change this set up so both can be viewed at the same time?
Question by:hubfub
  • 2
LVL 10

Accepted Solution

Kieran_Burns earned 1400 total points
ID: 24155352
You either set to be your default gateway and add a route on that to point to for
route add -p mask
the mask may be wrong - it depends on your remote subnet
the opposite and set the default gateway on the router to point to with a route on IT to
The problem with the latter is that you'll have traffic pinging between the two 'routers' if they are internet bound.

Author Comment

ID: 24155390

Thanks for this.

do I just put that command in cmd?

also how would i go about doing it through the GUI if it wasn;t just a command
LVL 10

Expert Comment

ID: 24155448
yep - the route add is just done through the command prompt
if you wanted to use a GUI you would have to be running Routing and Remote access and add the Static Route in there
don't forget the -p - that makes the route permanent, otherwise you lose it when you reboot
LVL 17

Assisted Solution

ccomley earned 600 total points
ID: 24155530
One trick is to enable a routing protocol between the gateway devices. That way they should share routing information and once that's done you should be able to send a packet to either one and it'll end up where it should.  Most routers at least support RIP.


If that's too much hassle, you need to break it down.

Your Default Gateway setting on all the PCs should point to the router which is the INTERNET connection, as this will be the correct destination for most traffic.

THAT router needs to have a STATIC ROUTE for the network(s) that is/are to be found via the Second router. The "next hop" for these routes should be the local IP address of the second router.

The SECOND router should have a DEFAULT ROUTE pointing at the INTERNET router so IT knows what to do with any traffic it doesn't have an explicit route for.

PCs on the network(s) beyond the second router should have as their default gateway the router on THEIR local network which connects back to your second router.


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

872 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