Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th April 2011, 05:59 PM
EricM74 Offline
Registered User
 
Join Date: Apr 2011
Posts: 22
windows_xp_2003ie
Need Help with adding 3rd NIC to Fedora

I am trying to add a third network card (an Intel gigabit card) to my Fedora server to setup a static route to another network.

I have add the eth2 alias in /etc/modprobe.conf and /etc/modules.conf as:
Alias eth2 e1000

I created the ifcfg-eth2 file in /etc/sysconfig/network-scripts the contents are as shown (removed personal info):
BOOTPROTO=none
PEERDNS=no
HWADDR=[MAC Address]
TYPE=Ethernet
DEVICE=eth2
MTU=""
NETMASK=255.255.255.0
BROADCAST=[Broadcast Address]
IPADDR=[Static Address]
NETWORK=[Network Address]
ONBOOT=yes
USRCTL=no

When I restart the server or the network service eth2 fails to start and shows the error below:
# Bringing up interface eth2: SIOCGIFFLAGS: No such device

So I did a ifconfig –a and see that there is a eth2_rename shown in the list.

How do I get eth2 to load correctly so I can set the static route I need?
Reply With Quote
  #2  
Old 29th April 2011, 02:24 PM
EricM74 Offline
Registered User
 
Join Date: Apr 2011
Posts: 22
windows_xp_2003ie
Re: Need Help with adding 3rd NIC to Fedora

Any help please.... I am a Windows Admin and this linux stuff can be baffling...
Reply With Quote
  #3  
Old 29th April 2011, 07:22 PM
hefeweizen's Avatar
hefeweizen Offline
Registered User
 
Join Date: Mar 2011
Posts: 58
linuxchrome
Re: Need Help with adding 3rd NIC to Fedora

It seems as if the hardware is not being detected.

post:

lspci
dmesg
Reply With Quote
  #4  
Old 29th April 2011, 07:32 PM
EricM74 Offline
Registered User
 
Join Date: Apr 2011
Posts: 22
windows_xp_2003ie
Re: Need Help with adding 3rd NIC to Fedora

# lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:02.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 (rev 05)
00:03.0 SCSI storage controller: Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895 (rev 04)
00:03.1 SCSI storage controller: Adaptec AHA-2940U/UW / AHA-39xx / AIC-7895 (rev 04)
00:04.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:04.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:04.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:04.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:0f.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)
00:10.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:00.0 VGA compatible controller: S3 Inc. Savage 4 (rev 03)

dmesg was to big to get it all, but it was all shorewall message and none of them said anything about eth2 or eth2_rename.

is there anything I can grep in dmesg to help you?
Reply With Quote
  #5  
Old 30th April 2011, 02:09 PM
hefeweizen's Avatar
hefeweizen Offline
Registered User
 
Join Date: Mar 2011
Posts: 58
linuxchrome
Re: Need Help with adding 3rd NIC to Fedora

Quote:
00:02.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 (rev 05)
00:0f.0 Ethernet controller: Intel Corporation 82541PI Gigabit Ethernet Controller (rev 05)
00:10.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Well, your system does see three cards, so the hardware's not dead. Searching the web, it looks like intel 00:02.0 should be using e100, and intel 00:0f.0 should be using e1000; however, this is not canonical. I'm sure there's some way to reference the driver source to list hardware models but I'm ignorant of how to do that.

As a way of seeing what's happening to the cards on boot, grep <pci addr> /var/log/messages, where pci addr is 00:02.0, 00:0f.0, or 00:10.0 from above.

I would not have expected to have to adjust /etc/modprobe.conf and /etc/modules.conf; autodetect usually works. If you can experiment, remove these and power cycle the machine. In the same vein, try booting with knoppix or other live cd and observe if and how these devices are enabled in that environment.
Reply With Quote
  #6  
Old 30th April 2011, 03:26 PM
hp3000guy Offline
Registered User
 
Join Date: Apr 2011
Posts: 5
macoschrome
Re: Need Help with adding 3rd NIC to Fedora

can you paste the contents of /etc/udev/rules.d/70-persistent-net.rules
Reply With Quote
  #7  
Old 2nd May 2011, 03:26 PM
EricM74 Offline
Registered User
 
Join Date: Apr 2011
Posts: 22
windows_xp_2003ie
Re: Need Help with adding 3rd NIC to Fedora

the grep on the messages file had no output.

Here is the contents of 70-persistent-net.rules


# PCI device 0x8086:0x1229 (e100)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:06:29:ee:ba:94", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10ec:0x8139 (8139too) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:fc:20:b8:7d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:0x107c (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:a2:13:02", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"



If I read this right is it trying to apply the 8139too and the e1000 to eth1?
Reply With Quote
  #8  
