Skip to content

Instantly share code, notes, and snippets.

@haebler
Last active September 3, 2018 13: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 haebler/7f16bd274a3a7f095cda9f6248a33935 to your computer and use it in GitHub Desktop.
Save haebler/7f16bd274a3a7f095cda9f6248a33935 to your computer and use it in GitHub Desktop.
udev rule for setting MAC address of one of those dm9601 USB 2.0 ethernet adapters. Thanks to btidey on the Raspberry Pi forums for figuring it out - see https://www.raspberrypi.org/forums/viewtopic.php?t=217941
# replace XX:XX:XX with a suitable set of octets - left vendor OUI part of MAC untouched for tracability in your network
ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="00:e0:4c:53:44:58", RUN+="/sbin/ip link set dev %k address 00:e0:4c:XX:XX:XX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment