Tom's Hardware > Forum > General Networking > Network General Discussions > Setting up 2 routers and a switch
Word :    Username :           
 

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?

Sponsored Links
Register or log in to remove.

Did you set the routers default gateway correctly?

Reply to GhislainG

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

Grumpy

Reply to Grumpy9117

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)


Message edited by GhislainG on 06-14-2009 at 04:20:47 PM
Reply to GhislainG

I have a static IP that I am using. When i try to use the setup i am wanting I get a DNS error.

Reply to synapses

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.

Reply to GhislainG
Tom's Hardware > Forum > General Networking > Network General Discussions > Setting up 2 routers and a switch
Go to:

There are 1338 identified and unidentified users. To see the list of identified users, Click here.

Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them