<div class="gmail_quote">On Sat, Jul 10, 2010 at 1:07 AM, Glenn Satchell <span dir="ltr"><<a href="mailto:glenn.satchell@uniq.com.au">glenn.satchell@uniq.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div class="h5">
<br></div></div>
The initial response to a DHCP DISCOVER will be to issue a lease of MCLT, then the next renew will be your specified lease time. It works this way because the DHCPOFFER is sent before communicating to the partner server.<br>
</blockquote></div><br>Thanks for the info.  We have a very short MCLT (300 seconds) and 12 hour lease time.  I can confirm that our 'normal' clients behave in the way you describe:<br><br>tc@box:~$ sudo udhcpc -i wlan0 --foreground<br>
udhcpc (v1.14.3) started<br>Sending discover...<br>Sending discover...<br>Sending select for 172.24.120.141...<br>Lease of 172.24.120.141 obtained, lease time 300<br>deleting routers<br>route: SIOCDELRT: No such process<br>
adding dns 10.4.4.10<br>adding dns 172.24.98.22<br>adding dns 172.24.98.21<br>adding dns 10.5.40.1<br>Sending renew...<br>Sending renew...<br><br><wait...><br><br>Sending renew...<br>Lease of 172.24.120.141 obtained, lease time 43200<br>
deleting routers<br>route: SIOCDELRT: No such process<br>adding dns 10.4.4.10<br>adding dns 172.24.98.22<br>adding dns 172.24.98.21<br>adding dns 10.5.40.1<br><br>So, that part looks good.<br><br>Now our Cisco access points seem to be actually sending the 300 second lease time in their DHCPREQUEST:<br>
<br>19:20:06.439558 IP (tos 0x0, ttl 254, id 18499, offset 0, flags [none], proto: UDP (17), length: 336) CLIENT.bootpc > SERVER.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:26:0b:c9:eb:e4 (oui Unknown), length: 308, xid:0x97f, flags:<br>
 [none] (0x0000)<br>          Client IP: <a href="http://phx3-wap-97-189.phx3.amazon.com">phx3-wap-97-189.phx3.amazon.com</a><br>          Client Ethernet Address: 00:26:0b:c9:eb:e4 (oui Unknown)<br>          Vendor-rfc1048:<br>
            DHCP:REQUEST            MSZ:1152<br>            CID:[ether]00:26:0b:c9:eb:e4<br>            LT:300<br>            HN:"ACCESS-POINT"<br>            PR:SM+NS+DN+WNS+DG+LOG+SR+T150+VO<br>            VC:"Cisco AP c1250"<br>
<br>which seems to be followed by the reply containing the 300 second lease time:<br><br>19:20:06.445402 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], proto: UDP (17), length: 331) SERVER.bootps > CLIENT.bootpc: [bad udp cksum aa72!] BOOTP/DHCP, Reply, length: 303, xid:0x97f, flags: [none] (0x0000)<br>
          Client IP: BLAH<br>          Your IP: BLAH<br>          Server IP: BLAH<br>          Client Ethernet Address: 00:26:0b:c9:eb:e4 (oui Unknown)<br>          file "filename"<br>          Vendor-rfc1048:<br>
            DHCP:ACK<br>            SID:HOST<br>            LT:300<br>            SM:255.255.255.0<br><br>The DHCPREQUEST from other clients does not ask for a particular lease time, so they get the 12 hour one from the server.<br>
<br>Soooo, I intend to bug Cisco about their dhcp client implimentation.  But is there anything I can do to fix this from my end?  I see the min-lease-time option.  Will that help?<br><br>--<br>Matt<br><br><br><br>