LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-11-2007, 05:23 AM   #1
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
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,
 
Old 09-12-2007, 03:43 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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

Last edited by Brian1; 09-12-2007 at 03:45 PM.
 
Old 09-13-2007, 10:21 AM   #3
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185

Original Poster
Blog Entries: 2

Rep: Reputation: 31
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
 
Old 09-13-2007, 05:00 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 09-14-2007, 12:09 AM   #5
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185

Original Poster
Blog Entries: 2

Rep: Reputation: 31
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?
 
Old 09-15-2007, 06:13 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 09-16-2007, 08:51 AM   #7
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi vkm,

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

HTH.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nic detection hareeswar Linux - Hardware 2 05-27-2006 04:38 PM
Nic detection order twistedpair Linux - Hardware 2 01-05-2006 05:27 PM
NIC Card Detection drdarkman Linux - Hardware 2 04-28-2005 11:59 AM
2.6 NIC detection random newb Slackware 1 03-01-2004 11:32 PM
NIC detection problem DeadlyMuffin Slackware 4 01-13-2004 06:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration