Can I connect two routers to one switch?

1

I want to connect two routers to a switch which will then be connected to a modem. Now as far as I know a switch does not do network translation and this won't work with one IP address. So I bought two addresses at my ISP.

Attached is a simple schematic that explains what I want to do.

Schematic

Is there any additional configuration needed on either of the routers (Linksys WRT54GL) to make this work or will it "Just Work"?

vanneto

Posted 2012-05-29T09:58:23.253

Reputation: 131

The question that comes to mind is what kind of Routers, how will they be configured and what purpose will they serve to clients. A typically, consumer Wireless router creates its own Subnet so it can help isolate both of them. If you are keen on dual ISP, then instead of 2 routers downstream from Switch, you'd want to look into Dual WAN Router upstream from Switch. Its not clear what equipment you are using and what you are trying to achieve. – Alex S – 2015-08-11T06:32:01.667

This will create two LANs, and clients of router 1 won't be able to talk to router 2. What are you trying to achieve here? Why are you using two routers? – David Schwartz – 2015-09-15T02:50:12.583

What exactly do you mean by "Just Work"? How are you going to use those two routers, and what functions are we validating in our answer? – Mike Pennington – 2012-05-29T10:13:32.570

By "Just Work" I mean that clients will be able to connect to either router with no problems. The routers do not need to be aware of each other, clients connecting to one router do not need to know the other even exists. – vanneto – 2012-05-29T10:19:49.467

1You don't need 2 public addresses to make this work. Just route private addresses and nat once on the modem. – Matt H – 2012-05-29T10:22:56.560

Answers

1

This should just work. But i would make sure router 1 and router 2 client sides are on different subnets.

Sibster

Posted 2012-05-29T09:58:23.253

Reputation: 784

+1 but consider providing an example of different subnets – Jeremy W – 2012-05-30T03:36:35.063

0

This question is really an old question, Hope you have already solved it, but I have some ideas to share with you.

You are talking about 2 physically separate routers connecting to PoE switch.

Yes, that is possible. You create 2 vlans on the switch. Lets say you create vlan 100 and 200, then add port,lets say 10 to vlan 100 and port 20 to vlan 200. Now you have one PC connected to port 10 and one PC connected to port 20. And don't forget to assign the IP address.

Mark Twain

Posted 2012-05-29T09:58:23.253

Reputation: 244

0

EDIT: Apparently I was wrong, you can get two different IP addresses while using one Modem to connect. When I tried doing it, it didn't work, so maybe it depends on the ISP or the modem, or maybe I didn't configure it properly...

You can use the Routers to manage the clients in two subnets and configure the routers separately.

For example, you can use one router to configure a Wireless network and the other to configure a LAN network.

Shahar

Posted 2012-05-29T09:58:23.253

Reputation: 336

not true. Business class cable or DSL will assign a small range of public IPs if asked (and paid for). – Jeremy W – 2012-05-30T03:33:48.733

AFAIK Using a regular modem will only connect one user account with only one IP address assigned to it. – Shahar – 2012-05-30T05:37:10.360

@shahar I used to have about the same setup with my cable ISP. – Sibster – 2012-05-30T06:06:52.927

0

it's just work... because switch is device to share connection. You must setting routing table and NAT for routers. in the computer client, you must fill gateway with IP address of router...

Ananda C Utama

Posted 2012-05-29T09:58:23.253

Reputation: 49