What is happening in centos 5 with network config files??? I have a machine with 2 network cards. ifcfg-eth1 keeps changing to DHCP. All my static setup is gone. Why is it doing this? How can I stop it? I run "netconfig -d eth1" and re-setup my static information. I reboot and now I am back to DHCP. I have a gigabyte motherboard, nvidia chipset. forcedeth driver. eth0 is e1000. Jerry
On 4/25/07, Jerry Geis <geisj at pagestation.com> wrote:> What is happening in centos 5 with network config files???Who knows, but lets find out.> I have a machine with 2 network cards. > > ifcfg-eth1 keeps changing to DHCP. All my static setup is gone. > > Why is it doing this? How can I stop it? > > I run "netconfig -d eth1" and re-setup my static information. I reboot and > now I am back to DHCP. > > I have a gigabyte motherboard, nvidia chipset. forcedeth driver. eth0 is > e1000.-- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
Jerry Geis wrote:> What is happening in centos 5 with network config files??? > > I have a machine with 2 network cards. > > ifcfg-eth1 keeps changing to DHCP. All my static setup is gone. > > Why is it doing this? How can I stop it? > > I run "netconfig -d eth1" and re-setup my static information. I reboot and > now I am back to DHCP. > > I have a gigabyte motherboard, nvidia chipset. forcedeth driver. eth0 is > e1000.Do you have files under /etc/sysconfig/networking/profiles/default/? -- Les Mikesell lesmikesell at gmail.com
>>Jerry Geis wrote: >>/ What is happening in centos 5 with network config files???/>>/ />>/ I have a machine with 2 network cards. />>/ />>/ ifcfg-eth1 keeps changing to DHCP. All my static setup is gone. />>/ />>/ Why is it doing this? How can I stop it? />>/ />>/ I run "netconfig -d eth1" and re-setup my static information. I reboot and />>/ now I am back to DHCP. />>/ />>/ I have a gigabyte motherboard, nvidia chipset. forcedeth driver. eth0 is />>/ e1000. />Do you have files under /etc/sysconfig/networking/profiles/default/?there are no files under this directory. Jerry
On 4/25/07, Jerry Geis <geisj at pagestation.com> wrote:> > ifcfg-eth1 keeps changing to DHCP. All my static setup is gone. > > Why is it doing this? How can I stop it?I had exactly this problem with CentOS 4 on a machine that has 2 onboard NICs plus a third NIC on a card. Now if I can just remember what I did ... The problem (as I recall) is that on each reboot the onboard NICs are being discovered in a different order, so the MAC addresses in /etc/sysconfig/hwconf don't match what is recorded in /etc/sysconfig/network-scripts/ifcfg-eth*. I believe what I had to do (I should have written it down, damn it) was hand-edit /etc/sysconfig/hwconf to completely remove all the references to the NICs (there may be more than one entry for each NIC because of the flip-flopping), edit ifcfg-eth* to remove all references to HWADDR, reboot again to let the cards be rediscovered, and then again hand-edit ifcfg-eth* to insert HWADDR lines that match the device assignments in the regenerated /etc/sysconfig/hwconf. However, I may have at least the last step of that wrong.
Jerry Geis spake the following on 4/25/2007 4:53 AM:> What is happening in centos 5 with network config files??? > > I have a machine with 2 network cards. > > ifcfg-eth1 keeps changing to DHCP. All my static setup is gone. > > Why is it doing this? How can I stop it? > > I run "netconfig -d eth1" and re-setup my static information. I reboot and > now I am back to DHCP. > > I have a gigabyte motherboard, nvidia chipset. forcedeth driver. eth0 is > e1000. > > JerryI have seen this problem with Asus MB's and the forcedeth driver. It was being blamed on Asus bios issues, but it might be a bug in the forcedeth driver. The suggestions I have seen involved putting a fixed MAC address into that interfaces config file. -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!!
i believe i had mentioned this already on this list: have had same problems with my asus m2npv-vm board (onboard forcedepth nic) the first days with the board under fedora 6 - would say no big diff's to centos- the fedora way goes: 1. move or delete /etc/sysconfig/hwconf 2. move or delete /etc/modprobe.conf 3. run kudzu afterwards => this writes new hwconf, modprobe.conf 4. bring your nic's down: ifdown ethx 5. remove the driver via modprobe -rv <your-nic-driver> (forcedepth) 5a. maybe to be sure: lsmod|grep -i <your-nic-driver> 6. reload the driver via modprobe -sv ... 7. fix your mac-addr-settings via system-config-network 8. compare your mac's in hwconf _and_ via ifconfig steps 4-6 are also performed via reboot (grrrrrrrrrr: m$ world tasks), but your are able to exclude if this files were changed again after step 3. (ls -l /etc/sysconfig/hwconf => date/time !) a hint of another problem ! if there are still diff's, then it's another problem i don't know a solution for, yet, but i remember ethx order changes and therefore mac mismatches at late fedora 5/early fedora 6 kernels. try and report ! okay ? -- ronald
>i believe i had mentioned this already on this list:>have had same problems with my asus m2npv-vm board (onboard forcedepth >nic) the first days with the board under fedora 6 - would say no big >diff's to centos->the fedora way goes:>1. move or delete /etc/sysconfig/hwconf >2. move or delete /etc/modprobe.conf >3. run kudzu afterwards => this writes new hwconf, modprobe.conf >4. bring your nic's down: ifdown ethx >5. remove the driver via modprobe -rv <your-nic-driver> (forcedepth) >5a. maybe to be sure: lsmod|grep -i <your-nic-driver> >6. reload the driver via modprobe -sv ... >7. fix your mac-addr-settings via system-config-network >8. compare your mac's in hwconf _and_ via ifconfig>steps 4-6 are also performed via reboot (grrrrrrrrrr: m$ world tasks), >but your are able to exclude if this files were changed again after step >3. (ls -l /etc/sysconfig/hwconf => date/time !) >a hint of another problem !>if there are still diff's, then it's another problem i don't know a >solution for, yet, but i remember ethx order changes and therefore mac >mismatches at late fedora 5/early fedora 6 kernels.>try and report ! >okay ?>-- > ronaldRonald, Thanks for the above. However, sadly it did not work. Also I see no way in the system-config-network to set a MAC address. I was in the character mode here not X. This is SOOO bizzar. Again, when I started I had 2 Asus M2N-MX boards. One was giving the invalid MAC address and one seemed OK. Both had the forcedeth driver loaded for onboard network. I bought 2 gigabyte motherboards (DIFFERENT BIOS) and I have the same issue. One board is working and the other is giving the invalid MAC address. Both gigabytes have the forcedeth driver. I tried loading centos 4 but it does not even recognize the forcedeth device at all. even manually loading. I'm at a loss. I have a script file that runs and sets things up the way I want after boot up. Not pretty - but I guess it works. Jerry
Jerry Geis wrote:> > Thanks for the above. However, sadly it did not work. > Also I see no way in the system-config-network to set a MAC address. > I was in the character mode here not X.VI is your friend.