Second NIC not working

Need some help choosing hardware? Having trouble getting some hardware working? Just want to talk about hardware?
Post Reply
yoram
Member
Member
Posts: 76
Joined: February 10th, 2011, 8:58 pm

Second NIC not working

Post by yoram »

Hi,
I have yet another issue
I installed a new 1GB NIC, its recognized by the system on "lspci"
but if moving the cable to this NIC it does not show on the net.
It's also not on the router's connected list, so, probably not initiated the DHCP process
for getting the IP address

Yoram
User avatar
The_Matrix
Member
Member
Posts: 18
Joined: February 14th, 2011, 4:47 pm

Re: Second NIC not working

Post by The_Matrix »

Hi Yoram,

Let's make sure we're all on the same page. Please post the output from the follwoing 4 commands:

Code: Select all

ifconfig -a

Code: Select all

sudo cat /etc/network/interfaces

Code: Select all

lspci

Code: Select all

dmesg | grep eth
Ta :thumbup:
yoram
Member
Member
Posts: 76
Joined: February 10th, 2011, 8:58 pm

Re: Second NIC not working

Post by yoram »

Hi and thanks for your help
The pc used is an old Athlon 2500 based computer. Chipset is by Nvidia (eth0)
The new NIC is Realtec on the PCI bus and NOT connected to the network (eth1)
Following is the printout of the requested commands separated by ---------------

Yoram


yoram@CAROLINE:~$ yoram@CAROLINE:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:8d:f1:b6:04
inet addr:192.168.0.14 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:8dff:fef1:b604/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:575126 errors:0 dropped:0 overruns:0 frame:0
TX packets:595659 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:52386176 (52.3 MB) TX bytes:672674366 (672.6 MB)
Interrupt:22

eth1 Link encap:Ethernet HWaddr 00:14:d1:1d:ae:3f
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16 Base address:0x8000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:13446 errors:0 dropped:0 overruns:0 frame:0
TX packets:13446 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1505392 (1.5 MB) TX bytes:1505392 (1.5 MB)

--------------

yoram@CAROLINE:~$ sudo cat /etc/network/interfaces
[sudo] password for yoram:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
yoram@CAROLINE:~$

----------------

yoram@CAROLINE:~$ lspci
00:00.0 Host bridge: nVidia Corporation nForce2 IGP2 (rev c1)
00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1)
00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a3)
00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a3)
00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a3)
00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller (rev a1)
00:05.0 Multimedia audio controller: nVidia Corporation nForce Audio Processing Unit (rev a2)
00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3)
00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)
00:0d.0 FireWire (IEEE 1394): nVidia Corporation nForce2 FireWire (IEEE 1394) Controller (rev a3)
00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
01:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
01:0b.0 RAID bus controller: Silicon Image, Inc. SiI 3112 [SATALink/SATARaid] Serial ATA Controller (rev 02)
02:00.0 VGA compatible controller: ATI Technologies Inc RV350 AP [Radeon 9600]
02:00.1 Display controller: ATI Technologies Inc RV350 AP [Radeon 9600] (Secondary)
yoram@CAROLINE:~$

-----------------

yoram@CAROLINE:~$ dmesg | grep eth
[ 1.359306] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.64.
[ 1.359621] forcedeth 0000:00:04.0: PCI INT A -> Link[APCH] -> GSI 22 (level, high) -> IRQ 22
[ 1.359628] forcedeth 0000:00:04.0: setting latency timer to 64
[ 1.378736] r8169 0000:01:08.0: eth0: RTL8169sb/8110sb at 0xe08b8000, 00:14:d1:1d:ae:3f, XID 10000000 IRQ 16
[ 1.880992] forcedeth 0000:00:04.0: ifname eth1, PHY OUI 0x732 @ 1, addr 00:50:8d:f1:b6:04
[ 1.880997] forcedeth 0000:00:04.0: timirq lnktim desc-v1
[ 19.145275] udev[402]: renamed network interface eth1 to eth1-eth0
[ 21.283126] udev[383]: renamed network interface eth0 to eth1
[ 21.359526] udev[402]: renamed network interface eth1-eth0 to eth0
[ 22.418250] eth0: no link during initialization.
[ 22.418679] ADDRCONF(NETDEV_UP): eth0: link is not ready
[24628.747399] eth0: link up.
[24628.747467] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[24639.648008] eth0: no IPv6 routers present
yoram@CAROLINE:~$
User avatar
The_Matrix
Member
Member
Posts: 18
Joined: February 14th, 2011, 4:47 pm

Re: Second NIC not working

Post by The_Matrix »

Hi Yoram and thanks for posting those results.

OK, two things to try:

Type the following

Code: Select all

sudo rm /etc/udev/rules.d/70-persistent-net.rules
Then shut your server down, swap the network cable from your old NIC to your new one and power your server back up again.

If that doesn't work then try the following:

Code: Select all

sudo vim /etc/networking/interfaces
Then press the [Insert] key once and add the following lines:

Code: Select all

iface eth1 inet dhcp
auto eth1
You need to add them after the section for the eth0 card. So, the file should now read:

Code: Select all

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

#Added by Yoram
iface eth1 inet dhcp
auto eth1
Escape out of edit mode and then type

Code: Select all

:wq
Then shut your server down, swap the network cable from your old NIC to your new one and power your server back up again.

Let us know how you get on :thumbup:
yoram
Member
Member
Posts: 76
Joined: February 10th, 2011, 8:58 pm

Re: Second NIC not working

Post by yoram »

Like magic . . .. the first one worked perfectly
Could you pls explain what you saw in my reply
and what was the command you proposed that fixed that?


Thanks so much

Yoram
User avatar
The_Matrix
Member
Member
Posts: 18
Joined: February 14th, 2011, 4:47 pm

Re: Second NIC not working

Post by The_Matrix »

You're asking me to give all my secrets away?? Never :twisted:

Just kidding. the "[ 19.145275] udev[402]: renamed network interface eth1 to eth1-eth0" told me that Ubuntu was struggling to work out what NIC to activate. The "/etc/udev/rules.d/70-persistent-net.rules" file had the old card in it so by deleting it and rebooting Ubuntu added your new card to that file instead.

If at some point you swap them back then you'll need to delete that file again.

Anyway, glad it's all working now :thumbup:
yoram
Member
Member
Posts: 76
Joined: February 10th, 2011, 8:58 pm

Re: Second NIC not working

Post by yoram »

Nice call on the device confusion :clap:
Do you think there is a way to help ubuntu decide which nic to use?
It seems that I'm going to switch between the two since the new one in not running 1G
but only 100M. could be a cable issue. still working on that

Yoram
User avatar
The_Matrix
Member
Member
Posts: 18
Joined: February 14th, 2011, 4:47 pm

Re: Second NIC not working

Post by The_Matrix »

Try following the Plan B above. ie. adding the "iface eth1 inet dhcp....." to the interfaces file.
yoram
Member
Member
Posts: 76
Joined: February 10th, 2011, 8:58 pm

Re: Second NIC not working

Post by yoram »

Plan b works like charm
before applying reconnection of the eth cable did not initiate the communication
after applying the fix it auto start the interface without restarting the computer :thumbup:
User avatar
The_Matrix
Member
Member
Posts: 18
Joined: February 14th, 2011, 4:47 pm

Re: Second NIC not working

Post by The_Matrix »

Glad it worked for you Yoram. Thanks for feeding back :thumbup:
Post Reply