Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-05-2011, 08:00 PM
|
#1
|
LQ Newbie
Registered: Jan 2008
Posts: 20
Rep:
|
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
|
|
|
01-05-2011, 08:06 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
01-05-2011, 08:28 PM
|
#3
|
LQ Newbie
Registered: Jan 2008
Posts: 20
Original Poster
Rep:
|
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)
|
|
|
01-05-2011, 08:43 PM
|
#4
|
LQ Newbie
Registered: Dec 2008
Location: Yukon, Canada
Distribution: Debian/Ubuntu
Posts: 20
Rep:
|
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...
|
|
|
01-05-2011, 08:48 PM
|
#5
|
LQ Newbie
Registered: Jan 2008
Posts: 20
Original Poster
Rep:
|
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
|
|
|
01-10-2011, 09:26 PM
|
#6
|
LQ Newbie
Registered: Jan 2008
Posts: 20
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|