Deal with 80-net-setup-link.rules introduced in 209.

This commit is contained in:
ColinGuthrie 2014-02-21 07:36:45 -08:00 committed by Zbigniew Jędrzejewski-Szmek
parent 8745120c99
commit b4584342c0

View file

@ -58,9 +58,9 @@ Does this have any drawbacks? Yes, it does. Previously it was practically guaran
You basically have four options:
1. You disable the assignment of fixed names, so that the unpredictable kernel names are used again. For this, simply mask udev's rule file for the default policy: `ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules`
1. You disable the assignment of fixed names, so that the unpredictable kernel names are used again. For this, simply mask udev's rule file for the default policy: `ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules` (since v209: this file was called `80-net-name-slot.rules` in release v197 through v208)
1. You create your own manual naming scheme, for example by naming your interfaces "internet0", "dmz0" or "lan0". For that create your own udev rules file and set the NAME property for the devices. Make sure to order it before the default policy file, for example by naming it `/etc/udev/rules.d/70-my-net-names.rules`
1. You alter the default policy file, for picking a different naming scheme, for example for naming all interface names after their MAC address by default: `cp /usr/lib/udev/rules.d/80-net-name-slot.rules /etc/udev/rules.d/80-net-name-slot.rules`, then edit the file there and change the lines as necessary.
1. You alter the default policy file, for picking a different naming scheme, for example for naming all interface names after their MAC address by default: `cp /usr/lib/udev/rules.d/80-net-setup-link.rules /etc/udev/rules.d/80-net-setup-link.rules`, then edit the file there and change the lines as necessary.
1. You pass the net.ifnames=0 on the kernel command line (since v199)
## How does the new naming scheme look like, precisely?