LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-05-2011, 07:00 PM   #1
xzased
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Rep: Reputation: 0
Missing ifcfg file after replacing nic


I have 2 10gb fiber cards on a server running red hat 5.3, eth4 and eth5. After replacing the eth4 card, it doesnt show up any ifcfg-eth4 file. I tried ifconfig -a, but it doesnt show up in modprobe.conf either, although it is listed when I do a lspci. Should I manually add it? or is there something Im missing here? Thanks
 
Old 01-05-2011, 07:06 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Is the new card different? Start by checking the manufactures ID using "lspci -n". It might be a newer device that your present kernel version doesn't detect. I had that happen after I bought my netbook. I knew it used an Atheros wireless device, but the manid didn't match what the ath9k module looked for.
 
Old 01-05-2011, 07:28 PM   #3
xzased
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
The new card is the same model as the one that got replaced, is the same as eth5 also. Here is the lspci output:


0e:00.0 Ethernet controller: Intel Corporation 82598EB 10 Gigabit AF Network Connection (rev 01)
12:00.0 Ethernet controller: Intel Corporation 82598EB 10 Gigabit AF Network Connection (rev 01)

lspci -n on these devices:

0e:00.0 0200: 8086:10c7 (rev 01)
12:00.0 0200: 8086:10c7 (rev 01)
 
Old 01-05-2011, 07:43 PM   #4
bobloblian
LQ Newbie
 
Registered: Dec 2008
Location: Yukon, Canada
Distribution: Debian/Ubuntu
Posts: 20

Rep: Reputation: 1
in my experience, replacing a card makes it take the next eth number available. so replacing eth4 would create an eth6, and if you replaced eth5, it would come up as eth7. but that is just my experience...
 
Old 01-05-2011, 07:48 PM   #5
xzased
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
But it should show up in modprobe.conf? Here is my output. I haven't touched the config so eth4 still shows up as the master (I have the 2 nics bonded)

alias eth0 e1000e
alias eth1 e1000e
alias eth2 e1000e
alias eth3 e1000e
alias eth6 bnx2
alias eth7 bnx2
alias eth8 bnx2
alias eth9 bnx2
alias scsi_hostadapter megaraid_sas
alias scsi_hostadapter1 ata_piix
alias bond0 bonding
options bond0 miimon=100 updelay=200 primary=eth4 mode=1
alias eth5 ixgbe
 
Old 01-10-2011, 08:26 PM   #6
xzased
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
I solved this by checking the output of lspci to grab the bus id and then checking dmesg for the listed bus, which contained the mac address for the card. I then manually put it as eth4 on modprobe.conf and created an ifcfg-eth4 file in /etc/sysconfig/network-scripts/. It is working with no issues.
 
  


Reply

Tags
add, create, nic



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
Missing ifcfg-eth[2-5] fileset for ZNYX 345Q Quad Port 10/100 cards rupaniii Linux - Networking 1 07-25-2010 07:31 PM
Fedora Ethernet File Locations for Auto eth[x] devices missing ifcfg-ethX files rupaniii Linux - Newbie 1 07-25-2010 02:03 AM
How to change ifcfg-ethX names to a new name like ifcfg-switchname rabbit1101 Linux - Newbie 3 12-14-2008 04:09 PM
Missing ifcfg file fedora 7 SuMoNiNa Linux - Server 2 10-16-2008 04:21 AM
fedora/redhat: ifcfg-eth0 and ifcfg-eth1 Shaun2222 Linux - Networking 9 01-23-2008 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:58 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