We help IT Professionals succeed at work.

How can I use two gateway in one LAN??????

lhbaonet asked
Last Modified: 2012-08-14
There're two office.  One main office and one branch office.  There's one leaseline link between main office and branch office for private network (without connect to Internet).  Now, branch office want to connect to the main office but can still connect to Internet in the same time.  Please help me a solution.
Watch Question

IT Consultant
This one is on us!
(Get your first solution completely free - no credit card required)

Hopefully you have a DNS server.

Set up DNS to have details of all your devices on both networks. Point all machines the clients to query the DNS server whenever they they need to find out DNS details.

Set up the DNS server to forward any unknown requests (web sites etc) to your ISP DNS servers via the branch office router ip address.
The DNS server does all the work.

Otherwise, you can  set up a proxy server and enter the details of the proxy server in each machines web browsers. In IE Tools-Internet Options- connections - LAN settings and pop the details in there.

Thats easy.  use the ip scheme from above All of your clients should point to the new internet connection device for internet.  Make sure that the device has a route to the main office segment

Route to internet ip addy) - internet device knows about
As long as your internet device knows where the next hop to the main office is your good to go!

ip route 1
There have to be two (or three) routers in the equation, and they each need to have routes to your subnets and the internet.
Let's assume you have three routers, one on each end of the leased line and one to your ISP, and that is at the main office.

The router at the branch office has to have a route to the main office's network, and a router to the internet.
The latter is known as a default route, or gateay of last resort, and sends any traffic not for the local network to the specified router. That's going to be the router at the other end of the leased line, and it in turn has to have a default route pointing to your ISP connected router. The router connected to the ISP has to have a route back to the branch, which points to the leased line router in the main office.

If you'll give us your IP blocks and the addresses and makes of your routers, we can show you an example
You'll also have to make sure your internet router will nat the branch's traffic
The above mentioned scenario exactly suits mine. I require ur

Branch Office : VPN Router      -
                         Internet Router  -

I had attached a file along with, i don't have much knowledge
in router Commands. pls explain how to configure the router
to server two gateways to my branch office.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.