LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-16-2011, 08:52 PM   #1
SonJelfn
Member
 
Registered: Aug 2003
Location: Sendai, Japan
Distribution: Slackware, Slackware64, Debian
Posts: 63

Rep: Reputation: 17
Talking Installing and configuring two identical PCI network cards on Debian


Hello,

I am using a stock Debian 6.0.1 "Squeeze" GNU/Linux system and need to install and configure 3 network cards. I need all 3 network cards up and running.

The problem I am having is that 2 of these network cards are identical PCI cards and the kernel only lets me configure one. I don't have the option of changing them.

An lspci output shows all three cards:
Code:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
03:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
The kernel shows the following via the dmesg command:
Code:
[    0.905667] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    0.905683] r8169 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    0.905715] r8169 0000:02:00.0: setting latency timer to 64
[    0.905775] r8169 0000:02:00.0: irq 26 for MSI/MSI-X
[    0.906219] eth0: RTL8102e at 0xf7f7a000, 6c:62:6d:6e:ae:fc, XID 04c00000 IRQ 26
[    0.907554] ehci_hcd 0000:00:1d.7: cache line size of 32 is not supported
[    0.908948] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    0.908959] r8169 0000:03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    0.908972] r8169 0000:03:00.0: no PCI Express capability
[    0.909435] eth1: RTL8169sb/8110sb at 0xf7fa0c00, 00:14:d1:1f:d8:df, XID 10000000 IRQ 16
[    0.910400] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    0.910408] r8169 0000:03:01.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    0.910412] r8169 0000:03:01.0: region #1 not an MMIO resource, aborting
[    0.910455] r8169 0000:03:01.0: PCI INT A disabled
All the cards seem to be using the r8169 module. I have no idea how or why the kernel isn't assigning the third card a device.

I would really appreciate any help regarding the use of two identical Ethernet cards under GNU/Linux.

Thank you all in advance!
 
Old 06-16-2011, 08:59 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Question: what is the output of "ifconfig -a"?
 
Old 06-16-2011, 09:45 PM   #3
SonJelfn
Member
 
Registered: Aug 2003
Location: Sendai, Japan
Distribution: Slackware, Slackware64, Debian
Posts: 63

Original Poster
Rep: Reputation: 17
Hey carltm,

ifconfig -a shows the following:
Code:
eth0      Link encap:Ethernet  HWaddr 6c:62:6d:6e:ae:fc  
          inet addr:192.168.26.237  Bcast:192.168.26.255  Mask:255.255.255.0
          inet6 addr: fe80::6e62:6dff:fe6e:aefc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18491 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2218 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1594407 (1.5 MiB)  TX bytes:685915 (669.8 KiB)
          Interrupt:26 Base address:0xa000 

eth1      Link encap:Ethernet  HWaddr 00:14:d1:1f:d8:df  
          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:0xc00 

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:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)
 
Old 06-17-2011, 07:54 AM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Normally it's not a problem to have two identical cards, so I'm
wondering if one of the cards is bad.

I would try removing one of the cards and rebooting to verify that
the first card is good. Then remove the first and install the
second and reboot.
 
Old 06-17-2011, 02:14 PM   #5
LloydRice
Member
 
Registered: Jun 2011
Location: Colorado
Distribution: Debian and Ubuntu
Posts: 67

Rep: Reputation: Disabled
Assuming you get this working, --- how does it work? My question is this -- Are devices plugged into one NIC separate from devices in the other NIC? Suppose you have two independent LANs. Is this possible? Will it work? Can it be done?

Lloyd
 
Old 06-17-2011, 02:20 PM   #6
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Sure you can have independent LANs on different cards.

To the original question: google for "region #1 not an MMIO resource, aborting", some suggest to compile to use PIO instead MMIO into the kernel or buy two cards using other chips.
 
Old 06-17-2011, 03:56 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Move the cards around in the slots or reset bios. Looks to be an IRQ conflict. See also lspci.
 
Old 06-17-2011, 07:10 PM   #8
SonJelfn
Member
 
Registered: Aug 2003
Location: Sendai, Japan
Distribution: Slackware, Slackware64, Debian
Posts: 63

Original Poster
Rep: Reputation: 17
Hello all,

I have tested both cards, meaning that they both work.