Old 2nd May 2011, 07:01 PM
hefeweizen's Avatar
hefeweizen Offline
Registered User
 
Join Date: Mar 2011
Posts: 58
linuxchrome
Re: Need Help with adding 3rd NIC to Fedora

Yeah, it's loading up two modules and then trying to assign them the same name. I wonder how that came about...

Change your /etc/udev/rules.d/70-persistent-net.rules file to have the e1000 nic come in as eth2. It's safe to edit this file as it is automatically generated/updated at boot. In fact, you can delete it outright and it should get rebuilt. Even if the edit works, I'd encourage you to save a copy of this file to an alternate location, delete the original and then reboot. The dual name assignment is erroneous and if it tried to recreate that configuration upon file deletion a bug report should be submitted.
Reply With Quote
  #9  
Old 2nd May 2011, 07:17 PM
EricM74 Offline
Registered User
 
Join Date: Apr 2011
Posts: 22
windows_xp_2003ie
Re: Need Help with adding 3rd NIC to Fedora

do I change the eth1 in the e1000 nic to eth2?

---------- Post added at 01:07 PM ---------- Previous post was at 01:05 PM ----------

still get:
Bringing up interface eth2: SIOCGIFFLAGS: No such device

---------- Post added at 01:17 PM ---------- Previous post was at 01:07 PM ----------

I also tried removing the alias for eth2 in /etc/modprobe.conf and /etc/modules.conf

same error when restarting the network service.
Reply With Quote
  #10  
Old 2nd May 2011, 07:24 PM
hefeweizen's Avatar
hefeweizen Offline
Registered User
 
Join Date: Mar 2011
Posts: 58
linuxchrome
Re: Need Help with adding 3rd NIC to Fedora

Quote:
do I change the eth1 in the e1000 nic to eth2?
Yes.

Restarting the network service is insufficient; the hardware has to be redetected. While I'm sure there's a command to do that, I'm ignorant of it. Reboot.
Reply With Quote
  #11  
Old 2nd May 2011, 07:40 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
Re: Need Help with adding 3rd NIC to Fedora

Did you also try to use system-config-network ?
Instead of remembering which of the various files to edit by hand, it might be nicer to use the tool intended for setting up the network. I bet it sets up the various module loading etc for you.
Reply With Quote
  #12  
Old 2nd May 2011, 07:44 PM
EricM74 Offline
Registered User
 
Join Date: Apr 2011
Posts: 22
windows_xp_2003ie
Re: Need Help with adding 3rd NIC to Fedora

Like I said I am new to linux, how do I launch/use the tool? Thank you also!!
Reply With Quote
  #13  
Old 2nd May 2011, 07:49 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449
linuxfirefox
Re: Need Help with adding 3rd NIC to Fedora

Quote:
Originally Posted by EricM74 View Post
Like I said I am new to linux, how do I launch/use the tool? Thank you also!!
If you're in Gnome it's somewhere in the startup menu as "Network" or something similarly obvious. In KDE4 which I'm using you can launch it from

Applications tab -> Administration -> Network Configuration

or common to both just open a terminal on the desktop and do:
Code:
su -c "system-config-network"
(su == 'switch user' , -c --> run one command as that user)
Reply With Quote
  #14  
Old 2nd May 2011, 08:34 PM
EricM74 Offline
Registered User
 
Join Date: Apr 2011
Posts: 22
windows_xp_2003ie
Re: Need Help with adding 3rd NIC to Fedora

The previous admin removed all desktops.

# su -c "system-config-network"
bash: system-config-network: command not found
Reply With Quote
  #15  
Old 2nd May 2011, 09:30 PM
hp3000guy Offline
Registered User
 
Join Date: Apr 2011
Posts: 5
macoschrome
Re: Need Help with adding 3rd NIC to Fedora

can you paste the output of "ls /etc/sysconfig/network-scripts"

---------- Post added at 08:30 PM ---------- Previous post was at 08:27 PM ----------

And if you have a file listed there called ifcfg-eth2 then paste the contents of that as well.
Reply With Quote
Reply

Tags
adding nic to fedora, adding nic to linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Adding Fedora to Grub archp2008 Installation and Live Media 35 4th August 2009 03:44 AM
Adding KDE to Fedora 9 jpaxtons Installation and Live Media 1 26th June 2008 06:38 PM
Adding senond hard drive from old version of fedora to fedora 9 steveblink Hardware & Laptops 4 10th June 2008 03:05 AM
Adding LVM, expanding storage w/more disks + adding LVM encryption w/ LUKS dsuchter Using Fedora 3 20th May 2008 02:56 AM
Adding Fedora PC to W2K Domain pvtpilot Using Fedora 2 4th May 2004 09:35 PM


Current GMT-time: 07:34 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat