liujie 发表于 2023-4-12 09:18 不是每天,是有时候关机了,又不想跑过去按按钮…… |
自问自答,找到了一篇文章说这个
https://www.reddit.com/r/synolog ... n_parallel_for_wol/ 我和他有点类似,就是不想插1g网卡,因为我试过内置网卡和外置usb2.5g一起查,服务顺序和默认网关都设置2.5g优先,但有时候他还是会走内置1g网卡 |
liujie 发表于 2023-4-12 10:06 就跟上篇文章说的一样,插了内置网卡和10g网卡,虽然设置了服务顺序,不知道为啥群晖有时候还是会走内置网卡不走10g网卡 |
Ok, so I found a solution. To clarify, what I want to do is wake up the NAS with a 1gbit connection, that is then not used for anything else anymore.
Changing the order of cards or default gateway status in DSM by itself did not help. Windows still routed all traffic going to \\NAS_Name\ through the slow IP/network port. The trick to get it to work is to remove the slow connection from the network completely, as all the port needs to receive is the magic packet for waking up, which is connected with the MAC address, but not the IP address. To do this, after one has set up Wake-On-LAN in Synology Assistant, one just has to completely screw up the network settings of the LAN port used for WOL. I disabled IPv6 completely, and for IPv4 I disabled DHCP, and set the IP address to 10.1.2.3, the subnet to something different from my normal subnet, and deleted the entries for Gateway and DNS server. Now I can wake the NAS up, but Windows only knows the 10gbe adapter (that still has DHCP), but not the slow adapter with the messed up settings. So all traffic is nice and super fast as it should be. |
root@DownloadStation:~# sudo ethtool eth2
Settings for eth2: Supported ports: [ TP ] Supported link modes: 100baseT/Full 1000baseT/Full 10000baseT/Full 2500baseT/Full 5000baseT/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes Supported FEC modes: Not reported Advertised link modes: 100baseT/Full 1000baseT/Full 10000baseT/Full 2500baseT/Full 5000baseT/Full Advertised pause frame use: Symmetric Advertised auto-negotiation: Yes Advertised FEC modes: Not reported Speed: 2500Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on MDI-X: Unknown Supports Wake-on: pg Wake-on: g Current message level: 0x00000005 (5) drv link Link detected: yes 查看10g网卡状态,wol是g,是有效的,但在dsm里却没有这个选项,而且实际测试全是不能wol |
我黑裙,板载千兆,加了pcie i226 2.5g,虽然显示pcie开启了wol。但是实际上唤醒失败。最后只能插上2根网线使用板载来唤醒。
|
Bob猪 发表于 2023-4-12 13:36 这是个好办法,就是我上面回复的,设置两个ip、网关,默认网关就会走10g了,如果网关一样,群晖好像会千兆和10g都走 |
3008086 发表于 2023-4-13 14:51 已经设置了,这样可行,谢谢回复 |