Skip to content

Instantly share code, notes, and snippets.

@neofob
Last active March 23, 2018 03:53
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 neofob/585022a8e00e215cd1c76b83a66dd6ac to your computer and use it in GitHub Desktop.
Save neofob/585022a8e00e215cd1c76b83a66dd6ac to your computer and use it in GitHub Desktop.
persistent network interface name
# /etc/udev/rules.d/70-persistent-net.rules
# ln -sfn /dev/null /lib/udev/rules.d/80-net-setup-link.rules
# Ref: https://unix.stackexchange.com/questions/328485/ubuntu-16-04-change-interface-name
# PCI device 0x10ec:0x8xxxx (ethernet_module_here)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="3x:17:ef:6f:s2:2h", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment