Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCPCD wont work on startup[SOLVED]
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
Toraux
n00b
n00b


Joined: 22 Dec 2005
Posts: 7

PostPosted: Thu Dec 22, 2005 7:27 pm    Post subject: DHCPCD wont work on startup[SOLVED] Reply with quote

I set up my /etc/conf.d/net as they said you should in the installation handbook and it wont work on startup. However when I manually type:

dhcpcd eth1

then I can get on the net. Anyone think they can help me?

Thanks in advance.

-Toraux


Last edited by Toraux on Sun Dec 25, 2005 3:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Thu Dec 22, 2005 8:52 pm    Post subject: Reply with quote

Did you create /etc/init.d/net.eth1 and set it as a boot service?

If so what error does it give at boot time?


Last edited by desultory on Fri Dec 23, 2005 4:10 am; edited 1 time in total
Back to top
View user's profile Send private message
Toraux
n00b
n00b


Joined: 22 Dec 2005
Posts: 7

PostPosted: Fri Dec 23, 2005 12:10 am    Post subject: Reply with quote

Running dhcpcd ... [ !! ]

/etc/init.d/net.eth1 is created and was added to boot using rc-update add net.eth1 default
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Fri Dec 23, 2005 4:12 am    Post subject: Reply with quote

Try:
Code:
rc-update del net.eth1 default
rc-update add net.eth1 boot

Sometimes that will work where default does not.
Back to top
View user's profile Send private message
Toraux
n00b
n00b


Joined: 22 Dec 2005
Posts: 7

PostPosted: Fri Dec 23, 2005 4:31 am    Post subject: Reply with quote

Same problem, might help to know that running /etc/init.d/net.eth1 start has the same end result.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Fri Dec 23, 2005 11:45 am    Post subject: Reply with quote

/etc/conf.d/net can be empty with the current baselayout if you want to get IP by DHCP.

Quote:
cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).




Do this and then remake the symlink from net.eth1 to net.lo.

Also would be worth checking your logs.
Back to top
View user's profile Send private message
Toraux
n00b
n00b


Joined: 22 Dec 2005
Posts: 7

PostPosted: Fri Dec 23, 2005 1:22 pm    Post subject: Reply with quote

Just tried that... ln -s net.lo net.eth1 is the command to create the symbolic link you asked for ? If that is the case its still not working, what should I look for in my logs in particular?
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Fri Dec 23, 2005 1:57 pm    Post subject: Reply with quote

Provided you are in /etc/init.d, then yes. Do ls -l there to be sure.

You are looking for more details of the error when dhcpcd fails at boot.
Back to top
View user's profile Send private message
Dan Forever
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2005
Posts: 79
Location: London, England

PostPosted: Fri Dec 23, 2005 2:38 pm    Post subject: Reply with quote

I have the exact same problem with eth0

Code:
/etc/init.d/net.eth0 start
* starting eth0
*   bringing up eth0
*      dhcp
*         Running dhcpcd...       [!!]


However, manual activation works:
Code:
ifconfig eth0 up
dhcpcd eth0


It's an intel pro 100+
It's loaded as a module with "e100" in /etc/modules.autoload.d/kernel-2.6

I don't know what is broken about net.eth0 :(
Back to top
View user's profile Send private message
feardapenguin
Guru
Guru


Joined: 23 Jul 2003
Posts: 414
Location: Texas

PostPosted: Fri Dec 23, 2005 5:25 pm    Post subject: Reply with quote

Check to make sure you don't have bash version 3.1 (or higher). It has a problem with init scripts. net is one of the casualties. bash-3.0-r14 works fine.
Back to top
View user's profile Send private message
fserafin
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2005
Posts: 126
Location: Winnipeg, Canada

PostPosted: Fri Dec 23, 2005 6:34 pm    Post subject: Reply with quote

i had the same problem just used dhcp instead of dhcpcd
Back to top
View user's profile Send private message
Toraux
n00b
n00b


Joined: 22 Dec 2005
Posts: 7

PostPosted: Fri Dec 23, 2005 8:00 pm    Post subject: Reply with quote

Code:

# bash --version
GNU bash, version 3.00.16(1)-release (i686-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.


Don't think bash is the problem.
Back to top
View user's profile Send private message
bart_joosten
n00b
n00b


Joined: 15 Apr 2005
Posts: 2

PostPosted: Fri Dec 23, 2005 9:26 pm    Post subject: Reply with quote

Dan Forever wrote:
I have the exact same problem with eth0

Code:
/etc/init.d/net.eth0 start
* starting eth0
*   bringing up eth0
*      dhcp
*         Running dhcpcd...       [!!]


However, manual activation works:
Code:
ifconfig eth0 up
dhcpcd eth0


It's an intel pro 100+
It's loaded as a module with "e100" in /etc/modules.autoload.d/kernel-2.6

I don't know what is broken about net.eth0 :(


Well Dan, I've exactly the same problem and can't figure it out myself, yes yes yes, I'm a noob, I know, first time installing gentoo on my voodoo machine ;).
But yeah, automaticly loading doesn't work and manually everything works fine...
Strange for me, easy for a guru :p
Back to top
View user's profile Send private message
Dan Forever
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2005
Posts: 79
Location: London, England

PostPosted: Sat Dec 24, 2005 2:14 pm    Post subject: Reply with quote

I figured out my problem! It's due to one of two things. Either the 0 I had set to override in /etc/conf.d/domainname or the space in the hostname at /etc/conf.d/hostname. I know, naughty of me for doing both. I suspect it's more likely to be the space being the culprit though.
Back to top
View user's profile Send private message
Toraux
n00b
n00b


Joined: 22 Dec 2005
Posts: 7

PostPosted: Sat Dec 24, 2005 2:20 pm    Post subject: Reply with quote

name was what was the problem for me, feel like an idiot now.
Back to top
View user's profile Send private message
Dan Forever
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2005
Posts: 79
Location: London, England

PostPosted: Sat Dec 24, 2005 9:01 pm    Post subject: Reply with quote

Dude! Stick [SOLVED] in the topic name so it can help others! :wink:
Back to top
View user's profile Send private message
bart_joosten
n00b
n00b


Joined: 15 Apr 2005
Posts: 2

PostPosted: Sun Dec 25, 2005 1:50 pm    Post subject: Thank you dan Reply with quote

Dan thank you forever ....

I feel like :oops: :oops: :oops: :oops: :oops: :oops:
Had a space in my hostname too....
Back to top
View user's profile Send private message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Tue Dec 27, 2005 1:08 pm    Post subject: Thankyou! Reply with quote

I've been on this for 2 sodding days now, and again it was a space in the hostname!

Thankyou!

Might i suggest this be made sticky?
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