LinuxQuestions.org
Review your favorite Linux distribution.
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 09-16-2003, 06:09 PM   #1
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Rep: Reputation: 15
setting up network card


YAY! I finally got linux 7.1 mandyworking!
now another problem, i want to get onto the internet with my ethernet card but i don't know how to set it up. is there anyway to do like a hardware detection or anything? i really need to get onto the internet.
 
Old 09-16-2003, 06:46 PM   #2
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
what if i were to install the driver again? would that get it working? i it would how would i install it?
 
Old 09-16-2003, 07:09 PM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
What type of internet connection do you have ? (Cable modem, DSL, etc)

What is your distribution ? (Mandrake, SuSE, etc)


In order to configure your network card, you will have to open a console window and login as root:
Code:
su -
 
Old 09-16-2003, 07:14 PM   #4
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
My internet connection is cable, and i'm hooked up through a switch. and my distribution is mandrake (7.1 if that makes a difference)
 
Old 09-16-2003, 07:36 PM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Open a console window and login as root.

To see if Linux has detected your Network card, type:
Code:
dmesg | grep eth[0-9]
You should see your network card assigned to eth0

You will need to edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add the following:
Code:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
Now you need to restart the network connection
Code:
/etc/init.d/network restart
To verify in fact that you obtain an IP address, type:
Code:
ifconfig
 
Old 09-16-2003, 08:55 PM   #6
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
matheiu,

i tried what you siggested and it doesn't seem to work

it typed it exactly how you did, nothing happened.

say we don't need to find out, how do i edit that file?
 
Old 09-16-2003, 09:11 PM   #7
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
What kind of network card do you have ? (Type, model, manufacturer, etc)
Are you in a Graphical or Text mode ?

To edit a file, open any text editor, go to the /etc/sysconfig/network-scripts directory and look for the ifcfg-eth0 file.
However, if Linux did not detect your network card, editing the file will not make a difference.

Also, take a look at the /etc/modules.conf file.
Do you see a line that looks like this:
Code:
alias eth0 ...driver_name...
 
Old 09-17-2003, 05:49 PM   #8
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Mathieu
What kind of network card do you have ? (Type, model, manufacturer, etc)
Are you in a Graphical or Text mode ?

To edit a file, open any text editor, go to the /etc/sysconfig/network-scripts directory and look for the ifcfg-eth0 file.
However, if Linux did not detect your network card, editing the file will not make a difference.

Also, take a look at the /etc/modules.conf file.
Do you see a line that looks like this:
Code:
alias eth0 ...driver_name...
it's just a no name. i'm in graphical mode.
the ifg-eth0 file is not there.
and no i do not see a line that looks like this:
Code:
alias eth0 ...driver_name...
I still have the driver disk for it and it say's how to install on linux the only problem is.. the site with the source code it mentions is no longer up, and it gives installation steps for every other version except mandrake.
 
Old 09-17-2003, 07:02 PM   #9
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Quote:
I still have the driver disk for it and it say's how to install on linux the only problem is.. the site with the source code it mentions is no longer up, and it gives installation steps for every other version except mandrake.
If you have the installation instructions for RedHat, you can follow those steps.
Mandrake is based on RedHat, so it should work.
 
Old 09-17-2003, 08:44 PM   #10
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
thanks that really helps.

now all i need to know is a bit more here and there and your free to go mathieu. (thanks a lot!)

now how do i build a compiler environment?
then compile it into a binary code?
 
  


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
Problem with setting up network card / network ssmeets Linux - Hardware 3 11-03-2005 03:46 PM
setting up network card kurcz Linux - Hardware 4 08-14-2005 08:40 PM
setting up network card ah786 Slackware 16 11-05-2004 06:09 PM
network card setting rilians Linux - Networking 2 10-08-2003 07:34 PM
setting speed of network card markus1982 Linux - Networking 2 10-15-2002 11:30 AM


All times are GMT -5. The time now is 05:52 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