LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-17-2011, 08:51 PM   #1
virtualpaul
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Rep: Reputation: 0
Question help installing a second network card


Hi,

Can anyone help a newbie with installing my second network card? I tried loading the module 8139too but it seems that both cards are using it so I am not sure if it worked.

Here is the info (Debian Lenny) I get at this point:

ifconfig -a:
-----------------
eth1 Link encap:Ethernet HWaddr 00:50:ba:42:5c:a2
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:fe42:5ca2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7049 errors:0 dropped:0 overruns:0 frame:0
TX packets:599 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:760051 (742.2 KiB) TX bytes:122556 (119.6 KiB)
Interrupt:3 Base address:0xa400

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:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:760 (760.0 B) TX bytes:760 (760.0 B)


cat /etc/udev/rules.d/70-persistent-net.rules:
-----------------

# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:ba:3f:c5:dc", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:ba:42:5c:a2", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"


lspci -v:
-----------------
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Capabilities: [80] Power Management version 2
Kernel modules: shpchp

00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: D-Link System Inc DFE-538TX
Flags: bus master, medium devsel, latency 32, IRQ 3
I/O ports at a400 [size=256]
Memory at de800000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Kernel driver in use: 8139too
Kernel modules: 8139too, 8139cp

00:0b.0 Ethernet controller: Device 00ec:8139 (rev 10)
Subsystem: Device 0186:1300
Flags: bus master, medium devsel, latency 32, IRQ 255
I/O ports at 1000 [disabled] [size=256]
Memory at de000000 (32-bit, non-prefetchable) [disabled] [size=256]
Capabilities: [50] Power Management version 2



dmesg:
-----------------
[ 0.000000] Linux version 2.6.26-2-486 (Debian 2.6.26-26lenny1) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1
[ 0.113734] NET: Registered protocol family 16
[ 0.151171] ACPI: PCI Root Bridge [PCI0] (0000:00)
[ 0.151665] pci 0000:00:04.4: quirk: region e400-e4ff claimed by vt82c586 ACPI
[ 0.151675] pci 0000:00:04.4: quirk: region e200-e27f claimed by vt82c686 HW-mon
[ 0.151684] pci 0000:00:04.4: quirk: region e800-e80f claimed by vt82c686 SMB
[ 0.152117] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[ 0.260287] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
[ 0.260525] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
[ 0.260737] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[ 0.260977] ACPI: PCI Interrupt Link [LNKD] (IRQs *3 4 5 6 7 9 10 11 12 14 15)
[ 0.267988] PCI: Using ACPI for IRQ routing
[ 0.268093] PCI: Cannot allocate resource region 0 of device 0000:00:0b.0
[ 0.268499] ACPI: RTC can wake from S4
[ 0.268571] system 00:00: iomem range 0x0-0x9ffff could not be reserved
[ 0.268580] system 00:00: iomem range 0xf0000-0xfffff could not be reserved
[ 0.268589] system 00:00: iomem range 0x100000-0x17ffffff could not be reserved
[ 0.268598] system 00:00: iomem range 0xfffe0000-0xffffffff could not be reserved
[ 0.268620] system 00:02: ioport range 0x3f0-0x3f1 has been reserved
[ 0.268628] system 00:02: ioport range 0x4d0-0x4d1 has been reserved
[ 0.268650] system 00:03: ioport range 0xe400-0xe47f has been reserved
[ 0.268658] system 00:03: ioport range 0xe800-0xe80f has been reserved
[ 0.299643] PCI: Error while updating region 0000:00:0b.0/0 (00001001 != 00000001)
[ 0.299707] PCI: Bridge: 0000:00:01.0
[ 0.299712] IO window: disabled.
[ 0.299718] MEM window: disabled.
[ 0.299724] PREFETCH window: disabled.
[ 0.299750] PCI: Setting latency timer of device 0000:00:01.0 to 64
[ 0.299799] NET: Registered protocol family 2
[ 4.940501] 8139too 0000:00:09.0: enabling device (0004 -> 0007)
[ 4.940521] ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [LNKD] -> GSI 3 (level, low) -> IRQ 3
[ 4.941404] eth0: RealTek RTL8139 at 0xa400, 00:50:ba:42:5c:a2, IRQ 3
[ 4.941411] eth0: Identified 8139 chip type 'RTL-8139B'
[ 4.965827] 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[ 9.448435] udevd version 125 started
[ 10.267052] udev: renamed network interface eth0 to eth1
[ 19.816574] NET: Registered protocol family 10
[ 19.817617] lo: Disabled Privacy Extensions
[ 20.528460] eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 30.888034] eth1: no IPv6 routers present

lsmod:
-----------------
Module Size Used by
ipv6 225172 16
via_agp 7680 1
evdev 7808 0
ext3 103688 2
8139too 20224 0
mii 4864 2 8139cp,8139too
uhci_hcd 18448 0
 
Old 01-17-2011, 09:35 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Ok - not sure I see the problem? Is it that you're only showing one eth* interface?

Does "ifconfig eth0" do anything? How about "ethtool eth0" and "ethtool eth1" ?
 
Old 01-17-2011, 10:02 PM   #3
virtualpaul
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Hi, thanks for helping.

Yes. I only see eth1.

ifconfig eth0:
eth0: error fetching interface information: Device not found

I tried installing ethtool but it looks like my debian fails accessing internet.

Last edited by virtualpaul; 01-17-2011 at 10:03 PM.
 
Old 01-18-2011, 06:05 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Alright, not sure, but try commenting out both lines in /etc/udev/rules.d/70-persistent-net.rules and rebooting and seeing what it picks up. I guess it got confused and made two entries for the same PCI device.
 
Old 01-18-2011, 07:44 PM   #5
virtualpaul
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks again.

Ok I commented and rebooted.

Now I get eth0 but not eth1. I looked and it is the same MAC address as before so only one card is 'usable'.
 
Old 01-19-2011, 12:36 PM   #6
virtualpaul
LQ Newbie
 
Registered: Jan 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Question

Anyone can suggest another linux forum where I could get some help on this?
 
Old 01-19-2011, 01:45 PM   #7
johnallia
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
I need to make the bootable flopyy for Red Hat Linux Advance server 3,Pl guide.
 
Old 01-19-2011, 01:46 PM   #8
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542

Rep: Reputation: 79
ok, so here we go again.

Quote:
00:0b.0 Ethernet controller: Device 00ec:8139 (rev 10)
Subsystem: Device 0186:1300
Flags: bus master, medium devsel, latency 32, IRQ 255
I/O ports at 1000 [disabled] [size=256]
Memory at de000000 (32-bit, non-prefetchable) [disabled] [size=256]
Capabilities: [50] Power Management version 2
Huuuummmm, your second network car look really strange to me... and the IRQ 255.... huuuummmm

Can you please tell me what it is (brand / model) and if you seem it already working on an other computer / OS?

I would check as well it compatibility with Linux.

Angel.
 
  


Reply



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
Installing network card.... Dextech1 Linux - Networking 4 08-11-2007 12:05 PM
Can any one tell me how i might go about installing network card? Kingsize Linux - Networking 3 04-10-2007 05:36 PM
Installing Network Card eliteskills Linux - Networking 1 07-29-2004 01:47 AM
installing network card caesarkim Linux - Networking 1 04-14-2004 05:57 PM
Installing My Network Card cspray Slackware 5 03-25-2003 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:42 AM.

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