70-persistent-net.rules not created

Bruce Dubbs bruce.dubbs at gmail.com
Thu Jan 7 21:15:23 PST 2010


jmscott at setex.ipcallback.com wrote:
> Hello,
> 
> I'm having a problem with configuring the network scripts in the
> LFS book 6.5.  The file /etc/udev/rules.d/70-persistent-net.rules 
> doesn't appear to be created.  In particular, in chapter 7.13.1 is 
> the blurb of code to pre-generate the udev rules file
> 
> 	for NIC in /sys/class/net/* ; do
> 		INTERFACE=${NIC##*/} udevadm test --action=add $NIC
> 	done
> 
> followed by the blurb to inspect the 70-persistent-net.rules file.
> 
> 	cat /etc/udev/rules.d/70-persistent-net.rules
> 
> The problem is that /etc/udev/rules.d/70-persistent-net.rules is not created.
> Did I miss running a command in the previous chapters ...  perhaps
> /lib/udev/write_net_rules?
> 
> Here is the link to the web page with the code in question
> 
> 	http://www.linuxfromscratch.org/lfs/view/stable/chapter07/network.html
> 
> Also, the host os is a freshly installed Centos 5.4 server in a 
> virtualbox.com VM, all running under MAC Snow Leopard.

Does the VM have a NIC?  What are the results of

   ls /sys/class/net/

You should have a eth0.  The udevadm test generates the 
70-persistent-net.rules file:

$ cat /etc/udev/rules.d/70-persistent-net.rules
# 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.

# PCI device 0x8086:0x10de (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="00:25:64:38:ec:dd", ATTR{type}=="1", KERNEL=="eth*", 
NAME="eth0"

   -- Bruce



More information about the lfs-support mailing list