Created
March 12, 2024 01:59
-
-
Save bo33b/9327ad5cc35fc50c782bf1561ef79ba3 to your computer and use it in GitHub Desktop.
RasPi statically link network interface names to mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create file /etc/udev/rules.d/72-static-name.rules | |
# Add these, changing the mac addresses accordingly. | |
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:01", KERNEL=="e*",NAME="eth1" | |
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:02", KERNEL=="e*",NAME="eth2" | |
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:03", KERNEL=="e*",NAME="eth3" | |
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:04", KERNEL=="e*",NAME="eth4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment