RE: TIMEOUT Reason Code
David Hauck
Fri Jun 23 16:43:06 2017
Hi Roy,
On Friday, June 23, 2017 9:17 AM, Roy Marples wrote:
> On 23/06/2017 16:34, David Hauck wrote:
>> OK. See below, but I *still* see no difference between persistent and
>> non-persistent: I never see the last lease take effect when
>> 'lastlease' is specified - both cases result in dhcpcd exiting on the
>> timeout (and no TIMEOUT reason code passed to the hooks).
>>
>>> Does this help?
>>
>> Perhaps, but please see my other response re: different behaviour
>> between debug and non-debug.
>>
>> As of right now neither of these things (TIMEOUT reasons code to hook
>> and 'lastlease') are working for me.
>
> OK, I'm going to stop guessing.
;)
> Please post your dhcpcd.conf and the result of ps ax | grep dhcpcd when it's running.
Former:
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Inform the DHCPv4 server of our hostname for DDNS.
# This has been superceded by the FQDN option below, but is included
# by default for servers which do not understand it.
hostname
# Inform the DHCP server of our hostname for DDNS
# and/or query for what it should be.
fqdn
# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
duid
# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit
# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Most distributions have NTP support.
# option ntp_servers
# Respect the network MTU.
# Some interface drivers reset when changing the MTU so disabled by default.
#option interface_mtu
# A ServerID is required by RFC2131.
require dhcp_server_identifier
# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname
# Use this to define the lease time (in seconds).
#leasetime 60
# Use a 90 second timeout after which we abort the DHCP negotiation
timeout 30
reboot 30
# Use an infinite timeout so we never fallback to a static IP.
#timeout 0
# Don't attempt to obtain an IPv4LL address if we failed to get one via DHCP.
noipv4ll
# Only configure IPv4.
#ipv4only
# Be sure to handshake our vendor code (for interoperability with NNIT).
vendor 01,"0"
# Do not want stateless autoconf if dhcp is used
ipv6ra_noautoconf
# Use the last lease if there is one when no DHCP server is available (and
# until the lease actually expires)
lastlease
persistent
#debug
...and:
[NetAcq99793214:~]# ps -ef |grep dhcpcd
root 11452 1 0 08:58 ? 00:00:00 dhcpcd -4 -h NetAcq99793214 eth0
root 11476 11469 0 09:40 pts/0 00:00:00 grep dhcpcd
Thanks,
-David
> Roy
Archive administrator: postmaster@marples.name