4
I have 2 Windows 10 PCs (Home edition), and I'm trying to set up a home NAS server, as shown below. I use my 2 PCs for gaming and streaming (respectively).
I have a Gigabit router, 2 USB to Gigabit Ethernet Adapters, and an Un-managed Gigabit Network switch, which connects the 2 PCs, in 2 distinct paths. So, both PCs have 2 Ethernet adapters each, and I have set static IPs for all 4 adapters. The static IPs for the Internet-facing Router are of the form 192.168.0.xxx and the IPs for the LAN-facing Switch are of the form 192.168.2.xxx (No specific reason to do this, I just wanted to easily be able to identify which network I'm dealing with just by looking at the IPs).
My goal is to make sure that my gaming and streaming are not affected by the local NAS file transfers, and also to make sure that the NAS file transfers use the full Gigabit bandwidth (I know it won't hit the theoretical maximum, but that's fine). I want to make sure that all bytes related to gaming/streaming only use the Router (192.168.0.xxx adapters) and all bytes related to NAS file transfers only use the Switch (192.168.2.xxx adapters).
I was able to establish connectivity, but I do have a few questions about this setup, could someone please help me with these?
Is this the correct way to set up the PCs, for what I want to do? Most websites talk about connecting multiple PCs to the switch, and then connect the switch to the router. But my goal was NOT to share the internet connection, I just wanted a dedicated network for NAS transfers, and a dedicated network for Internet access.
I had to set both Private and Public profile in the File and Printer Sharing Inbound Rule in Windows Firewall, without it, I wasn't able to connect to the 2nd PC using the 192.168.2.xxx IP. Is it safe to use Public profile? I have read that it should ideally only be Private profile?
I initially thought that I would get close to 1 Gbps bandwidth each on both networks, but when I ran 2 simultaneous iperf tests, I only got close to 1 Gbps in total. Based on the blinking LEDs, I'm confident that only the Router was used when I used 192.168.0.xxx in the iperf command, and that only the Switch was used when I used 192.168.2.xxx in the iperf command. Since they are technically 2 separate Gigabit networks, shouldn't I have got close to 1 Gbps speed on both networks, independently? Right now, speed is effectively being halved on both networks. There is no issue with either network, I'm able to hit Gigabit speeds when I run single iperf tests on either network, so the halving of speed is happening only when I run both iperf tests.
Internet
|
|
Gigabit Router
|
(192.168.0.xxx) | (192.168.0.xxx)
__________________|__________________
| |
| |
Windows PC 1 Windows PC 2
| |
| (192.168.2.xxx) | (192.168.2.xxx)
| |
USB to Gigabit USB to Gigabit
Ethernet Ethernet
Adapter Adapter
| |
|____________________________________|
|
|
Un-managed
Gigabit
Network
Switch
1
iPerf has some funky behavior I have run in to and really seems to blow it in certain scenarios. I suspect the problem is more with iPerf than anything else. Everything else looks correct. There’s other Speedtest tools. I’ve used a trial version of passmark performance test before as well. Give it a shot. https://www.passmark.com/products/performancetest/pt_advnet.php also, you can specify which “zone” each network is in, whether it is public or private. It is all arbitrary. https://www.opentechguides.com/how-to/article/windows-10/77/win10-change-network-type.html
– Appleoddity – 2019-12-24T14:56:50.200Your network type selection really only matters when you are truly on a public network. Like public WiFi or some other untrusted network. You technically have two “private” networks right now. You should not enable sensitive services, like file and printer sharing on public networks. So change that. – Appleoddity – 2019-12-24T15:00:19.163
@Appleoddity Windows has an issue where it NEEDS a gateway to identify a network, and a network needs to be identified to set it to private. This is the root of his issue with having to allow file sharing on public networks, Windows cannot not identify his switch network (without a gateway) and so it cannot be set to private.
https://superuser.com/questions/958298/how-to-make-windows-10-ethernet-connection-with-no-gateway-a-private-connection
Are your USB-to-network adapters USB 3.0? USB 2.0 throughput of 480Mbit & latency issues https://superuser.com/questions/697032/will-upgrading-my-usb-to-ethernet-adapter-to-usb-3-0-make-any-difference https://www.reddit.com/r/answers/comments/446es6/is_internet_through_a_usbethernet_adaptor_slower/
– gregg – 2019-12-24T15:28:17.280@gregg They are USB 3.0. And, they give me close to Gigabit speeds when used individually. The only issue is that I get low speeds when I do a bandwidth test with both networks. – ArM – 2019-12-26T12:09:31.320
@Appleoddity, thanks, will try using Passmark. – ArM – 2019-12-26T12:09:55.067