<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:DengXian;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        font-size:12.0pt;
        font-family:SimSun;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:DengXian;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:SimSun;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:DengXian;
        mso-ligatures:none;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="#0563C1" vlink="#954F72" style="word-wrap:break-word;text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">For issue “dhclient doesn't renew IP address lease after system time changes”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">dhcp version: 4.4.1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">bind version: 9.11<o:p></o:p></span></p>
<p><span lang="EN-US">Check relative issue:<br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1729211" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1729211</a><br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1093803" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1093803</a><br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=916116" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=916116</a><o:p></o:p></span></p>
<p><span lang="EN-US">Patches is dhcp-system_time_changed.patch for dhcp and bind-9.11-rh1732883.patch for bind.<br>
<a href="https://git.centos.org/rpms/dhcp/blob/c7/f/SOURCES/dhcp-system_time_changed.patch" target="_blank">https://git.centos.org/rpms/dhcp/blob/c7/f/SOURCES/dhcp-system_time_changed.patch</a><o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN" style="font-size:12.0pt;font-family:SimSun">There was a discussion in history, redhat has a related fix,
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://lists.isc.org/mailman/htdig/dhcp-users/2014-September/018174.html">https://lists.isc.org/mailman/htdig/dhcp-users/2014-September/018174.html</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<pre><span lang="EN">I backport patch,patch use monotonic time</span><span lang="EN-US"> replace gettimeofday<o:p></o:p></span></pre>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN" style="font-size:12.0pt;font-family:SimSun">but dhcpv6 still seems to lose the global address, and there is no merge patch upstream.</span><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<pre><span lang="EN-US">backward jump/forward jump<o:p></o:p></span></pre>
<pre><span lang="EN-US">#date <o:p></o:p></span></pre>
<pre><span lang="EN-US">Tue Jun 20 11:04:53 UTC 2023<o:p></o:p></span></pre>
<pre><span lang="EN-US">#date -s "Tue Jun 20 08:04:53 UTC 2023"<o:p></o:p></span></pre>
<pre><span lang="EN-US">Tue Jun 20 08:04:53 UTC 2023<o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">~# ifconfig eth0<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">eth0 Link encap:Ethernet  HWaddr 58:77:78:80:F0:55 
<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          inet6 addr: fdc0:2001:dd8:10::2/128 Scope:Global<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          inet6 addr: fe80::5100:7fff:fe8f:f055/64 Scope:Link<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          UP BROADCAST RUNNING  MTU:2000  Metric:1<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          RX packets:231 errors:0 dropped:0 overruns:0 frame:0<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          TX packets:368 errors:0 dropped:0 overruns:0 carrier:0<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          collisions:0 txqueuelen:1000
<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          RX bytes:24290 (23.7 KiB)  TX bytes:253899 (247.9 KiB)<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun"><o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun"><o:p> </o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">ifconfig eth0<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">eth0 Link encap:Ethernet  HWaddr 58:77:78:80:F0:55 
<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          inet6 addr: fe80::5100:7fff:fe8f:f055/64 Scope:Link<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          UP BROADCAST RUNNING  MTU:2000  Metric:1<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          RX packets:298 errors:0 dropped:0 overruns:0 frame:0<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          TX packets:506 errors:0 dropped:0 overruns:0 carrier:0<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          collisions:0 txqueuelen:1000
<o:p></o:p></span></p>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:12.0pt;font-family:SimSun">          RX bytes:29286 (28.5 KiB)  TX bytes:435628 (425.4 KiB)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<pre><span lang="EN-US">Many thanks in advance,<o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-US">BR/SK<o:p></o:p></span></p>
</div>
</body>
</html>