LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 03-27-2003, 02:02 AM   #1
chlee
LQ Newbie
 
Registered: Jun 2002
Location: melbourne, australia
Distribution: slackware 9.0
Posts: 29

Rep: Reputation: 15
cant detect network card in slackware


hi
ive been using red hat but i decided to give slackware a try
anyawy
i installed version 9.0

i have 2 network cards, one connected to broadband internet

slackware detects this
and my internet works fine, however my local network card does not seem to be .. 'found'
if i type ifconfig
it shows onyl
eth0

and not eth1

if i try to use netconfig it only configrues the internet card

i all worked in red hat ? any tips?

the card connected to the netwrok is a
sis 900 fast ethernet adapter
accordign to windows
 
Old 03-27-2003, 02:10 AM   #2
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
You might want to add

alias eth1 <modulename>

to your /etc/modules.conf file but put in the actual module name of your card. Is the second card different from the main card? If so, you'll probably have to modprobe <modulename> to get that set up. You'll probably want to edit your /etc/rc.d/rc.modules file to get rid of the # marks at the beginnings of the lines with your modules for your NICs:

#/sbin/modprobe <modulename>
should look like this when you're done:

/sbin/modprobe <modulename>

This should get your second NIC detected. If I've missed anything, someone please correct me. Hope this helps.
 
Old 03-27-2003, 03:10 AM   #3
chlee
LQ Newbie
 
Registered: Jun 2002
Location: melbourne, australia
Distribution: slackware 9.0
Posts: 29

Original Poster
Rep: Reputation: 15
hmm
it is a differnet network card..
okay i uncommented one of hte network cards which i think is the corresponding one
from rc.modules

i rebooted and i htink it 'loads'
at start up liek it says
eth1: realtek somethign
eth1: sis somethign i cna try and past hte exact msg

however if i ifconfig
it still only shows eth0 and
lo

that alias eth1 <modulename> donset seem to do anyhting well i cant even run that command says
bash: alias: eth1: not found
 
Old 03-27-2003, 03:28 AM   #4
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Now that you have the modules for both cards loaded you need to edit /etc/rc.d/rc.inet1, set DHCP for your internet and assign an IP for your lan.
 
Old 03-27-2003, 03:43 AM   #5
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
Okay, what you need to do is open your /etc/modules.conf file with your favorite text editor. You'll then need to add the following lines to it:

alias eth0 <realtek modulename>
alias eth1 <sis modulename>

You'd want to put the correct module names in and without the <>'s as well. If you're unsure how to add these lines, let me know and I'll do what I can to walk you through it. There might be more that you need to add but you at least need this info. Let me know.
 
Old 03-28-2003, 07:14 AM   #6
chlee
LQ Newbie
 
Registered: Jun 2002
Location: melbourne, australia
Distribution: slackware 9.0
Posts: 29

Original Poster
Rep: Reputation: 15
alright thanks for the advice
ill give it ago in a few hours

and let you guys know if i need more help
 
Old 03-28-2003, 05:45 PM   #7
chlee
LQ Newbie
 
Registered: Jun 2002
Location: melbourne, australia
Distribution: slackware 9.0
Posts: 29

Original Poster
Rep: Reputation: 15
okay
i uncommneted the network module in rc.modules
and
i put
the aliases in modules.conf

and now if i type /sbin/modprobe -c
the alias for hte network cards are in there
except when i do ifconfig it only still shows only eth0 an lo

also is htere a log file for the stratuploading commands becuase i want to see what it says for the loading of the cards but it goes up to fast
 
Old 03-28-2003, 06:44 PM   #8
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
This is just grasping at straws, but try doing:

ifconfig eth1 up

Post the results please.
 
Old 03-28-2003, 08:19 PM   #9
chlee
LQ Newbie
 
Registered: Jun 2002
Location: melbourne, australia
Distribution: slackware 9.0
Posts: 29

Original Poster
Rep: Reputation: 15
oh well after i do ifconfig eth1 up
it says hte following
where as previously before i typed up
it had nothing


eth1 Link encap:Ethernet HWaddr 00:07:95:E4:5D:54
UP BROADCAST RUNNING 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:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:3 Base address:0xcc00

not sure what it means..
doesnt show ip address though i uges i have to set it somehow
 
Old 03-28-2003, 09:28 PM   #10
geno976
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware.. what else ?
Posts: 24

Rep: Reputation: 15
Quote:
doesnt show ip address though i uges i have to set it somehow
as Aussie mentioned u need to set the ipaddr on that interface.

to temporarily set your ipaddr you can open up a shell and do :

ifconfig eth1 10.1.1.1 netmask 255.255.255.0 broadcast 10.1.1.255

.. of course change the ip and mask to whatever you want ..

note: this will go away the next time that interface goes down so to make it permanent you need to edit the lines corresponding to eth1 in /etc/rc.d/rc.inet1. if you want this interface to obtain an ipaddr from a dhcp server then in the same file set DHCP to YES (and leave the ipaddr for eth1 set to 127.0.0.1).. then from the shell do 'dhcpcd eth1" (or reboot) .. else specify the ipaddr and subnet mask in /etc/rc.d/rc.inet1.

-geno

Last edited by geno976; 03-28-2003 at 09:30 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to detect network card from the console? rollo Suse/Novell 3 11-10-2005 03:16 PM
program to detect network card? shanenin Linux - Software 4 11-05-2005 08:42 PM
newbie, can only detect 1 network card at the time sirpelidor Linux - Networking 2 06-01-2005 12:04 PM
Mandrake 10 not able to detect my pcmcia network card newbiedrake Linux - Hardware 7 03-25-2005 04:34 PM
couldnt detect built in network card actteoh Linux - Hardware 4 10-16-2004 03:15 AM


All times are GMT -5. The time now is 11:01 PM.

Main Menu
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