[CentOS] How to autoconfigure network?

happymaster23 happymaster23 at gmail.com
Wed Sep 30 20:40:42 UTC 2009


Yes, you are right. You can delete all three files and make new one in
/etc/sysconfig/network-scripts/. Other two files are automatically
"created" by running setup command (choose device and  then save
properties).

So, thank you very much everybody. I think, that now is everything OK
(changes in modprobe.conf and in ifcfg-eth0 mirrored to other
directories), network is working well.

2009/9/30 John R Pierce <pierce at hogranch.com>:
> 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).
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



More information about the CentOS mailing list