Connecting two switches to a router

DCal430

Diamond Member
Feb 12, 2011
6,020
9
81
I have two switches that I need to connect to a router for my house.

Should I connect Switch A to port 1 of the router and Switch B to port 2 of the router, or should I connect Switch A to port 1 of the router and Switch B to port 1 of the Switch A? Or does this not really make much of a difference.
 
Last edited by a moderator:
Feb 25, 2011
16,983
1,616
126
For most of what most people do, it won't make a difference.

I would do the first thing though.
 

PliotronX

Diamond Member
Oct 17, 1999
8,883
107
106
It wont make much of a difference performance wise but that would make switch A a point of failure for switch B then again switches fail so rarely...
 

Red Squirrel

No Lifer
May 24, 2003
69,718
13,337
126
www.betteroff.ca
Best to try to minimize daisy chaining, so switch 1 to the router and switch 2 to the router. Or get a switch with more ports.

Though either way will work and probably not really make much of a difference in terms of every day usage especially for a low traffic network.
 

DCal430

Diamond Member
Feb 12, 2011
6,020
9
81
Does the router only see the switches or does it see all of the devices attached to the switches?
 

DCal430

Diamond Member
Feb 12, 2011
6,020
9
81
My apologies, I know technically these questions belong in the networking section, but I thought I would get more responses in OT.
 

Ichinisan

Lifer
Oct 9, 2002
28,298
1,235
136
Performance difference won't really be noticeable, but you should put both switches on separate LAN ports from the router (assuming your router has a built-in switch with multiple LAN ports, as 98% of them do).

Why did you get two switches instead of one with more ports? Three power cords will be a pain to keep tidy.
 

DCal430

Diamond Member
Feb 12, 2011
6,020
9
81
Performance difference won't really be noticeable, but you should put both switches on separate LAN ports from the router (assuming your router has a built-in switch with multiple LAN ports, as 98% of them do).

Why did you get two switches instead of one with more ports? Three power cords will be a pain to keep tidy.

Because more than 30 ports were needed. These are two 24 port switches.
 

John Connor

Lifer
Nov 30, 2012
22,757
617
121
Wrong forum.

c3zUhtO.jpg
 

Smoblikat

Diamond Member
Nov 19, 2011
5,184
107
106
Plug both switches into 2 of the switch ports on the router.

The router will be able to see EVERYTHING, so dont try to hide from it.
 

ch33zw1z

Lifer
Nov 4, 2004
39,041
19,734
146
Option 1 is the best.

Option 2 would be good if you were trying to connect two rooms with multiple wired clients on each side.
 

Scarpozzi

Lifer
Jun 13, 2000
26,391
1,780
126
If both switches are unmanaged and you're not doing complex vlans, it won't matter unless you create a bottleneck somehow. If they're Gig switches or 100MB switches, just make sure the 100Mb or 1000Mb lights light up or check your cables. You want to make sure you've got max speed at full duplex. For that many hops you probably won't notice a difference.
 

ch33zw1z

Lifer
Nov 4, 2004
39,041
19,734
146
Does the router only see the switches or does it see all of the devices attached to the switches?

Assuming you're using SOHO (small office/home office) devices, so no vlans, unmanaged switches, then everything on the switches will be able to see each other. It all operates at Layer 2 of the OSI model.

If it's not standard SOHO gear, open a thread in the Networking section and post up what devices you have and what you're trying to do.
 

azazel1024

Senior member
Jan 6, 2014
901
2
76
Option 1 is the best.

Option 2 would be good if you were trying to connect two rooms with multiple wired clients on each side.

Actually the best option is to use one of the switches as the core, plug the router in to Switch 1 and the other switch in to Switch 2.

I assume the router is just handling internet traffic, if that is the case, the switch built in to the router (those LAN ports) shouldn't be used as your network's core switch. You should use one of the 24 port switches as your core, with your highest bandwidth demand devices plugged in to that and the lower bandwidth devices in to the second switch.

In general you don't want devices to have to span multiple switches in order to get to their final destination. So if a client on switch 1 needed to get to a resource on switch 2, it would have to go switch 1 -> router -> switch 2. Internet traffic is generally pretty low compared to intra-LAN traffic, so the router being the shortest hop for network clients is generally not the way you want to go.

You'll utilize the networking capabilities of the gear to the utmost that way.
 
Last edited:

DCal430

Diamond Member
Feb 12, 2011
6,020
9
81
Actually the best option is to use one of the switches as the core, plug the router in to Switch 1 and the other switch in to Switch 2.

I assume the router is just handling internet traffic, if that is the case, the switch built in to the router (those LAN ports) shouldn't be used as your network's core switch. You should use one of the 24 port switches as your core, with your highest bandwidth demand devices plugged in to that and the lower bandwidth devices in to the second switch.

In general you don't want devices to have to span multiple switches in order to get to their final destination. So if a client on switch 1 needed to get to a resource on switch 2, it would have to go switch 1 -> router -> switch 2. Internet traffic is generally pretty low compared to intra-LAN traffic, so the router being the shortest hop for network clients is generally not the way you want to go.

You'll utilize the networking capabilities of the gear to the utmost that way.

The router will also connect the wireless devices to the network and act as a DNLA server for all connected devices.
 

DCal430

Diamond Member
Feb 12, 2011
6,020
9
81
At any time 5 to 30 devices will need to be able to stream media files from the router, but this could be any connected device. It will be usually closer to 8 or so devices.
 

imagoon

Diamond Member
Feb 19, 2003
5,199
0
0
At any time 5 to 30 devices will need to be able to stream media files from the router, but this could be any connected device. It will be usually closer to 8 or so devices.

Good luck with that. I suspect the streaming will be more of a problem than the network. Unless you are streaming animated gifs or something.

Majority of DLNA routers have difficulty streaming to 2 devices if transcoding and 4-6 if just raw streaming. 30 will likely simply not work.
 

DCal430

Diamond Member
Feb 12, 2011
6,020
9
81
Good luck with that. I suspect the streaming will be more of a problem than the network. Unless you are streaming animated gifs or something.

Majority of DLNA routers have difficulty streaming to 2 devices if transcoding and 4-6 if just raw streaming. 30 will likely simply not work.

Would a good server with a good processor be better?
 

DCal430

Diamond Member
Feb 12, 2011
6,020
9
81
So the house has multiple rooms, each bed room has two ethernet ports, one will be for a entertainment portion with a TV, and one for computer or laptop, or what ever they would want to use it. There is also wifi. The living room and dining room have TVs. There are a lot of network ports in this house. They want to be able to make it so any device can stream music, movies, and what ever they want from the drive on the router.

Even if 5 devices are streaming videos from the router, and 6 devices are streaming high quality music, it will work flawlessly.
 

ch33zw1z

Lifer
Nov 4, 2004
39,041
19,734
146
It really sounds like you're planning on plugging in a USB hard drive or flash drive to the router and hoping to stream from that to multiple clients. You'll have a difficult time making that work, SOHO routers with USB sharing won't be able to keep up with your demand. You'll want a PC of some kind serving those files.
 

imagoon

Diamond Member
Feb 19, 2003
5,199
0
0
Would a good server with a good processor be better?

Transcoding (DLNA like Plex etc) is CPU limited first. Simple "streaming copies" will be a disk IO issue.

More CPU for the first, more disk drives for the second.