LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   cant detect network card in slackware (https://www.linuxquestions.org/questions/linux-networking-3/cant-detect-network-card-in-slackware-51968/)

chlee 03-27-2003 02:02 AM

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

Texicle 03-27-2003 02:10 AM

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.:D

chlee 03-27-2003 03:10 AM

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

Aussie 03-27-2003 03:28 AM

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.

Texicle 03-27-2003 03:43 AM

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.

chlee 03-28-2003 07:14 AM

alright thanks for the advice
ill give it ago in a few hours

and let you guys know if i need more help

chlee 03-28-2003 05:45 PM

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

Texicle 03-28-2003 06:44 PM

This is just grasping at straws, but try doing:

ifconfig eth1 up

Post the results please.

chlee 03-28-2003 08:19 PM

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

geno976 03-28-2003 09:28 PM

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


All times are GMT -5. The time now is 10:56 PM.