LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-10-2007, 11:31 AM   #1
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Rep: Reputation: 15
Newbie question ; Second NIC configure


Could some guru kindly tell me how do add second NIC?
Is is documented somewhere how to do?
Please show the path.

Regards
 
Old 06-10-2007, 11:42 AM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
All you should need to do is install the nic in the machine.
Load the correct module for the nic. You can use the modprobe command.
And then configure the nic with ifconfig or gui tools.

What do you wish to do with the second nic?

brian
 
Old 06-10-2007, 11:52 AM   #3
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
1. Edit /etc/rc.d/rc.netdevice:
Code:
#First NIC
/sbin/modprobe forcedeth
#Second NIC
/sbin/modprobe e1000
2. Edit /etc/rc.d/rc.inet1.conf to add # Config information for eth1:
3. Run
Code:
/etc/rc.d/rc.modules restart && /etc/rc.d/rc.inet1 restart && /etc/rc.d/rc.inet2 restart
 
Old 06-11-2007, 12:14 AM   #4
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Original Poster
Rep: Reputation: 15
I need to make it a router.
How do I load a module for rtl8139 NIC?
Whe I run modprobe, it says at least specify a module.
Regards

Last edited by dpballey; 06-11-2007 at 12:20 AM.
 
Old 06-11-2007, 01:34 AM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
You do (as root):

Code:
modprobe 8139cp
-OR-

Code:
modprobe 8139too
Depends on the card you have. Mine works only with the 'too' not the 'cp'.
 
Old 06-11-2007, 02:57 AM   #6
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Original Poster
Rep: Reputation: 15
The output of the commands is as follows:
Code:
root@XXX:/usr/src/linux-2.4.33.3/drivers/net# modprobe 8139cp
/lib/modules/2.4.33.3/kernel/drivers/net/8139cp.o.gz: init_module: No such device
/lib/modules/2.4.33.3/kernel/drivers/net/8139cp.o.gz: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.33.3/kernel/drivers/net/8139cp.o.gz: insmod /lib/modules/2.4.33.3/kernel/drivers/net/8139cp.o.gz failed
/lib/modules/2.4.33.3/kernel/drivers/net/8139cp.o.gz: insmod 8139cp failed
root@XXX:/usr/src/linux-2.4.33.3/drivers/net# modprobe 8139too
/lib/modules/2.4.33.3/kernel/drivers/net/8139too.o.gz: init_module: No such device
/lib/modules/2.4.33.3/kernel/drivers/net/8139too.o.gz: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.33.3/kernel/drivers/net/8139too.o.gz: insmod /lib/modules/2.4.33.3/kernel/drivers/net/8139too.o.gz failed
/lib/modules/2.4.33.3/kernel/drivers/net/8139too.o.gz: insmod 8139too failed
root@XXX:/usr/src/linux-2.4.33.3/drivers/net#
The second NIC is physically installed in the computer but is not connected to the switch. I am posting this response from Slackware 11 Computer.

Regards
 
Old 06-11-2007, 07:31 AM   #7
dpballey
Member
 
Registered: Feb 2004
Location: India
Distribution: Mandrake 9.1, Fedora 7, FreeBSD 6.2, , Slackware 12, Debian
Posts: 69

Original Poster
Rep: Reputation: 15
The problem is solved now.
Many many thanks to all those who replied and all those who took some time to read my question.
This is how I did.
After posting the error message here in this forum. I concentrated on this error and suspected that the driver for my card might not be on my machine itself. So, I checked the cd that came with the NIC.
It contained the driver, I installed the driver as outlined in the installation instructions and that was it.
Thanks once again.
Very helping people in these forums. If someone thinks that I have not given the complete details of solving the problem, I am ready to be more elaborate on this. There was no need to create the file" /etc/rc.d/rc.netdevice on my machine.

I have one question as to when both the NICs are realtek8139 , why I was required to install a different driver for the second NIC?
And can I find out whihc driver is being used by the NIC which was installed by netconfig command?

Regards

Last edited by dpballey; 06-11-2007 at 11:00 AM.
 
  


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
Configure 2 NIC in squid addipolli Linux - Networking 2 04-20-2006 09:45 AM
2nd NIC how do I configure ? overproof Linux - Newbie 9 05-04-2005 04:47 PM
new nic to configure mfran2002 Linux - Networking 4 11-05-2004 02:22 AM
nic configure pravash Linux - Networking 1 01-24-2003 10:16 AM
trying to configure nic nmenagh Linux - Software 1 02-19-2002 05:34 AM


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