I upgraded my Raspberry to the current model 3B+, but I only have a 2-pair wired network connection with 100MBit. Unfortunately, auto negotiation does not work and my brandnew RPi does not have a network connection at all. If I configure the NIC manually with ethtool (sudo ethtool -s eth0 speed 100 duplex full autoneg off) I get a link and a network connection.
Is there an elegant way to configure the lan adapter permanently to 100baseT/Full that I have a network connection even after a restart/reboot?
You don’t want to apply that change to every interface (like the loopback, or WiFi), so you’d add something like this to the existing “ethtool” file
if [ "$IFACE" == "eth0" ]
then
SETTINGS="$SETTINGS speed 100 duplex full autoneg off"
fi
Put those lines right before the last line in the “ethtool” file and it should work.