Multiple routers with single switch

Forum General Networking : General Gateways, Routers and Firewalls - Multiple routers with single switch

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Hello, is it ok to have several router interfaces with different IP addreses connected to a single switch? Or do all interfaces connected to a switch need to be on the same subnet?
Let's say that the interfaces are addressed 192.168.0.1/24, 192.168.1.1/24 and 192.168.2.1/24 respectively and each of these interfaces is connected to a port on the switch. Also, each interface is a seperate Ethernet router. The interface 192.168.0.1/24 connects to the WAN or Internet. The clients connect to the other side of the other 2 router's interfaces with DHCP server on in each case. These are addressed 172.16.0.1/24, 172.16.1.1/24. So a client in one of these segments would receive an address like 172.16.0.100/24 with a gateway of 172.16.0.1.
With the routing table set up correctly in the routers does it matter that traffic from different subnets could be passing through the switch at the same time?
I hope that I have posed this clearly enough.

Sponsored Links
Register or log in to remove.

Not very clearly or organized but from what i can read why don't you setup the switch with VLANS? and continue with your setup with the above config?

------------------------------ Now Featuring:
+10 GIMP Bonus|+5 Disturbing Pics Bonus|+5 Open source adulteration.|-3 basic fixed gag | +13 aimed at Jef |
+5 Null Points(+5 too much time -5 work too much = +5 Null) |...*** GIMPAGE!! ***...

Reply to lvdax

Thanks for the reply. In a nutshell I am asking can you have routers with different subnets connected to the same switch without causing any issues?

Reply to philjray

Yes this will work but you would be better off setting up VLANS on the actual switch and segregate the different subnets from the router that way to keep things clean. Same setup as you are talking about just add VLANs on the switch.
hope this helps.
~D

------------------------------ Now Featuring:
+10 GIMP Bonus|+5 Disturbing Pics Bonus|+5 Open source adulteration.|-3 basic fixed gag | +13 aimed at Jef |
+5 Null Points(+5 too much time -5 work too much = +5 Null) |...*** GIMPAGE!! ***...

Reply to lvdax

That's great. Thanks for the answer. VLANS it is then. p.s. Happy New Year!

Reply to philjray
Tom's Hardware > Forum > General Networking > General Gateways, Routers and Firewalls > Multiple routers with single switch
Go to:

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

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

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