View previous topic :: View next topic |
Author |
Message |
Toraux n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Dec 2005 Posts: 7
|
Posted: Thu Dec 22, 2005 7:27 pm Post subject: DHCPCD wont work on startup[SOLVED] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
desultory Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/15563850365c4d454383627.gif)
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Thu Dec 22, 2005 8:52 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Toraux n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Dec 2005 Posts: 7
|
Posted: Fri Dec 23, 2005 12:10 am Post subject: |
|
|
Running dhcpcd ... [ !! ]
/etc/init.d/net.eth1 is created and was added to boot using rc-update add net.eth1 default |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
desultory Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/15563850365c4d454383627.gif)
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Fri Dec 23, 2005 4:12 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Toraux n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Dec 2005 Posts: 7
|
Posted: Fri Dec 23, 2005 4:31 am Post subject: |
|
|
Same problem, might help to know that running /etc/init.d/net.eth1 start has the same end result. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Fri Dec 23, 2005 11:45 am Post subject: |
|
|
/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 |
|
![](templates/gentoo/images/spacer.gif) |
Toraux n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Dec 2005 Posts: 7
|
Posted: Fri Dec 23, 2005 1:22 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Fri Dec 23, 2005 1:57 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Dan Forever Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/143389950342ad8f80d6979.jpg)
Joined: 13 Jun 2005 Posts: 79 Location: London, England
|
Posted: Fri Dec 23, 2005 2:38 pm Post subject: |
|
|
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 ![Sad :(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
feardapenguin Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/8427990053f1de73b46591.gif)
Joined: 23 Jul 2003 Posts: 414 Location: Texas
|
Posted: Fri Dec 23, 2005 5:25 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fserafin Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/118300252043843bbdc3c3a.png)
Joined: 02 Oct 2005 Posts: 126 Location: Winnipeg, Canada
|
Posted: Fri Dec 23, 2005 6:34 pm Post subject: |
|
|
i had the same problem just used dhcp instead of dhcpcd |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Toraux n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Dec 2005 Posts: 7
|
Posted: Fri Dec 23, 2005 8:00 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bart_joosten n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Apr 2005 Posts: 2
|
Posted: Fri Dec 23, 2005 9:26 pm Post subject: |
|
|
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 ![Sad :(](images/smiles/icon_sad.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
Dan Forever Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/143389950342ad8f80d6979.jpg)
Joined: 13 Jun 2005 Posts: 79 Location: London, England
|
Posted: Sat Dec 24, 2005 2:14 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Toraux n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Dec 2005 Posts: 7
|
Posted: Sat Dec 24, 2005 2:20 pm Post subject: |
|
|
name was what was the problem for me, feel like an idiot now. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Dan Forever Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/143389950342ad8f80d6979.jpg)
Joined: 13 Jun 2005 Posts: 79 Location: London, England
|
Posted: Sat Dec 24, 2005 9:01 pm Post subject: |
|
|
Dude! Stick [SOLVED] in the topic name so it can help others! ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bart_joosten n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Apr 2005 Posts: 2
|
Posted: Sun Dec 25, 2005 1:50 pm Post subject: Thank you dan |
|
|
Dan thank you forever ....
I feel like
Had a space in my hostname too.... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Nick W l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/20639875683fe171d83141d.jpg)
Joined: 07 Dec 2003 Posts: 684
|
Posted: Tue Dec 27, 2005 1:08 pm Post subject: Thankyou! |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|