I turned off the machine and moved the cards around, booting it up every time I changed things, including turning off the onboard network card which doesn't use the r8169 module directly.

Then one time I rebooted the machine I got all 3 Ethernet cards working.

The new lspci is:
Code:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
03:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
The new dmesg says:
Code:
[    0.911078] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    0.911096] r8169 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    0.911127] r8169 0000:02:00.0: setting latency timer to 64
[    0.911173] r8169 0000:02:00.0: irq 26 for MSI/MSI-X
[    0.911625] eth0: RTL8102e at 0xf8024000, 6c:62:6d:6e:ae:fc, XID 04c00000 IRQ 26
[    0.914477] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    0.914488] r8169 0000:03:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    0.914505] r8169 0000:03:00.0: no PCI Express capability
[    0.914982] eth1: RTL8169sb/8110sb at 0xf8058c00, 00:14:d1:1f:cf:07, XID 10000000 IRQ 16
[    0.915735] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    0.915743] r8169 0000:03:01.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    0.915756] r8169 0000:03:01.0: no PCI Express capability
[    0.916755] eth2: RTL8169sb/8110sb at 0xf805cc00, 00:14:d1:1f:d8:df, XID 10000000 IRQ 17
The ifconfig now stands:
Code:
eth0      Link encap:Ethernet  HWaddr 6c:62:6d:6e:ae:fc  
          inet addr:192.168.26.237  Bcast:192.168.26.255  Mask:255.255.255.0
          inet6 addr: fe80::6e62:6dff:fe6e:aefc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1088 errors:0 dropped:0 overruns:0 frame:0
          TX packets:163 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:95864 (93.6 KiB)  TX bytes:51529 (50.3 KiB)
          Interrupt:26 Base address:0x4000 

eth1      Link encap:Ethernet  HWaddr 00:14:d1:1f:d8:df  
          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:17 Base address:0xcc00 

eth2      Link encap:Ethernet  HWaddr 00:14:d1:1f:cf:07  
          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:0x8c00
There is definitely an IRQ conflict but I seriously have no idea why it suddenly worked or how to make sure the next time I shut down the machine it doesn't change.

I haven't tried the kernel recompile and this shows that there is something else in play.

Anyone have any ideas?
 
Old 06-17-2011, 08:55 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
What is there to play with? It works. Don't play with kernel.

I suspect you swapped the two cards and the way the board timing went it configured the cards without a conflict. I guess you can do a cold boot or two and see if stable.
 
Old 06-17-2011, 09:14 PM   #10
SonJelfn
Member
 
Registered: Aug 2003
Location: Sendai, Japan
Distribution: Slackware, Slackware64, Debian
Posts: 63

Original Poster
Rep: Reputation: 17
Hey jefro,

I'm not planning on playing with the kernel at all. Like you, I think the reboots and board timing eventually landed on the configuration I needed. However I would like to know if there is anything one can do to force the IRQ, I/O settings so that I can repeat this install without having to pray and reboot when I use two identical Ethernet cards.

Thanks for the suggestions and help.
 
Old 06-17-2011, 09:31 PM   #11
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Quote:
Originally Posted by SonJelfn View Post
There is definitely an IRQ conflict but I seriously have no idea why it suddenly worked or how to make sure the next time I shut down the machine it doesn't change.
This sounds like the BIOS is assigning the IRQs. See if there is an
option in the BIOS to let the OS assign the IRQs. If so, Linux will
assign them consistently.
 
Old 06-18-2011, 02:21 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
It is rare to see multiple cards fail. Most distros and drivers are advanced enough to get past this. At one time it was a stinker.

Still may be an issue for odd boards and poorly written drivers.

I think one could get into trouble still on 5 or more cards with some drivers.
 
  


Reply

Tags
ethernet, module, pci



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
Trouble configuring 2 network cards.in Debian Etch that Linux guy Linux - Networking 1 05-27-2008 06:40 PM
configuring my network cards zerog Linux - Networking 2 12-31-2005 05:51 AM
Network PCI cards Oskare100 Linux - Networking 1 06-11-2005 01:36 PM
configuring 2 network cards? julc Slackware 1 01-11-2005 07:44 AM
pci network cards not detected TiCkO Linux - Networking 6 01-08-2005 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:08 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