FS#11849 - /etc/conf.d/dhcpcd could be depreciated in favor of /etc/dhcpcd.conf
Attached to Project:
Arch Linux
Opened by solsTiCe (zebul666) - Wednesday, 22 October 2008, 17:26 GMT
Last edited by Ronald van Haren (pressh) - Wednesday, 12 November 2008, 20:55 GMT
Opened by solsTiCe (zebul666) - Wednesday, 22 October 2008, 17:26 GMT
Last edited by Ronald van Haren (pressh) - Wednesday, 12 November 2008, 20:55 GMT
|
Details
Description:
i just noticed that there is a /etc/dhcpcd.conf file now. and i need to use it to disable the dns server look up of dhcpcd. there is no more a --nodns switch so why not use /etc/dhcpcd.conf instead of /etc/conf.d/dhcpcd it's an idea. i have not investigated if it could be done on arch. in fact all options in /etc/conf.d/dhcpcd by default are useless because there are the default used by dhcpcd timeout is by default 30 hostname is by default the current hostname noip4all could be set in /etc/dhcpcd.conf as you see |
This task depends upon
Closed by Ronald van Haren (pressh)
Wednesday, 12 November 2008, 20:55 GMT
Reason for closing: Implemented
Wednesday, 12 November 2008, 20:55 GMT
Reason for closing: Implemented
Would someone be willing to search and update wiki documentation to mention this change?
We also should modify our /etc/rc.d/network script.
And have a look on the /etc/dhcpcd.conf options. With version 4 of dhcpcd AFAIK there is a major change in carrier/link handling. You could see this when on ethernet you remove your cable.
dhcpcd -d eth0:
It fails cause no carrier is detected, and it configured eth0 not with a IPv4LL/Zeroconf IP as some would assume when looking at the man page-> Local Link configuration.
dhcpcd -d -K eth0:
Disabling carrier status checking leads to the "normal" behavior: eth0 got an 169.254.x.x IP and dhcpcd forks to background and look if it could get a proper lease.
In our current /e/conf.d/dhcpcd.conf we use Option -L to disable Zeroconf handling (this was a feature request). But i think this is mostly usefull on the install ISO, to prevent the user from thinking: i have a network connection. On normal running systems i would prefer to leave Zeroconf enabled, but (with -K/nolink) we must make sure that the dhcpcd not got stopped if no carrier is available.
:
Also if we (or one) prefer to disable Zeroconf (-L/noipv4ll) there is a problem with V4 (when there is for some circumstands no link/carrier):
dhcpcd -d -L eth0:
No device config and dhcpcd fails and exits. No further tries.
dhcpcd -d -L -K eth0:
Also fails like above, although we disable carrier check with -K
Only solution for this (no link, but dhcpcd should wait for carrier but we don't want a Zeroconf IP) is:
dhcpcd -d -L -b eth0
That means dhcpcd should go immidiatly to background.
You see there are some things to check IMHO, as a result of version 4 we have a lot of problems in forum posts etc. The carrier/link problem appears to get often a problem on wireless, pcmcia ethernet cards or buggy routers.
Adding -b to DHCPCD_ARGS is imo not a very good solution as it returns always success just like ipv4all.
If someone could step up and change the wiki entries (there are quite some I think) that would be great. If not I hope I come to it in the next couple of days.