Closed dozer47528 closed 1 month ago
Can you fix the link speed by configuration of the switch? If you can not, could you try direct connection to PC?
I have the same issue with a Club3D USB adapter. Sporadically the link goes down and after 1-4 seconds up again.
My setup: DS918+ DSM 7.1.1-42962 Update 1 Driver 2.15.0-10 DSM7.x Cable connection to my FritzBox 6660 Router's 2.5G port.
Any suggestion?
You can isolate the cause of the problem by examining what happens when the r8152 dongle is connected to a PC, without changing the environment such as cables and switches.
I have the same problem with the same setup. DS918+, Club3D 2.5G adapter, DSM 7.1.1, direct connection with PC (Intel I226V).
For me, the probleem seems to be related to Jumbo Frames, tried MTU with 8000 and 9000. When I put my PC to sleep, Synology side keeps getting link down/up events every few seconds on the 2.5G adapter, thus preventing Synology itself from sleeping. Without Jumbo Frames, all seems to be good.
What is also strange, that after this issue occurs, then I can't use Jumbo Frames from Synology side. The drop down list doesn't have anything above 1500 MTU and the previous manually entered value of 8000 is considered invalid in DSM.
The only solution is to restart the NAS, to get a higher MTU back again.
This seems to be some sort of bug in the synology Realtek driver. Any chance of fixing it?
Also, when I unplug the Club3D adapter and put it back in again, the network interface for it does not appear in DSM. Restarting the Realtek driver package does not help. Have to restart DSM for it to start working. Hoping this could also be fixed somehow... (did not test if the interface not appearing after plugging back in, is because the MTU and link down/up issue had occured or does it not appear after a steady working state as well)
This seems to be some sort of bug in the synology Realtek driver. Any chance of fixing it?
I have no idea about driver fixes, but you might want to try a smaller MTU such as 4000.
Also, when I unplug the Club3D adapter and put it back in again, the network interface for it does not appear in DSM.
This driver does not support hot-plugging by default. To enable hot-plugging, install udev rules with the following command:
sudo bash /var/packages/r8152/scripts/install-udev-rules
The problem of unstable links may be avoided by setting the driver. https://github.com/bb-qq/r8152/wiki/Troubleshooting#fix-to-25gbps-r8152-specific
Also, can anyone confirm what happens when using the latest driver?
The problem of unstable links may be avoided by setting the driver. https://github.com/bb-qq/r8152/wiki/Troubleshooting#fix-to-25gbps-r8152-specific
Also, can anyone confirm what happens when using the latest driver?
Hello I used MTU 9000 on DS920+ with NEXI NX-U3025G(Type-A, Korea only) and r8152-geminilake-2.17.1-1_7.2.spk
sudo ethtool -s eth2 autoneg on advertise 0x802f
This command works for me perfectly No more useless logs link down & up and DDNS updates Thank you for updates
EDIT: Add DSM version with typo and something different
DSM Version: DSM 7.2-64570 Update 3
My connection like this NAS - USB-LAN - PC
And this worked only PC online If PC will be offline(shutdown), this will show a lot of logs again
I cannot really verify my claims but situation was even more dire for me. I'm using a Netgear XS508M 8 Port 10GbE Multi-Gigabit Switch for my home networking. Every link- down and up down message for the eth2 device (the Club3D usb network adapter) lead to a situation where the entire Synology froze up and wasn't reachable anymore.
I replaced the CAT 5E cable between the USB device and the switch with a CAT6 cable and put sudo ethtool -s eth2 autoneg on advertise 0x802f
in a startup script. Looks stable so far but fingers crossed because I can't really proof that it's directly linked to the external USB device.
Okay, happened again this morning. @bb-qq Could you please let me know which debugging information you need? Thanks
Could you paste the output of dmesg
here so that I would like to know exactly your situation?
[ 824.646206] r8152 2-1:1.0 eth2: carrier off
[ 828.999262] r8152 2-1:1.0 eth2: carrier on
You mean that the network is disconnected at the time these logs are displayed, right?
If so, then there is indeed something wrong with the Ethernet layer, and if it is not a problem with other 10gbps devices, I would like to try disabling auto-negotiation on the switch side, is that possible?
@bb-qq Thanks for the suggestion. Unfortunately it's not a managed switched. But thanks, will add to this issue if the problem persists.
That is unfortunate. If the problem seems to be reproduced frequently, we may be able to isolate whether the problem is on the switch side by connecting the device directly to the PC and seeing what happens.
I've been having this problem as well; carrier shutting down every minute or two for three seconds:
$ dmesg -T | tail
[Tue Feb 27 20:39:21 2024] r8152 2-1.4:1.0 eth1: carrier off
[Tue Feb 27 20:39:24 2024] r8152 2-1.4:1.0 eth1: carrier on
[Tue Feb 27 20:41:05 2024] r8152 2-1.4:1.0 eth1: carrier off
[Tue Feb 27 20:41:08 2024] r8152 2-1.4:1.0 eth1: carrier on
[Tue Feb 27 20:41:47 2024] r8152 2-1.4:1.0 eth1: carrier off
[Tue Feb 27 20:41:50 2024] r8152 2-1.4:1.0 eth1: carrier on
[Tue Feb 27 20:42:26 2024] r8152 2-1.4:1.0 eth1: carrier off
[Tue Feb 27 20:42:29 2024] r8152 2-1.4:1.0 eth1: carrier on
I've read elsewhere that turning off autonegotiation helps, and 15 minutes ago I tried it and the connection has been stable ever since:
ethtool -s eth1 speed 100 duplex full autoneg off
Wish I'd known this before I threw away my switch! :-P
@PenelopeFudd It recently switched over to a RTL8152BG device and no problems so far. Will report here if there are similar issues.
I have recently learned that this behavior may be related to Energy Efficient Ethernet. If this is the case, it can be disabled with the following command:
ethtool --set-eee eth2 eee off
This issue has been created a long time ago and I would like to close. If you still have problems, please create a new issue individually and fill out the template.
Description of the problem
I can find the log about link down and link up in synology logs.
And here is the syslog.log:
Description of your products
Description of your environment
Output of
dmesg
commanddmesg.log
Output of
lsusb
commandOutput of
ifconfig -a
command