Created
July 4, 2016 16:29
-
-
Save geekman/f6b77a084e4b51279e95b3bfda4fa7b1 to your computer and use it in GitHub Desktop.
systemd unit to disable auto-negotiation for Ethernet ports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Disable auto-negotiation for %i | |
Requires=sys-subsystem-net-devices-%i.device | |
After=sys-subsystem-net-devices-%i.device | |
[Service] | |
ExecStart=/usr/bin/ethtool -s %i duplex full speed 100 autoneg off | |
Type=oneshot | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment