[CentOS] How to autoconfigure network?
John R Pierce
pierce at hogranch.com
Wed Sep 30 17:39:57 UTC 2009
happymaster23 wrote:
> Thank you,
>
> I am trying to make list of needed changes. So - first line of
> ifcfg-eth* is commented full name of adapter (no sense). Only one
> think that should be changed is HWADDR. This file is in three
> directories (/etc/sysconfig/network-script/ifcfg-eth*,
> /etc/sysconfig/networking/devices/ifcfg-eth* and
> /etc/sysconfig/networking/profiles/default/ifcfg-eth*).
actually, those appear to be links to the same files...
# ls -il /etc/sysconfig/network-scripts/ifcfg-eth0
2524900 -rw-r--r-- 3 root root 162 Nov 29 2007 ifcfg-eth0
# ls -il /etc/sysconfig/networking/profiles/default/ifcfg-eth0
2524900 -rw-r--r-- 3 root root 162 Nov 29 2007
/etc/sysconfig/networking/profiles/default/ifcfg-eth0
# ls -il /etc/sysconfig/networking/devices/ifcfg-eth0
2524900 -rw-r--r-- 3 root root 162 Nov 29 2007
/etc/sysconfig/networking/devices/ifcfg-eth0
note the inode# is the same on all three.
> Other thing,
> that should be changed is /etc/modprobe.conf - there should be changed
> name of driver connected to name of interface. So if I am swapping to
> Intel´s 1000 family, there should be e1000e.
>
sysconfig (8) forces the system to run /etc/rc.d/rc.sysinit upon
reboot. you might take a look at what that script is doing (a fair bit,
actually).
More information about the CentOS
mailing list