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

28th April 2011, 05:59 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 22

|
|
|
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?
|

29th April 2011, 02:24 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 22

|
|
|
Re: Need Help with adding 3rd NIC to Fedora
Any help please.... I am a Windows Admin and this linux stuff can be baffling...
|

29th April 2011, 07:22 PM
|
 |
Registered User
|
|
Join Date: Mar 2011
Posts: 58

|
|
|
Re: Need Help with adding 3rd NIC to Fedora
It seems as if the hardware is not being detected.
post:
lspci
dmesg
|

29th April 2011, 07:32 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 22

|
|
|
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?
|

30th April 2011, 02:09 PM
|
 |
Registered User
|
|
Join Date: Mar 2011
Posts: 58

|
|
|
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.
|

30th April 2011, 03:26 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 5

|
|
|
Re: Need Help with adding 3rd NIC to Fedora
can you paste the contents of /etc/udev/rules.d/70-persistent-net.rules
|

2nd May 2011, 03:26 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 22

|
|
|
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?
|

2nd May 2011, 07:01 PM
|
 |
Registered User
|
|
Join Date: Mar 2011
Posts: 58

|
|
|
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.
|

2nd May 2011, 07:17 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 22

|
|
|
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.
|

2nd May 2011, 07:24 PM
|
 |
Registered User
|
|
Join Date: Mar 2011
Posts: 58

|
|
|
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.
|

2nd May 2011, 07:40 PM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449

|
|
|
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.
|

2nd May 2011, 07:44 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 22

|
|
|
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!!
|

2nd May 2011, 07:49 PM
|
 |
Registered User
|
|
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,449

|
|
|
Re: Need Help with adding 3rd NIC to Fedora
Quote:
Originally Posted by EricM74
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)
|

2nd May 2011, 08:34 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 22

|
|
|
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
|

2nd May 2011, 09:30 PM
|
|
Registered User
|
|
Join Date: Apr 2011
Posts: 5

|
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 07:34 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|