LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setting up network card (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-network-card-93564/)

Derek-kun 09-16-2003 06:09 PM

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.

Derek-kun 09-16-2003 06:46 PM

what if i were to install the driver again? would that get it working? i it would how would i install it?

Mathieu 09-16-2003 07:09 PM

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 -

Derek-kun 09-16-2003 07:14 PM

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)

Mathieu 09-16-2003 07:36 PM

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

Derek-kun 09-16-2003 08:55 PM

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?

Mathieu 09-16-2003 09:11 PM

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

Derek-kun 09-17-2003 05:49 PM

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.

Mathieu 09-17-2003 07:02 PM

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.

Derek-kun 09-17-2003 08:44 PM

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?


All times are GMT -5. The time now is 07:57 PM.