Switch and Router on same subnet?

Cyber_Akuma

Distinguished
Oct 5, 2002
451
12
18,785
The ultimate setup thread mentioned only connecting routers together, and it would be cheaper (would it?) to get a new router and a switch instead of two routers of the same type.

I admit I don't know much about networking. I tried Googling, but kept getting results about people asking what the difference between a switch and a router is, or how to set up two subnets on one router or switch.

My current router is pretty old, its a V2 WRT54GS. I don't want to let it go but the lack of WiFi-n and Gigabit can get limiting, especially when sending large files across systems on a network or streaming video.

However, I have another issue that wouldn't really be resolved by replacing it anyway, the fact that most if not all home routers have 4 Ethernet ports max. The amount of wired devices I use in the same area is increasing, and while I can switch some of them to wireless to make room for the wired-only ones, I would prefer not to. Some of these are multimedia or gaming devices and I would prefer the lower latency as well as higher LAN network speeds of Ethernet for them. I was told that I can connect a switch to my router and have everything act as if its on the same subnet.

Would it work this way? Will devices plugged directly into the router and those on the switch act as if they are on the same subnet and see each other without issue? Wouldn't this cut down on the speed of the devices if I have several plugged into the switch since they are sharing the single port the switch is plugged into the router with? Would it be better to get a switch with several gigabit ports and just plug everything into that for LAN speed? Its not like the WAN connection will come anywhere even close to 100Mbit, much less Gigabit, but would that still cause a bottleneck if several devices are trying to access the WAN over a switch that is plugged into a single port on the router, or no? Or would it be better to plug as many devices as I can into the router and the rest into the switch?

P.S. I use static IPs because I like to know which device has what IP to communicate with them directly if need be, and the WRT54GS has no way for my to reserve an IP based on port, MAC, or anything. Would that cause a problem? Is there any way to assign/reserve IPs on the newer routers (especially Linksys) with their stock firmware so I can switch to DHCP for guest devices?
 
You are correct you want to move everything to the switch and only use a single connection to the router. The switch connects all the ports though its back plane and run at full wire speed. All the machine will talk directly to each other via mac addresses and never pass the traffic though the router.

The only traffic that should go to the router would be traffic designed for the internet. I doubt you have 100m internet connection and even if you did the router will not be able to NAT 100m/sec of traffic.

With DHCP you have 2 options. Assign your static ip to the machine outside the range the DHCP server is giving out. Many routers the DHCP range starts at 100 so the first 98 addresses are free. Option 2 is if the router has a reservation feature then you can have is always give out the same address to the same mac.
Of course there is the hack option which is to assign your static from the highest numbers in the subnet and hope the DHCP server never gets that high.