LinuxQuestions.org
Help answer threads with 0 replies.
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-02-2004, 01:26 PM   #1
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 777

Rep: Reputation: 40
Adding a second Ethernet Card


Hi folks,

I've added a second Ethernet card to my Mandrake box (which has been working with a single card for a couple of years on different versions of Mandrake). When I go to command centre it can only see the original card. I expected to find some graphical tool for adding the new card (either manually or by scanning) but there doesn't seem to be anything.

Do I need to run something from the command line? If so, could anyone point me in the right direction please?

Many thanks,

Rob
 
Old 06-02-2004, 01:28 PM   #2
esher2292
Member
 
Registered: May 2004
Location: Maryland,USA
Distribution: Red Hat 9.0, Knoppix 3.4
Posts: 94

Rep: Reputation: 15
Well I didn't find anything. I will let you know if I do..Sorry!

Last edited by esher2292; 06-02-2004 at 01:30 PM.
 
Old 06-02-2004, 02:13 PM   #3
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
Is Kudzu exist for this distro ??

it's a hardware detection softeware provided with red hat..
 
Old 06-02-2004, 03:08 PM   #4
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
You need to add the driver for the 2nd card to /etc/modules.conf. You will find an alias for your existing eth0 in there, you need to add one for eth1.

If you have no idea which driver to pick, post the output of lspci and your current /etc/modules.conf and we'll be able to help you.

Hope is helps,
mlp
 
Old 06-03-2004, 02:44 PM   #5
bagira
LQ Newbie
 
Registered: Dec 2003
Location: Germany
Distribution: Gentoo
Posts: 27

Rep: Reputation: 15
You have to insert the driver in your /etc/modules.conf file. After a reboot, the card should be detected.

Cheers bagira
 
Old 06-03-2004, 04:25 PM   #6
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 777

Original Poster
Rep: Reputation: 40
Thanks for all the seggestions. :-)

The plot thickens. When lspci (neat command that!) didn't list the second Ethernet card, I rebooted to see what the BIOS was detecting. Sure enough, only one network card. So, I opened up the computer and the card itself wasn't quite pushed far enough into the PCI slot.

Now I can see both cards and the second one is loaded (automatically) into modules.conf. Great.

Weird things is I can *only* get on the LAN with eth1 now! eth0 refuses to let me do as much as ping! I assume I should be able to use both to access the LAN...

It would appear that Linux has no problem with autodetecting networks cards anyway!

Last edited by DiBosco; 06-03-2004 at 04:27 PM.
 
Old 06-03-2004, 10:26 PM   #7
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
No, that's not correct. From your statement that you didn't have to do anything to the modules.conf file I take it that the 2nd card has the same driver as your original one. Unless you take special action, the naming (which one is eth0 and which is eth1) is determined by the position of the card on the bus. Now only one card can be the one that talks to your LAN; that seems to be eth1. You would want to have two cards in order to route the internet trafic to your private LAN (say, eth0 connects to your cable/DSL modem and the other card serves your home-internal network). You cannot simply connect both cards to the same network, if that's what you have done.

Please post the output of your ifconfig command and tell us which IP you pinged successfully.

mlp
 
Old 06-04-2004, 03:10 AM   #8
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 777

Original Poster
Rep: Reputation: 40
Ah, having run ifconfig, I only get eth0 - and also on bootup, it only brings up eth0 as it lists everything that's being loaded/brought up. Certainly both cards have Realtek RTL8139 devices on them, I'm guessing the driver *should* be the same. It's certainly what modules.conf indicates.

I can ping 192.168.0.x - where x is is any valid address on my LAN.

I can also ping the likes of bbc.co.uk

Here are my listings.

Many thanks,

Rob.

First off, ifconfig:

eth0 Link encap:Ethernet HWaddr 00:50:FC:31:2F:64
inet addr:192.168.0.81 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:fcff:fe31:2f64/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:539 errors:0 dropped:0 overruns:0 frame:0
TX packets:371 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:530989 (518.5 Kb) TX bytes:39044 (38.1 Kb)
Interrupt:5 Base address:0x9000

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:70 errors:0 dropped:0 overruns:0 frame:0
TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4594 (4.4 Kb) TX bytes:4594 (4.4 Kb)

then /etc/modules.conf:

probeall scsi_hostadapter aic7xxx
probeall usb-interface usb-uhci
above snd-via82xx snd-pcm-oss
alias eth0 8139too
alias sound-slot-0 snd-via82xx
alias eth1 8139too
 
Old 06-04-2004, 09:22 AM   #9
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
Ok. I'm still at a loss what you want to use the eth1 for. The eth0 is brought up because (I guess) there's a configuration file for it. It would be in /etc/sysconfig/network-scripts/ifcfg-eth0. Unless there's also a ifcfg-eth1 with the specific settings, eth1 will be left alone. You can either use your favorite editor to write such a file, or use one of the configuration tools to do it.

By default, ifconfig shows only interfaces which are up, so you would need to do ifconfig eth1 to see it (and find it down). Again, eth0 presumably got configured at the time you installed the OS.

Now you can go and run yet another LAN off eth1...

Hope it helps,
mlp
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Suse 9.0 doesn't detect Ethernet card on nVidia shipset 2, on-board card Realtek 8201 devilpim Linux - Newbie 3 05-27-2006 12:08 AM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
adding a third ethernet card.. murphaph Linux - Networking 7 04-10-2004 05:50 PM
how to set up SMC EZ Card 10/100 ethernet PCI network card mymojo Linux - Networking 2 12-16-2003 02:35 AM
Insert scsi pcmcia card kills existing ethernet card lgetsche Linux - Hardware 0 11-12-2002 04:16 PM

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

All times are GMT -5. The time now is 12:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration