Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
borked conf.d/net
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lost_packet
n00b
n00b


Joined: 29 Dec 2002
Posts: 19

PostPosted: Tue Jan 14, 2003 2:02 am    Post subject: borked conf.d/net Reply with quote

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
View user's profile Send private message
lost_packet
n00b
n00b


Joined: 29 Dec 2002
Posts: 19

PostPosted: Tue Jan 14, 2003 4:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jan 14, 2003 4:14 am    Post subject: Reply with quote

You need to edit your conf.d file to set up dhcp as listed here and other places.
Back to top
View user's profile Send private message
lost_packet
n00b
n00b


Joined: 29 Dec 2002
Posts: 19

PostPosted: Tue Jan 14, 2003 10:24 pm    Post subject: Reply with quote

Thanks for the suggestion original Buddha :D

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jan 15, 2003 12:57 am    Post subject: Reply with quote

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
View user's profile Send private message
lost_packet
n00b
n00b


Joined: 29 Dec 2002
Posts: 19

PostPosted: Wed Jan 15, 2003 3:54 am    Post subject: Reply with quote

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
View user's profile Send private message
lost_packet
n00b
n00b


Joined: 29 Dec 2002
Posts: 19

PostPosted: Wed Jan 15, 2003 4:22 am    Post subject: Reply with quote

when I ran /etc/init.d/net.eth0 start I got failed to bring up eth0
Back to top
View user's profile Send private message
lost_packet
n00b
n00b


Joined: 29 Dec 2002
Posts: 19

PostPosted: Thu Jan 16, 2003 2:09 am    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum