I have 2 machines – 1 is my windows PC, the other is my NAS, running linux.
They’re both connected to the internet via my router with a 1G ethernet link. But they’re DIRECTLY connected via 2.5G ethernet link.
How can I force windows to use the 2.5G link preferentially?
Currently when I copy files the speed is limited to 1G. If I disconnect the 1G link, I get the full 2.5G speed. The moment I reconnect, I’m back down to 1G.
It used to work before (I don’t know how), but my windows install got botched and I had to reinstall windows. Now I can’t get it to work.
Things I’ve tried that don’t work:
- Restarting everything (I think that’s what fixed it before).
- Removing and re-adding the shared drives.
- Setting a custom metric for both connections (800 for the slow connection and 5 for the fast one).
- Manually adding a route
If I disable the 1G, I can get faster speed for about 5 min, then it reverts back to 1G.
As requested by comments, the IP addresses are
1G: 192.168.0.2 (windows) / 192.168.0.5 (nas)
2.5G: 192.168.10.2 (windows) / 192.168.10.5 (nas)
Meanwhile I also performed an iperf test and was able to get 2.5G throughput – so perhaps this is a problem with SMB?
iperf -s -B 192.168.10.5 (nas)
iperf -c 192.168.10.5 -P 2 -i 5 -t 20 (windows)
= [SUM] 0.00-5.00 sec 1.45 GBytes 2.48 Gbits/sec