[Most previous thread content excised because of its length.]

On Fri, Apr 09, 2010 at 11:47:59PM +0530, RSCL Mumbai wrote:
> Thx Dale. This is exactly what I was looking for.
> I have many times tried changing ifcfg-eth0 file, but always found the OS
> to still create a new interface.
> Thx. I will try this first thing Monday morning and post my results.
> 
> I have 2 servers, surprisingly one of the server has the file
> 70-persistent-net.rules, and one does not.
> 
> [r...@v4 ~]# cat /etc/redhat-release
> Fedora release 9 (Sulphur)
> [r...@v4 ~]# 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.
> 
> # Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit
> Ethernet controller (rule written by anaconda)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:19:d1:a6:fa:d3", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth0"
> 
> # PCI device 0x1106:0x3106 (via-rhine)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:22:b0:61:22:52", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth1"
> 
> # PCI device 0x10ec:0x8168 (r8169)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:19:d1:a6:f2:75", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth2"
> [r...@v4 ~]#
> 
> [r...@v44 rules.d]# cat /etc/redhat-release
> CentOS release 5.3 (Final)
> [r...@v44 rules.d]#  cat /etc/udev/rules.d/
> 05-udev-early.rules   50-udev.rules         60-net.rules         
> 60-raw.rules          90-alsa.rules         90-hal.rules         
> 98-kexec.rules
> 40-multipath.rules    51-hotplug.rules      60-pcmcia.rules      
> 85-pcscd_ccid.rules   90-dm.rules           95-pam-console.rules 
> bluetooth.rules
> [r...@v44 rules.d]# ll /etc/udev/rules.d/
> total 124
> -rw-r--r-- 1 root root   515 Jan 21  2009 05-udev-early.rules
> -rw-r--r-- 1 root root   920 Jan 21  2009 40-multipath.rules
> -rw-r--r-- 1 root root 15647 Jan 21  2009 50-udev.rules
> -rw-r--r-- 1 root root   471 Jan 21  2009 51-hotplug.rules
> -rw-r--r-- 1 root root   143 Nov 13  2008 60-net.rules
> -rw-r--r-- 1 root root  1088 Jan  6  2007 60-pcmcia.rules
> -rw-r--r-- 1 root root   452 Jan 21  2009 60-raw.rules
> -rw-r--r-- 1 root root  1823 Jan 21  2009 85-pcscd_ccid.rules
> -rw-r--r-- 1 root root   114 Jan 21  2009 90-alsa.rules
> -rw-r--r-- 1 root root    61 Jan 21  2009 90-dm.rules
> -rw-r--r-- 1 root root    82 Jan 20  2009 90-hal.rules
> -rw-r--r-- 1 root root   107 Jan 21  2009 95-pam-console.rules
> -rw-r--r-- 1 root root   292 Jan 21  2009 98-kexec.rules
> -rw-r--r-- 1 root root  2319 Jul 14  2008 bluetooth.rules
> 
> Any ideas if CentOS has an alternate location or file name.
> 
> And yes, if CloneZilla builds this feature, it will be of great help in
> HDD replication for blind restoration -- I guess this is called bear-metal
> restoration....
> 
> But well, I am more than happy with your post.
> It helps be do what I have been searching since a long time.
> 
> Cheer

The bottom line, in my opinion:

For Centos 5.3, only ifcfg-eth* need to be changed.

For recent Fedora releases (including F9), ifcfg-eth* *and*
/etc/udev/rules.d/70-persistent-net.rules will need to be changed.

Details:

You are running two systems, one with Centos 5.3 and one with Fedora 9.

Centos 5.3's ultimate upstream was Fedora Core 6.  My recent
experience on this subject is with Fedora Core 5 and modern
Fedora (F11/F12).

Sometime between FC5 and F11, the udev scripts were significantly
changed.  Presumably Centos 5.3's implementation is similar
to FC5 and Fedora 9 is similar to F11/F12.

At the time of FC5, the udev scripts did not
use /etc/udev/rules.d/70-persistent-net.rules.  Rule
/etc/udev/rules.d/60-net.rules would invoke /lib/udev/rename_device
to maintain stable NIC naming, which if I recall correctly (from
when I looked at its source) uses only HWADDR in ifcfg-* files.

Therefore, your Centos 5.3 system might be OK if all you do is
change the ifcfg-eth* files.

For more recent Fedora, Anaconda or one of the rules:
    /lib/udev/rules.d/60-net.rules
    /lib/udev/rules.d/75-persistent-net-generator.rules
will handle NIC naming.

Rule /lib/udev/rules.d/60-net.rules may invoke
/lib/udev/rename_device, which would use HWADDR and ifcfg-*",
probably more or less as in Fedora 5.

As I recall, if no HWADDR is present in ifcfg-*, then
    /lib/udev/rules.d/75-persistent-net-generator.rules
(via /lib/udev/write_net_rules) will update
    /etc/udev/rules.d/70-persistent-net.rules

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Clonezilla-live mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to