Skip to content

Instantly share code, notes, and snippets.

@samuelb
Last active October 15, 2020 15:20
Show Gist options
  • Save samuelb/be662536a2ddb97606e02ea2afb107e5 to your computer and use it in GitHub Desktop.
Save samuelb/be662536a2ddb97606e02ea2afb107e5 to your computer and use it in GitHub Desktop.
70-persistent-net.rules
# add to /etc/udev/rules.d/70-persistent-net.rules
# replace xx:xx:xx:xx:xx:xx with actual mac address and adjust the name (eth0). repeat line for every interface.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment