LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   detection of NIC (https://www.linuxquestions.org/questions/linux-networking-3/detection-of-nic-583830/)

vkmgeek 09-11-2007 05:23 AM

detection of NIC
 
Hi all,
I hv two doubts. On my rhel4u3 x86_64 box, i hv two on board ethernet cards.
When i start my machine, only eth0 is get detected and not eth1. This is not working. so, i do
ifdown etho
ifup eth1
reboot

Now, when system gets up, eth1 is working.... But again when i do hard reboot.. i.e., i m not applying "reboot" command but I am pressing restart button, same problem again appears.

1. Is there any differnce between soft and hard reboot?
2. What if i want eth1 to get detected all the time system reboots very first time?


Thanks,

Brian1 09-12-2007 03:43 PM

If both nics are the same it can be a buggy issue. Sometimes depends on the module the nic uses.

At any point what is in your /etc/modprobe.conf file?
Looking to see if it is defining the alias for both.
Now the sequence will depend which IRQ the nic is using as far as which one it will use as first.

How are you using the nics?
Is one always needed to be connected to the network for say internet access?
If so which one is you want it to be?
Then what do you want the other to do?
In /etc/sysconfig/network-scripts are ifcfg-eth0 and ifcfg-eth1 files post contents of them and also if that is what you want them to be.

Normally you can only have one nic as a main routing nic. The other can be routed from other features like masquerade and iptables. Only one can be set with a gateway unless specific routing commands are set at boot.

Brian

vkmgeek 09-13-2007 10:21 AM

Yes...I want eth1 Nic to get detected all the time I reboot the machine...
I also modified conf files "ifcfg-eth0" and "ifcfg-eth1"... I changed the ONBOOT flag on both of them...
Yet I hv the same problem....though at the boot time eth1 is getting detected now, but m not able to ping from other machine.....unless i do a soft reboot once

Brian1 09-13-2007 05:00 PM

Ok you have both active on boot. Do both goto different networks?
And if so do each have a defined gateway?
If so there then routing needs to be setup. You really can only have one defined gateway.

Brian

vkmgeek 09-14-2007 12:09 AM

Thanks for ur Help ...
I will checkout for the gateway...
However, i dont understand your one statement... "Do both goto different networks?" ... Is it necessary? Is it like that two NICs cant be in one network? When you say diff network, do I need tp put them in different class or just network?

Brian1 09-15-2007 06:13 PM

Since you have two nics I just assume two different networks. Not sure why you want both on the same network unless bonding purposes to double bandwdth to the machine. Maybe post the exact configuration and what you want may help me understand what you are doing.

Brian

rossonieri#1 09-16-2007 08:51 AM

hi vkm,

try put ONBOOT=YES on /etc/sysconfig/network-script/ifcfg-eth1.

HTH.


All times are GMT -5. The time now is 08:40 AM.