Skip to content

Instantly share code, notes, and snippets.

@TrogloGeek
Last active August 1, 2017 16:15
Show Gist options
  • Save TrogloGeek/edf2446d9a5886a664b2 to your computer and use it in GitHub Desktop.
Save TrogloGeek/edf2446d9a5886a664b2 to your computer and use it in GitHub Desktop.
/etc/udev/rules.d/70-persistent-net.rules
#you may use `lshw -class network` to get mac addresses
#wan0
SUBSYSTEM=="net", KERNEL=="eth*", ATTR{address}=="11:22:33:44:55:66", NAME="wan0"
#lan0
SUBSYSTEM=="net", KERNEL=="eth*", ATTR{address}=="11:22:33:44:55:67", NAME="lan0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment