View previous topic :: View next topic |
Author |
Message |
lost_packet n00b


Joined: 29 Dec 2002 Posts: 19
|
Posted: Tue Jan 14, 2003 2:02 am Post subject: borked conf.d/net |
|
|
I screwed up conf.d/net while trying to find out why dhcp wasn't working. Is there a way to setup eth0 without re-writing conf.d?
When I boot up I get a msg wanting me to check that /etc/conf.d/net has $iface_eth0 set and that netmount was not started. But when I look at conf.d everything looks like it did originally. |
|
Back to top |
|
 |
lost_packet n00b


Joined: 29 Dec 2002 Posts: 19
|
Posted: Tue Jan 14, 2003 4:03 am Post subject: |
|
|
I booted off the livecd, mount my drive and made sure eth0 was working. I then copied the net files to the drive, umounted and rebooted. When I went back into gentoo it didn't give me an error about $iface_eth0, but I couldn't ping anything. When I run ifconfig i get a 192.168 adress so it's not picking up dhcp.
Any ideas how to run something like net-setup eth0 from Gentoo itself?
sorry i'm a noob to all this  |
|
Back to top |
|
 |
Naan Yaar Bodhisattva

Joined: 27 Jun 2002 Posts: 1549
|
Posted: Tue Jan 14, 2003 4:14 am Post subject: |
|
|
You need to edit your conf.d file to set up dhcp as listed here and other places. |
|
Back to top |
|
 |
lost_packet n00b


Joined: 29 Dec 2002 Posts: 19
|
Posted: Tue Jan 14, 2003 10:24 pm Post subject: |
|
|
Thanks for the suggestion original Buddha
I tried editing net in conf.d leaving just evrything commented out except for iface_eth0="dhcp" but it still gives me the same error.
Actually before reading your reply I tried configuring conf.d/net as many ways as I could think of including specifying my ip, gateway, subnet mask, etc..as if it were a static ip, but nothing worked.
At boot I get:
Error problem starting needed services.
"netmount" was not started
any other places to look?
Is there a command to setup eth0 for dhcp?
Someone mentioned typing dhcpcd eth0 in another post but it doesn't seem to do anything. |
|
Back to top |
|
 |
Naan Yaar Bodhisattva

Joined: 27 Jun 2002 Posts: 1549
|
Posted: Wed Jan 15, 2003 12:57 am Post subject: |
|
|
Code: |
/etc/init.d/net.eth0 start
|
should start up networking without having to reboot.
In your old setup, did you have the "-h" option for dhcp? With dhcp, you should not have to manually set up the gateway, mask, etc. |
|
Back to top |
|
 |
lost_packet n00b


Joined: 29 Dec 2002 Posts: 19
|
Posted: Wed Jan 15, 2003 3:54 am Post subject: |
|
|
In your old setup, did you have the "-h" option for dhcp?
not that I know of.
I specified everything in place of "dhcp" just to see if it worked as a static ip.
I think the issue might be my ethernet card not being enabled properly. My cards is a 3c905b which is pretty common. I went back and recompiled my card as a module but it still gave me the same error.
I'll try your suggestion and get back. Thanks for the help |
|
Back to top |
|
 |
lost_packet n00b


Joined: 29 Dec 2002 Posts: 19
|
Posted: Wed Jan 15, 2003 4:22 am Post subject: |
|
|
when I ran /etc/init.d/net.eth0 start I got failed to bring up eth0 |
|
Back to top |
|
 |
lost_packet n00b


Joined: 29 Dec 2002 Posts: 19
|
Posted: Thu Jan 16, 2003 2:09 am Post subject: |
|
|
Problem resolved
My gateway is not on the same subnet, which is not good according to this post.
https://forums.gentoo.org/viewtopic.php?t=25956
Once I listed everything and ran /etc/init.d/net.eth0 start I could ping and resolve dns....woohoo!
Thanks  |
|
Back to top |
|
 |
|