LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
Search this Thread
Old 11-26-2003, 03:13 PM   #1
race
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 66

Rep: Reputation: 15
installing a pci nic with debain 3


im new to this whole linux thing..... how do you install the nic? i inserted it after install of OS.

i can ping the localhost so does that mean the network card is "installed". if so what are my next steps to get this thing on the internet
 
Old 11-26-2003, 07:59 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
The Debian Reference has a whole chapter on networking.

Long story made short: You need to load the driver module for your card. If it's an Intel EtherExpress PRO/100 card you need the eepro driver, if it's a RealTek card you need the 8139too driver, etc.
To load the driver, do modprobe <modulename, like modprobe 8139too or whatever your driver is.

Then you need to check your configuration in /etc/network/interfaces and make sure eth0 is there and configured correctly. Here's a simple config for automatic (DHCP) configuration:
Code:
# The loopback interface

auto lo
iface lo inet loopback

# The first network card
# auto means bring it online automatically

auto eth0
iface eth0 inet dhcp
When done, try ifup eth0 to bring the card online. If you then do a ifconfig you should see an "eth0" part. The "lo" part in the ifconfig output is the loopback device. That's what you use when you ping localhost - you actually never use your real network card when accessing localhost, that's local loopback networking at work. If ifconfig shows eth0 having an "inet addr" set you should be online. ping any host you want to test it.

Håkan
 
Old 11-26-2003, 10:38 PM   #3
race
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 66

Original Poster
Rep: Reputation: 15
ok ... so i found out the driver i need for a dlink is rtl8139... debian has it and when i run modprobe ("modprobe rtl8139") 0it says that the device / resource is busy.... i looked at the interfaces thing and it only has the loopback info in it. i tried to change it but i couldnt because of permissions. i can get root access through the command line but i cant open the file.. any suggestions??
 
Old 11-27-2003, 12:13 AM   #4
race
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 66

Original Poster
Rep: Reputation: 15
i tried reinstalling the os and during installation (using woody 3.0) it still gave me that garbage about the device /resource is busy
 
Old 11-27-2003, 12:51 AM   #5
race
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 66

Original Poster
Rep: Reputation: 15
i just got root permissions through a GUI.... YAY!!!
 
Old 11-27-2003, 05:53 AM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
So...does this mean you solved it?

Anyway, to become root when logged in as yourself, just type su and hit enter. You will be prompted for the root password, type it in and hit enter. You will notice the prompt changes from $ to # to indicate you are root. When done doing root stuff, type exit to enter root mode. To execute something as root, and immidiately exit superuser mode and go back to your old self, use su -c <command>. Examples: su -c halt, or su -c "gvim /etc/X11/XF86Config-4".

Håkan
 
Old 11-27-2003, 09:34 AM   #7
race
Member
 
Registered: Nov 2003
Distribution: debian
Posts: 66

Original Poster
Rep: Reputation: 15
sounds good. but it is still giving me a hard time installing the nic. i am still not able to do modprove rtl8139 (it gives me the same errors as before). i went in and changed interfaces and then tried that ifup command and it said it was already configured. but if you do ifconfig it is still in loopback mode.
 
  


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
NIC VIA VT86c100A Rhine-II PCI cannot ping other workstations infantañoako Linux - Networking 2 01-21-2007 10:04 PM
Getting rid of Linspire...installing Debain. thewestwindow Linux - Software 3 08-19-2005 03:43 AM
Problem installing Debain with ATI Radeon 9800 AIW seeleung Debian 3 09-23-2004 06:12 PM
knoppix (Debain) Installing SUN Jdk 1.4.0_01 freakhead Linux - Newbie 2 07-28-2004 04:15 PM
Debain Wireless NIC (9th level of Hell) ahmonra Linux - Wireless Networking 2 07-07-2003 12:09 AM


All times are GMT -5. The time now is 02:31 AM.

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