[lfs-support] 70-persistent rules

Mike Johnston mkejohnston at yahoo.com
Wed Jan 9 04:32:13 PST 2013

From: Michael E. Maher <michael at maheronline.co.uk>
To: Mike Johnston <mkejohnston at yahoo.com> 
Cc: LFS Support List <lfs-support at linuxfromscratch.org> 
Sent: Wednesday, January 9, 2013 3:55 AM
Subject: Re: [lfs-support] 70-persistent rules

On Tue, 2013-01-08 at 11:03 -0800, Mike Johnston wrote:
> I'm using LFS 7.2 all built and is running almost fine.
> I'm trying to get multiple nics with stable names.  I have the
> 70-persistent-net.rules file set matching on mac addresses.  The
> problem is the file never seems to take effect.
> Any ideas what might cause this?  Anything in the kernel need to
> configured specifically?
> I had this working beautifully on LFS 6.3
> Thanks in advance,
>Could be any number of things

>What permissions do you have set for the file?
>Are you sure it is located in the correct directory?
I>s there anything in the output of dmesg?

>Could you share the contents of the file so we can see if there is
>something wrong with the formatting?


Here you go:

Permissions are 644 root ownership located in /etc/udev/rules.d  I'd really prefer to bus address ("KERNELS==") but that doesn't work, so I switched to MAC and still can't get it to work.
Nothing shows up in dmesg about renaming or anything like that.  It shows the driver finding the NICs and assigning them the names without any respect to my rules.

Here's the contents of the file:

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# net device e1000e
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:90:a4:9d:4f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# net device e1000e
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:90:a4:9d:4e", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Thanks again

More information about the lfs-support mailing list