I had an ethernet problem that Opus 5.5 says other people have been told to RMA in response to. After a little work, Opus 5.5 got it fixed. I think. I’ll update if the problem recurs.
it wanted me to wait a few more reboots before considering it fixed, but honestly if its fixed, I’ll never think about it again, so now’s the time to post.
I had the agent write me something to post here to help people having this problem.
All following text is agent generated, reviewed by myself.
Generated through agentic engineering with Claude Opus 5.5.
I’m posting this as a new topic because the thread with the matching symptoms (Failing RTL8127 on DGX Spark NIC) is closed. On my unit it turned out not to be hardware. The cause is the Realtek vendor driver r8127 that DGX OS binds to the RTL8127, and switching to the in-kernel r8169 fixed it. Read the warm-reboot caveat below before trying this.
Setup: DGX OS 7.6.0, kernel 7.0.0-1019-nvidia, r8127 11.014.00-NAPI, BIOS 5.36_0ACUM018, hardware version A.7, TP-Link Archer AX11000.
Symptoms with r8127: links at 100 Mbps under autoneg even though both ends advertise 1000baseT/Full (three different cables, several ports). Restricted to gigabit, the link never holds (retries every ~14 s). On the router’s 2.5G port it links at 2500 but flaps every 4–60 s. A laptop on the same cable and port gets a clean 1 Gbps.
Why r8169 works: the in-kernel r8169 already supports RTL8127A (it has rtl_hw_start_8127a, the PHY config, and loads rtl_nic/rtl8127a-1.fw), but 10ec:8127 isn’t in its PCI ID table. nvidia-spark-realtek-mod-options (/etc/modprobe.d/nvidia-spark-r8169.conf) aliases the chip to r8127.
Result with r8169: 1 Gbps on a gigabit LAN port, 900/900 pings over 3 minutes (0.86 ms avg, 1.55 ms max), zero errors, no flaps. Also links at 2.5G.
Warm-reboot caveat. NVIDIA moved this chip to r8127 on purpose. In this thread, r8169 made the NIC disappear completely after every warm reboot (sudo reboot). The only recovery was powering off and unplugging for 30 s, and a moderator confirmed that r8169 causes this. That unit had the same BIOS and hardware version as mine, but an older kernel (6.17.0-1008). On 7.0.0-1019 my NIC survived a warm reboot with r8169, but that is one reboot, not proof. If you try this:
- test several warm reboots;
- keep another way into the machine (e.g. Wi-Fi) while you test;
- if the NIC vanishes, power off and unplug for 30 s, then remove the two files below.
Quick test (no files):
sudo modprobe -r r8127
sudo modprobe r8169
echo "10ec 8127" | sudo tee /sys/bus/pci/drivers/r8169/new_id
To back out without rebooting: sudo modprobe -r r8169 && sudo modprobe r8127. A reboot also reverts it, but the reboot is exactly where the caveat above applies.
Persistent:
/etc/modprobe.d/zz-rtl8127-r8169.conf
install r8127 /bin/true
/etc/udev/rules.d/70-rtl8127-r8169.rules
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10ec", ATTR{device}=="0x8127", RUN+="/bin/sh -c '/sbin/modprobe r8169 && { echo 10ec 8127 > /sys/bus/pci/drivers/r8169/new_id; } 2>/dev/null; true'"
Then sudo update-initramfs -u -k all and reboot. Check with ethtool -i enP7s7 (should say r8169). To undo, delete both files, rerun update-initramfs -u -k all, and reboot.
One trap: putting the new_id write in a modprobe install r8169 … hook doesn’t work. When modprobe loads by modalias and the ID maps to two drivers, it runs r8127’s install hook but loads r8169 with a plain insmod, so the hook is skipped at boot. Hence the udev rule.
Other caveats: I have no 10G link partner, so I’ve only verified 1G and 2.5G. It’s worth rechecking after kernel updates.
If you were told to RMA for a NIC stuck at 100 Mbps or flapping on r8127, it may be worth trying this first, keeping the reboot caveat in mind.
Attribution: the diagnosis, the driver analysis and the fix were done by Claude Opus 5.5 in Claude Code. I did the cable and port swaps and the reboot validation.