Hello,
I have installed new network card under CentOS 5.3, but there are some problems. I want delete existing ifcfg-eth0 and automatically make new on as it is during OS installation process. Is it possible?
Thank you
Do you wish to configure it using a DHCP server?
On Wed, Sep 30, 2009 at 11:45 AM, happymaster23 happymaster23@gmail.comwrote:
Hello,
I have installed new network card under CentOS 5.3, but there are some problems. I want delete existing ifcfg-eth0 and automatically make new on as it is during OS installation process. Is it possible?
Thank you _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
No, I want create files /etc/sysconfig/network-scripts/ifcfg-eth0 and others...
2009/9/30 James Matthews nytrokiss@gmail.com
Do you wish to configure it using a DHCP server?
On Wed, Sep 30, 2009 at 11:45 AM, happymaster23 happymaster23@gmail.comwrote:
Hello,
I have installed new network card under CentOS 5.3, but there are some problems. I want delete existing ifcfg-eth0 and automatically make new on as it is during OS installation process. Is it possible?
Thank you _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
2009/9/30 happymaster23 happymaster23@gmail.com:
No, I want create files /etc/sysconfig/network-scripts/ifcfg-eth0 and others...
Try running setup
Ben
No this is not solution. I have tried to run firstboot but without result. There should be some script, that is making these files (including writing MAC address and full device name). Other thing is modprobe.conf - there is name of driver connected to device name (eth0, eth1, e.g.), but there is not solution how to change all that things when you are swapping ethernet card...
2009/9/30 Benjamin Donnachie benjamin@py-soft.co.uk:
2009/9/30 happymaster23 happymaster23@gmail.com:
No, I want create files /etc/sysconfig/network-scripts/ifcfg-eth0 and others...
Try running setup
Ben _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
happymaster23 wrote:
No this is not solution. I have tried to run firstboot but without result. There should be some script, that is making these files (including writing MAC address and full device name). Other thing is modprobe.conf - there is name of driver connected to device name (eth0, eth1, e.g.), but there is not solution how to change all that things when you are swapping ethernet card...
try sys-unconfig (8)
Thank you,
this looks good, but I don´t want unconfigure whole system...
2009/9/30 John R Pierce pierce@hogranch.com:
happymaster23 wrote:
No this is not solution. I have tried to run firstboot but without result. There should be some script, that is making these files (including writing MAC address and full device name). Other thing is modprobe.conf - there is name of driver connected to device name (eth0, eth1, e.g.), but there is not solution how to change all that things when you are swapping ethernet card...
try sys-unconfig (8)
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
happymaster23 wrote:
No this is not solution. I have tried to run firstboot but without result. There should be some script, that is making these files (including writing MAC address and full device name). Other thing is modprobe.conf - there is name of driver connected to device name (eth0, eth1, e.g.), but there is not solution how to change all that things when you are swapping ethernet card...
Basically you need to put the ethernet MAC address of the new card in the HWADDR= line of the appropriate ifcfg-eth? file. Assuming you are talking about Centos 5.x, the devices are renamed to match these files based on the hwaddr entries even if they were detected in a different order. But some conditions that I don't understand may trigger all of these files to be renamed with a .bak extension at bootup and new default dhcp configs created instead. This is never fun when your only access to the machine is through the network.
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*). 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.
Is there anything that what I forgot?
2009/9/30 Les Mikesell lesmikesell@gmail.com:
happymaster23 wrote:
No this is not solution. I have tried to run firstboot but without result. There should be some script, that is making these files (including writing MAC address and full device name). Other thing is modprobe.conf - there is name of driver connected to device name (eth0, eth1, e.g.), but there is not solution how to change all that things when you are swapping ethernet card...
Basically you need to put the ethernet MAC address of the new card in the HWADDR= line of the appropriate ifcfg-eth? file. Assuming you are talking about Centos 5.x, the devices are renamed to match these files based on the hwaddr entries even if they were detected in a different order. But some conditions that I don't understand may trigger all of these files to be renamed with a .bak extension at bootup and new default dhcp configs created instead. This is never fun when your only access to the machine is through the network.
-- Les Mikesell lesmikesell@gmail.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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).
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@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@centos.org http://lists.centos.org/mailman/listinfo/centos
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*). 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.
Is there anything that what I forgot?
I don't really know how the device detection stuff works (and haven't found much documentation), but I don't think the /etc/modprobe entries are actually necessary, at least for pci devices. You used to be able to sort-of control detection order there but I don't think that works any more and it didn't help much when you had multiple devices with the same driver anyway.
happymaster23 wrote:
Hello,
I have installed new network card under CentOS 5.3, but there are some problems. I want delete existing ifcfg-eth0 and automatically make new on as it is during OS installation process. Is it possible?
Thank you
Hi
I'm not sure if I understood your problem, but here it goes. Have you tried system-config-network? Are you using Network-Manger?
Regards
mg.