1 |
On 2013-04-03 6:28 PM, Mick <michaelkintzios@×××××.com> wrote: |
2 |
> On Wednesday 03 Apr 2013 20:46:37 Bruce Hill wrote: |
3 |
> |
4 |
>> Therefore, all's well that's still working! And AFAIR, on at least 2 of |
5 |
>> those machines, the 70-persistent-net.rules was never something I did |
6 |
>> manually. |
7 |
|
8 |
> Right, it used to be auto-generated by udev scripts. With udev-200 you are |
9 |
> meant to remove it along with any other files from your /etc/udev/rules.d/ |
10 |
> |
11 |
> If you left them there and their syntax is still valid, then udev will parse |
12 |
> them and do as is told. |
13 |
|
14 |
Ok, so... |
15 |
|
16 |
I just realized that my current/existing 70-persistent-net.rules syntax |
17 |
is different from the 'old format' referenced in the udev upgrade news |
18 |
item. I have: |
19 |
|
20 |
> # This file was automatically generated by the /lib/udev/write_net_rules |
21 |
> # program, probably run by the persistent-net-generator.rules rules file. |
22 |
> # |
23 |
> # You can modify it, as long as you keep each rule on a single line. |
24 |
> |
25 |
> # PCI device 0x10de:0x0057 (forcedeth) |
26 |
> SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:e0:81:54:9c:8b", KERNEL=="eth*", NAME="eth1" |
27 |
> |
28 |
> # PCI device 0x10de:0x0057 (forcedeth) |
29 |
> SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:e0:81:54:9c:8a", KERNEL=="eth*", NAME="eth0" |
30 |
|
31 |
Note the 'DRIVERS==' and 'KERNEL==' items that are not showing in the |
32 |
news item example for the old format, as well as the LACK of the |
33 |
'ACTION==' item... is this dependent on the interface type? Or is mine |
34 |
'wrong' (and just has been working by accident all these years)? |
35 |
|
36 |
So, now I'm even more confused. |
37 |
|
38 |
If I just want to totally disable the new behavior and keep the old, I |
39 |
know I just add 'net.ifnames=0' on the kernel command-line, but... |
40 |
|
41 |
Do I just rename the above file to something like |
42 |
'70-my-net-names.rules', keeping the content the same? |
43 |
|
44 |
Or do I need to edit the lines? And if so, to what? Do I remove the |
45 |
'DRIVERS==' and 'KERNEL==' items and add the 'ACTION==' item? |
46 |
|
47 |
Do I change the eth0 to net0 (and create the symlink and update |
48 |
rc-update as discussed earlier)? |
49 |
|
50 |
crap-crud... |