I'd suggest looking around the ifcfg-eth* files (somewhere in /etc/sysconfig/network-scripts I think) nad commenting out HWADDR= lines, if that works, then try reversing the HWADDR lines - this will reverse the numbers of the ethernet cards (ie making eth0 eth1 and eth1 eth0) but should result in a stable configuration till next hardware change. And you problem? IMHO, when the system boots up, one card gets the name eth0, the other eth1, when checking HWADDR the first eth0 card matches the ifcfg-eth1 HWADDR MAC address and is thus renamed to eth1, which fails, since eth1 already exists, and thus gets a random name, while the second eth1 matches the ifcfg-eth0 HWADDR MAC address and is thus renamed to eth0. In the end the physical eth1 is eth0 and the physical eth0 gets a random dev* name. This should probably be fixed sometime... first rename all devices to random names and only afterwards rename then to eth* according to the configuration files. Cheers, MaZe. PS. alternatively you can open the case and switch the two network cards, they'll be detected in reverse order and the previous renaming problem should vanish. On Mon, 9 May 2005, Michael Rock wrote:> btw - the two NIC cards are identical Intel Pro100S > and I also tried latest drivers. > > --- Michael Rock <mikerocks65 at yahoo.com> wrote: >> Hi, I have a problem when adding a second NIC card. >> It will not configure to eth1 and keeps changing its >> device name on reboot to dev and a number, like >> dev8761. >> >> I tried changing BIOS setting, plug/play on/off and >> forcing IRQ for PCI slots. But no difference. >> >> centos-3-4.2 >> >> Any ideas? thx >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> http://lists.centos.org/mailman/listinfo/centos >> > > > > __________________________________ > Do you Yahoo!? > Make Yahoo! your home page > http://www.yahoo.com/r/hs > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Also......check the files in the directory /etc/sysconfig/networking/profiles These have a habit of overriding all the other settings.... P. + Maciej Zenczykowski wrote:> I'd suggest looking around the ifcfg-eth* files (somewhere in > /etc/sysconfig/network-scripts I think) nad commenting out HWADDR= > lines, if that works, then try reversing the HWADDR lines - this will > reverse the numbers of the ethernet cards (ie making eth0 eth1 and > eth1 eth0) but should result in a stable configuration till next > hardware change. > > And you problem? IMHO, when the system boots up, one card gets the > name eth0, the other eth1, when checking HWADDR the first eth0 card > matches the ifcfg-eth1 HWADDR MAC address and is thus renamed to eth1, > which fails, since eth1 already exists, and thus gets a random name, > while the second eth1 matches the ifcfg-eth0 HWADDR MAC address and is > thus renamed to eth0. In the end the physical eth1 is eth0 and the > physical eth0 gets a random dev* name. This should probably be fixed > sometime... first rename all devices to random names and only > afterwards rename then to eth* according to the configuration files. > > Cheers, > MaZe. > > PS. alternatively you can open the case and switch the two network cards, > they'll be detected in reverse order and the previous renaming problem > should vanish. > > On Mon, 9 May 2005, Michael Rock wrote: > >> btw - the two NIC cards are identical Intel Pro100S >> and I also tried latest drivers. >> >> --- Michael Rock <mikerocks65 at yahoo.com> wrote: >> >>> Hi, I have a problem when adding a second NIC card. >>> It will not configure to eth1 and keeps changing its >>> device name on reboot to dev and a number, like >>> dev8761. >>> >>> I tried changing BIOS setting, plug/play on/off and >>> forcing IRQ for PCI slots. But no difference. >>> >>> centos-3-4.2 >>> >>> Any ideas? thx >>> >>> __________________________________________________ >>> Do You Yahoo!? >>> Tired of spam? Yahoo! Mail has the best spam >>> protection around >>> http://mail.yahoo.com >>> _______________________________________________ >>> CentOS mailing list >>> CentOS at centos.org >>> http://lists.centos.org/mailman/listinfo/centos >>> >> >> >> >> __________________________________ >> Do you Yahoo!? >> Make Yahoo! your home page >> http://www.yahoo.com/r/hs >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> http://lists.centos.org/mailman/listinfo/centos >> > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
Thanks. I ended up putting a NIC from a different name brand so they would not be identical. I did delete the garbage out of /etc/sysconfig but it did not work, perhaps if I tried deleting the entire config and starting over it may have worked. Now that I have both working how can you have two default gateways (one for each adapter) so they both service the separate IP networks independently of each other? I made sure ip forwarding is turned off in sysctl.conf. But with default gateway set on both they will not respond to outside requests. Discover Yahoo! Get on-the-go sports scores, stock quotes, news and more. Check it out! http://discover.yahoo.com/mobile.html
To respond to my own post I think I found it at this link under "4.2.1 split access" and hope it applies to Redhat. http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.multiple-links.html If I reboot I assume I need to create a shell script to automatically add these changes back? --- Michael Rock <mikerocks65 at yahoo.com> wrote:> Thanks. I ended up putting a NIC from a different > name > brand so they would not be identical. I did delete > the garbage out of /etc/sysconfig but it did not > work, > perhaps if I tried deleting the entire config and > starting over it may have worked. > > Now that I have both working how can you have two > default gateways (one for each adapter) so they both > service the separate IP networks independently of > each > other? > > I made sure ip forwarding is turned off in > sysctl.conf. But with default gateway set on both > they > will not respond to outside requests. > > > > Discover Yahoo! > Get on-the-go sports scores, stock quotes, news and > more. Check it out! > http://discover.yahoo.com/mobile.html > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >__________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail