Re: timeout option
Bartłomiej Syryjczyk
Tue Mar 29 10:11:03 2011
W dniu 2011-03-29 11:30, Roy Marples pisze:
What part of that does not work? A quick test shows that it works as I
described above, hence me asking what your expected behaviour is.
Look at my logs:
---
localhost ~ # time dhcpcd -t 3 eth2
dhcpcd[7942]: version 5.2.11 starting
dhcpcd[7942]: eth2: rebinding lease of 192.168.74.105
dhcpcd[7942]: timed out
real 0m3.048s
user 0m0.015s
sys 0m0.020s
localhost ~ # tail -n 3 /etc/dhcpcd.conf
noipv4ll
interface eth2
timeout 5
localhost ~ # time dhcpcd -f /etc/dhcpcd.conf eth2
dhcpcd[7963]: version 5.2.11 starting
dhcpcd[7963]: eth2: rebinding lease of 192.168.74.105
dhcpcd[7963]: eth2: broadcasting for a lease
dhcpcd[7963]: timed out
real 0m30.049s
user 0m0.013s
sys 0m0.021s
---
So the option timeout for this interface is ignored
And the same for dhcpcd 4.0.15
---
localhost ~ # time dhcpcd -t 3 eth2
eth2: dhcpcd 4.0.15 starting
eth2: broadcasting for a lease
eth2: timed out
real 0m3.159s
user 0m0.026s
sys 0m0.026s
localhost ~ # tail -n 3 /etc/dhcpcd.conf
noipv4ll
interface eth2
timeout 5
localhost ~ # time dhcpcd -f /etc/dhcpcd.conf eth2
eth2: dhcpcd 4.0.15 starting
eth2: broadcasting for a lease
eth2: timed out
real 0m5.072s
user 0m0.019s
sys 0m0.030s
---
--
guzik
Archive administrator: postmaster@marples.name