The general rule is one topic per person, per issue, irrespective of apparent similarities with other topics – each case is different (hardware used; OS and environmental factors) and should be treated on it’s own merits.
Please provide your system information according to forum guidelines (See below).
I’m sure someone will help when they are able.
Regards.
[Mini-HowTo] Provide System Information
Basic details provided by *-fetch type apps might give enough information for someone wishing to buy a computer, however, for Support purposes it’s best to ask your system directly.
Output of the inxi command will generate more useful and detailed information for those who may wish to help:
If it is still flapping, I would also test EEE/power saving before changing drivers. On some Realtek laptop NICs r8169 is fine but Energy Efficient Ethernet or the switch port negotiation causes repeated link down/up events.
Try once until the next reboot: sudo ethtool --set-eee enp5s0 eee off, then watch journalctl -k -f while moving some traffic. If that changes the behaviour, it is easier to make that one setting persistent than to swap to an out-of-tree driver. The inxi -Nazy output the moderator asked for would still help confirm the exact chip/revision.