Skip to content

Instantly share code, notes, and snippets.

@geekman
Created July 4, 2016 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geekman/f6b77a084e4b51279e95b3bfda4fa7b1 to your computer and use it in GitHub Desktop.
Save geekman/f6b77a084e4b51279e95b3bfda4fa7b1 to your computer and use it in GitHub Desktop.
systemd unit to disable auto-negotiation for Ethernet ports
[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