Sign in with
Sign up | Sign in
Your question

Setting up 2 routers and a switch

Last response: in Networking
Share
June 13, 2009 7:04:40 PM

I have an Internet connection through a cable broadband modem. I am wanting to connect it to a Linksys 5-Port switch then go from that switch to two routers. One is a wireless the other is not... both are NAT enabled. When i connect them this way i cannot see the internet through either router. Everything on the internal network can be seen but no internet will get past the switch.

What do I need to do to see the internet?

More about : setting routers switch

June 14, 2009 1:53:05 AM

Did you set the routers default gateway correctly?
Anonymous
June 14, 2009 11:01:03 AM

Won't work unless you pay for more than 1 IP address from your ISP.

Grumpy
Related resources
June 14, 2009 2:06:27 PM

Only one IP address is required, but the network needs to be properly configured. If the Internet IP address is dynamic (very likely based on the initial post), then the modem can't be connected directly to a switch. It has to be connected to a router with NAT capabilities.

Modem <---> Router 1 <---> Switch <---> Router 2 (can also be connected directly to Router 1)

This way Router 1 will provide access to the Internet. The Internet connection on Router 2 requires a static IP address and it's default gateway has to be Router 1. As long as routing is properly configured, it will work just fine. I've had a similar setup (with added complexity) for several years.

Example:

Router 1
LAN IP address 192.168.1.1
NAT range 192.168.1.100 - 192.168.1.120
Internet IP address: Dynamic (provided by the ISP)
Route traffic to network 192.168.2.0 mask 255.255.255.0 to 192.168.1.2 (the other router) or use dynamic routing (RIP has to be enabled on both routers)

Router 2
LAN IP addres 192.168.2.1
NAT range 192.168.2.100 - 192.168.2.120
Internet IP address: IP address 192.168.1.2 (connected to Router 1 or the switch)
Gateway IP address: 192.168.1.1 (Router 1 IP address)
June 14, 2009 2:29:50 PM

I have a static IP that I am using. When i try to use the setup i am wanting I get a DNS error.
June 14, 2009 4:25:49 PM

Even though you have a static IP address, you still need to connect a router to the modem, not a switch. The problem is that a switch doesn't do NAT and you absolutely need one to translate the single Internet IP address to multiple internal IP addresses.

What you're trying to achieve is very similar to what I have, but my setup is a bit more complex due to a corporate VPN. In your setup, you need to specify the IP address of the DNS on both routers if they are DHCP servers.
April 28, 2014 1:49:13 AM

I am trying to do a similar thing. My modem is connected to isp via fiber optic cable. And the modem itself has 4 ports. Port No.1 is connected via ethernet to wifi router which gets bogged down with various connections from my family of 8. So I decided to connect another wifi router to Port No.2 and use that personally for torrents etc so the household load is divided between two routers. But when I try to connect it it doesn't go through with the connection. Seems that only Port No.1 is accessible. Now I read here that having a primary router is absolutely necessary, but let's say I connect another secondary wifi router to the primary router that is plugged in Port No.1 and I torrent on the secondary one, wont it bog down the primary one anyways?
What I want is two separate machines, one for torrents, one for everything else. Or else a solution to torrent peacefully.

Thanks.
!