LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-11-2009, 11:43 AM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
2 ethernet cards using the same driver as module


hello everyone,
i have 2 nic's that use the same 8139too module to be operated..
so in order to run them i added
in /etc/modprobe.d/
a file with 2 aliases for the 2 nics
alias eth0 8139too
alias eth1 8139too

and I added a udev rule to give the name eth1 to the 2nd card (the 1st card already had a rule)

i still don't get the 2nd rule to be brought up automatically at start up...

ifconfig only returns 'eth0' and i have to manually do

'ifconfig eth1 up' at which time the interface is brought up nicely.. then i do a dchpcd to get a network address and im all set...

but i would like to do this automatically...

note that i know that if i add static ips in /etc/rc.d/rc.inet1.conf i will get both ifs up... but i wonder how its gonna happen with the 2nics being 2 dhcp clients...

thank you for your help
 
Old 10-11-2009, 12:29 PM   #2
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Debian GNU/Linux bookworm/sid
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
It is possible that the module alias name is somehow conflicting with your device name?
 
Old 10-11-2009, 12:42 PM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
i have no idea
i used the alias names eth0 and eth1 from a redhat howto
http://www.redhat.com/mirrors/LDP/HO...net-HOWTO.html

(note my cards are pci not ISA)

at any rate i changed the alias names to eth0_primary and eth1_secondary but no luck.
 
Old 10-11-2009, 01:00 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Side not: for manual connections dhcpcd should be enough, ifconfig <iface> up is not needed (maybe it's called by dhcpcd). At least that stands for here
 
Old 10-11-2009, 02:30 PM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
edit your /etc/rc.d/rc.inet1.conf
Quote:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
 
Old 10-11-2009, 04:12 PM   #6
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
yup that did it
 
  


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
Problem finding ethernet driver/module merpal Linux - Networking 6 04-14-2005 08:19 PM
Linux Driver for DEC 21040-family ethernet cards red118a Linux - Hardware 7 03-13-2004 11:58 PM
How to find Packet driver interrupt for ethernet cards palanisaravanan Linux - Networking 1 12-29-2003 01:18 PM
How to find Packet driver interrupt for ethernet cards palanisaravanan Linux - Hardware 0 12-29-2003 08:25 AM
Multiple ethernet cards, same driver - problem anand_h Linux - Networking 1 02-19-2002 03:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:16 PM.

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