The onboard Realtek 10G NIC (driven by the in-tree r8169 module) can cycle its link
up and down because of Energy Efficient Ethernet (EEE). Disabling EEE completely is
the fix; pinning the link speed is added hardening. See
why this works rather than swapping the driver
and why pin the speed. The interface here is enP7s7 —
confirm yours. Run as root.
No extra firmware package is needed: the rtl_nic/ firmware the driver loads ships