LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-19-2003, 07:30 PM   #1
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Rep: Reputation: 15
Network card not working...?


I'm having problems with my ethernet conenction in this old mahcine I got some days ago.
I installed Debian 3.0 on it. It's AMD 200mhz, 32MB RAM. When i run lspci i get an ethernet controller called Realtek (RTL-8139). Now, when i run ifconfig i get nothing at all. What should I do?


bear with me, im a real n00b with this.
thanks in advance.
 
Old 05-19-2003, 07:41 PM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
You need to load a kernel module for the card, it will be called 'rtl8139' or '8139too', the second one is newer.
Do 'modprobe 8139too' or 'modprobe rtl8139' to load the module then configure your network.
 
Old 05-20-2003, 04:21 PM   #3
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
thanks i did the modprobe and then ifconfig 192.168.0.102. All seems good, but I can only ping computers in my network.
Let me be more specific, I have 3 computers connected to a router which goes into a cable connection. computer 1 has winxp and slackware and both work. computer 2, my bro's laptop, winxp and works. computer 3, the one we are talking about, only pings inside the network. are there other options in ifconfig i should set up?
 
Old 05-20-2003, 04:24 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What is your routing table like? post the output of:
route
 
Old 05-20-2003, 07:40 PM   #5
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


as for pc 3..
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0

now... I access my router info by going into the browser and goign to 192.168.0.1. Wwhat can u tell me from all this?
 
Old 05-21-2003, 04:37 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You need to add a default route to PC3.
Code:
route add 0.0.0.0 0.0.0.0 gw 192.168.0.1
 
Old 05-24-2003, 11:41 PM   #7
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
ok i got it working, but, for anyone who wants to use the advice I have to add and modify soem things.
once I did the modprobe and configured the network, I ran that route command. As david_ross pointed out, I had to add a default connection but his code didn't work for me. I used:
route add -net 0.0.0.0 gw 192.168.0.1
once with that, i had to make sure there was a /etc/resolv.conf on PC3. There wasn't. I copied the one on PC1 into PC3 and... internet works. Thanks guys. ( Im a satisfied n00b)
 
Old 05-25-2003, 10:19 AM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Sorry man - I forgto netmask:
route add 0.0.0.0 netmask 0.0.0.0 gw 192.168.0.1

Your way is fine to - linux is usually able to workout the mask for your network.
 
Old 05-25-2003, 01:45 PM   #9
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
ok cool thanks. one more question though. modprobe only loads the module temporarily. If i want the 8139too driver to be loaded on startup, I have to recompile the kernel, right?
 
Old 05-30-2003, 01:19 AM   #10
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
no, you sure don't.

it can be loaded as a module on boot. (I'm using the same card, although having some troubles)

check out the rc.modules file and uncomment the line for
modprobe 8139too

save that, and it should load on boot.



Hope that helped.
-Shade
 
Old 07-09-2003, 09:44 PM   #11
neorainy
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
Hi. I have a question about my 8139 card. Bear with me because I am totally brand new at this. I did modprobe 8139 to load the module for the card but it still is not working. When I tried to activate the card, it give me "SIOCSIFFLAGS: Device or resource busy" error. When I do "dmesg" I get the message "No IRQ Known for pin A of device 01.0b.0" How can I fix this? Thank you in advance.
 
Old 07-10-2003, 10:29 AM   #12
neorainy
LQ Newbie
 
Registered: Jul 2003
Posts: 2

Rep: Reputation: 0
Pleaseeeee

Please someone help me with the question above. THis is my first Linux experience and it's disappointing me. Please help me if you can. Thank you.
 
Old 07-10-2003, 06:03 PM   #13
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
You need to do 'modprobe 8139too'.
 
  


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
Network card not working? Cannot activate network device eth0 lifeonitsown Linux - Networking 1 11-17-2005 07:30 AM
Network Card not working toothe Linux - Networking 5 11-08-2005 12:12 PM
Network Card Not Working drewfus137 Linux - Newbie 3 03-28-2005 11:05 AM
Network card not working >< Daveyboi Linux - Newbie 4 06-20-2003 04:11 AM
Network card not working.... tinaa Linux - Hardware 17 05-14-2003 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:53 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
Open Source Consulting | Domain Registration