View previous topic :: View next topic |
Author |
Message |
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Mon Mar 01, 2004 9:07 pm Post subject: eth0 |
|
|
I get an error when i start gentoo up saying it cant bring eth0 up. I did the installation verbatim in the gentoo handbook. I would really like to get kde up and running but i need internet to download the stuff any suggestions? |
|
Back to top |
|
|
sparks Guru
Joined: 05 Mar 2003 Posts: 331 Location: Nashville, TN
|
Posted: Mon Mar 01, 2004 9:12 pm Post subject: |
|
|
can you post the contents of your /etc/conf.d/net file? Also, did you compile in the kernel the correct module for your network card and did you set that module to autoload at boot? Are you going to be recieving your ip via DCHP or did you set it static? _________________ True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war. |
|
Back to top |
|
|
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Mon Mar 01, 2004 9:15 pm Post subject: |
|
|
ok i brought up the file but since it is on a different computer its a pain to type the whole thing up can you tell me anything specific to look for and ill post that. I am at school but i think the school network uses dynamic ip. I do not know if i set it to load at boot or not |
|
Back to top |
|
|
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Mon Mar 01, 2004 9:15 pm Post subject: |
|
|
ok i brought up the file but since it is on a different computer its a pain to type the whole thing up can you tell me anything specific to look for and ill post that. I am at school but i think the school network uses dynamic ip. I do not know if i set it to load at boot or not |
|
Back to top |
|
|
sparks Guru
Joined: 05 Mar 2003 Posts: 331 Location: Nashville, TN
|
Posted: Mon Mar 01, 2004 9:25 pm Post subject: |
|
|
danip wrote: | ok i brought up the file but since it is on a different computer its a pain to type the whole thing up can you tell me anything specific to look for and ill post that. I am at school but i think the school network uses dynamic ip. I do not know if i set it to load at boot or not |
Can you copy & paste it? Also, to find out if the network card module is loaded just type lsmod this will give you a list of loaded modules, check and see if your network module is loaded. If you are using DHCP the only line you need in /etc/conf.d/net is iface_eth0="dhcp". If you are going to be setting a static Ip you need to specify the settings you want and comment out the DHCP line. _________________ True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war. |
|
Back to top |
|
|
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Mon Mar 01, 2004 9:33 pm Post subject: |
|
|
danip wrote: | ok i brought up the file but since it is on a different computer its a pain to type the whole thing up |
so no i cant copy and paste it since gentoo is on a completely different pc. yes i am using DHCP
I typed lsmod and i got eth1394 loaded but thats the only thing with eth in it. |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Mon Mar 01, 2004 9:48 pm Post subject: |
|
|
set up conf.d/net like this:
Code: | # Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
#iface_eth0="192.168.0.9 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0="..."
*snip*, should be commented out below here |
then /etc/init.d/net.eth0 start _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Mon Mar 01, 2004 9:55 pm Post subject: |
|
|
ok i made the changes when i go to start it up it says:
Bringing eth0 up...
Failed to bring eth0 up |
|
Back to top |
|
|
Peracles Tux's lil' helper
Joined: 13 Nov 2003 Posts: 143 Location: Dallas, Texas
|
Posted: Mon Mar 01, 2004 10:30 pm Post subject: |
|
|
danip wrote: | ok i made the changes when i go to start it up it says:
Bringing eth0 up...
Failed to bring eth0 up |
What is the output of "ifconfig -a"? |
|
Back to top |
|
|
sparks Guru
Joined: 05 Mar 2003 Posts: 331 Location: Nashville, TN
|
Posted: Mon Mar 01, 2004 10:44 pm Post subject: |
|
|
danip wrote: | danip wrote: | ok i brought up the file but since it is on a different computer its a pain to type the whole thing up |
so no i cant copy and paste it since gentoo is on a completely different pc. yes i am using DHCP
I typed lsmod and i got eth1394 loaded but thats the only thing with eth in it. |
1394? That sounds like a firewire module. I could be wrong though...what type of NIC do you have? _________________ True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war. |
|
Back to top |
|
|
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Tue Mar 02, 2004 8:26 pm Post subject: |
|
|
I have a 3 com nic card. Heres what gentoo says when it boots up.
Failed to bring eth0 up [!!]
error: Problem starting needed services.
"netmount" was not started.
Error: some services needed are missing. Run
'./vixie-cron broke' for a list of those services.
"vixie-cron" was not started.
starting local... [ok] |
|
Back to top |
|
|
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Tue Mar 02, 2004 9:51 pm Post subject: |
|
|
Anyone here know how to fix this? |
|
Back to top |
|
|
Peracles Tux's lil' helper
Joined: 13 Nov 2003 Posts: 143 Location: Dallas, Texas
|
Posted: Tue Mar 02, 2004 10:19 pm Post subject: |
|
|
danip wrote: | Anyone here know how to fix this? |
You need to post the output of "ifconfig -a". I am not convinced that you have a driver installed properly for your NIC. Also, you can look in your dmesg output to see if there is any reference to eth0. |
|
Back to top |
|
|
sparks Guru
Joined: 05 Mar 2003 Posts: 331 Location: Nashville, TN
|
Posted: Wed Mar 03, 2004 12:59 am Post subject: |
|
|
danip wrote: | I have a 3 com nic card. Heres what gentoo says when it boots up.
Failed to bring eth0 up [!!]
error: Problem starting needed services.
"netmount" was not started.
Error: some services needed are missing. Run
'./vixie-cron broke' for a list of those services.
"vixie-cron" was not started.
starting local... [ok] |
Well, I don't think that you have the correct module loaded for your NIC that is why everything that is depending on your network connection is failing. I'm not at my Linux box right now but I think the driver that you need is the 3c59x. Once your box is up and running try this.
then
Code: | /etc/init.d/net.eth0 start |
if this works then add the 3c59x module to your /etc/modules.autoload.d/yourkernelversion _________________ True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war. |
|
Back to top |
|
|
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Wed Mar 03, 2004 8:35 pm Post subject: |
|
|
Ok it worked now how do i add it? |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Wed Mar 03, 2004 8:51 pm Post subject: |
|
|
rc-update add net.eth0 default _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Wed Mar 03, 2004 8:55 pm Post subject: |
|
|
Code: | net.eth0 already installed in runlevel default; skipping |
This mean its already installed and when I go to reboot my eth0 should work? |
|
Back to top |
|
|
sparks Guru
Joined: 05 Mar 2003 Posts: 331 Location: Nashville, TN
|
Posted: Wed Mar 03, 2004 9:45 pm Post subject: |
|
|
danip wrote: | Code: | net.eth0 already installed in runlevel default; skipping |
This mean its already installed and when I go to reboot my eth0 should work? |
It should, yes. _________________ True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war. |
|
Back to top |
|
|
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Wed Mar 03, 2004 9:52 pm Post subject: |
|
|
i rebooted and eth0 would not start again. I went through and redid everything so it works now but i still do not know how to make it start up every time i boot up. _________________ "For the artists, my ass...I didn't ask them to protect me, and I don't want their protection." -David Draiman Lead singer Disturbed |
|
Back to top |
|
|
Peracles Tux's lil' helper
Joined: 13 Nov 2003 Posts: 143 Location: Dallas, Texas
|
Posted: Wed Mar 03, 2004 9:54 pm Post subject: |
|
|
danip wrote: | i rebooted and eth0 would not start again. I went through and redid everything so it works now but i still do not know how to make it start up every time i boot up. |
You need to add that module to be loaded upon boot. To do this, place 3c59x module in /etc/modules.d/net and then run modules-update.
modules-update will add 3c59x into your /etc/modules.conf file and that will get that module loaded every time u boot. With it loaded, your eth0 will come up. |
|
Back to top |
|
|
danip n00b
Joined: 11 Feb 2004 Posts: 37 Location: Anchorage
|
Posted: Wed Mar 03, 2004 10:07 pm Post subject: |
|
|
I asked this earlier but how do i add that to the .conf file. _________________ "For the artists, my ass...I didn't ask them to protect me, and I don't want their protection." -David Draiman Lead singer Disturbed |
|
Back to top |
|
|
sparks Guru
Joined: 05 Mar 2003 Posts: 331 Location: Nashville, TN
|
Posted: Wed Mar 03, 2004 10:16 pm Post subject: |
|
|
Peracles wrote: | danip wrote: | i rebooted and eth0 would not start again. I went through and redid everything so it works now but i still do not know how to make it start up every time i boot up. |
You need to add that module to be loaded upon boot. To do this, place 3c59x module in /etc/modules.d/net and then run modules-update.
modules-update will add 3c59x into your /etc/modules.conf file and that will get that module loaded every time u boot. With it loaded, your eth0 will come up. |
He actually needs to edit this file for the driver to loaded at boot:
Code: | /etc/modules.autoload.d/kernel-2.* |
replace the * with a 4 or a 6 depending on whether you are using a 2.4 kernel or a 2.6 kernel.
This is should be how it looks when you have edited it:
Code: |
cat /etc/modules.autoload.d/kernel-2.6
# /etc/modules.autoload.d/kernel-2.6: kernel modules to load when system boots.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/modules.autoload.d/kernel-2.6,v 1.1 2003/07/16 18:13:45 azarah Exp $
#
# Note that this file is for 2.6 kernels.
#
# Add the names of modules that you'd like to load when the system
# starts into this file, one per line. Comments begin with # and
# are ignored. Read man modules.autoload for additional details.
# For example:
3c59x
|
_________________ True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war. |
|
Back to top |
|
|
|