LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2009, 01:10 PM   #1
flatapple
LQ Newbie
 
Registered: Aug 2009
Location: USA
Distribution: Debian 5.0.2
Posts: 9

Rep: Reputation: 0
Getting an ethernet card to work


I'm new to Linux and just installed Debian onto my old laptop. I would like to get onto the internet. I have a Linksys EtherFast® 10/100 Integrated PC Card which has a model number of PCM100. I don't know how to get it to work, although I think I need a driver. I did some research and found that I need to use the tulip driver, so I downloaded the source code from ftp://ftp.scyld.com/pub/network/tulip.c and tried to compile it using gcc. When I tried this, I received many errors such as these (these are just the last few):


tulip.c:3676: error: ‘ENODEV’ undeclared (first use in this function)
tulip.c:3677: error: ‘KERN_INFO’ undeclared (first use in this function)
tulip.c:3677: error: expected ‘)’ before string constant


They look like errors in the code, but there are so many that I can't see them all in the terminal.

How can I fix this or get my ethernet card working?

Thanks
 
Old 08-14-2009, 01:43 PM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

it will be nice to have to following information t help you:

- which distro exactly you are using?
- output of command
Code:
lspci -v -v
- output of command
Code:
ifconfig -a
- output of command
Code:
lsmod
The tulip driver should be part of your distro. Have your tried
Code:
modprobe -a tulip; ifconfig eth0
?
 
Old 08-14-2009, 04:39 PM   #3
flatapple
LQ Newbie
 
Registered: Aug 2009
Location: USA
Distribution: Debian 5.0.2
Posts: 9

Original Poster
Rep: Reputation: 0
Here is the information you requested.

My distro is Debian 5.0.2

Code:
Code:
lspci -v -v
Output attached as code1.txt

Code:
Code:
ifconfig -a
Output attached as code2.txt

Code:
Code:
lsmod
Output attached as code3.txt

I tried doing
Code:
modprobe -a tulip; ifconfig eth0
and the output it gave me is below, but I still could not get on the internet.

eth0 Link encap:Ethernet HWaddr 00:04:5a:9d:6f:ee
BROADCAST 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:3 Base address:0x300
Attached Files
File Type: txt code1.txt (7.3 KB, 8 views)
File Type: txt code2.txt (782 Bytes, 4 views)
File Type: txt code3.txt (3.3 KB, 6 views)

Last edited by flatapple; 08-15-2009 at 10:15 AM.
 
Old 08-16-2009, 05:17 AM   #4
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

as shown in output of
Code:
ifconfig -a
, there is an ethernet interface called eth0. So try to configure the device with the IP information for ypou network.

Try something like this:

ifconfig eth0 IP_ADRESSE SUBNETMASK up

example:
ifconfig eth0 192.168.1.2 255.255.255.0 up

route add default gw IP_ADDRESS_OF_GATEWAY
route add default gw 192.168.1.1

and your LAN and internet connection should work.

I'm not sure how this information will be made static in Debian.
 
Old 08-17-2009, 01:05 PM   #5
flatapple
LQ Newbie
 
Registered: Aug 2009
Location: USA
Distribution: Debian 5.0.2
Posts: 9

Original Poster
Rep: Reputation: 0
Hi,

When I tried:

ifconfig eth0 IP_ADRESSE SUBNETMASK up

it gave me the error:

SIOCSIFADDR: Invalid argument

What does that mean?
 
Old 08-29-2009, 01:53 AM   #6
flatapple
LQ Newbie
 
Registered: Aug 2009
Location: USA
Distribution: Debian 5.0.2
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your help! It works!!

I just re-installed the distro with the ethernet cable plugged in and it auto-detected! I can get on the internet now!
 
  


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
how to get ethernet card to work on xubuntu craftsman Linux - Newbie 1 07-19-2009 10:04 AM
Getting Ethernet card to work Kensai Linux - Hardware 1 11-17-2004 08:29 AM
Just can't get this SiS900 ethernet card to work.. Darrell4sho Linux - Newbie 5 09-13-2004 07:12 AM
Tried again...cant get ethernet card to work in fedora 1 jobless_joe Linux - Networking 4 05-14-2004 12:53 AM
How do I get my ethernet card to work? RJWMU Linux - Newbie 4 05-16-2003 02:27 PM


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