Re: [webmin-l] [EXTERNAL] Re: Webmin DHCP module does not show all leases in dhcpd.leases file
"Buchanan, Ted" <[email protected]> Wed, 14 Jun 2023 08:40:31 -0400
| Newsgroups | gmane.comp.web.webmin.general |
|---|---|
| Message-ID | <CAPywyD+GMaVZM6bddMQ-Xd=fON9sgiDzX7jwQW7xEmsgJRhd3Q@mail.gmail.com> |
--===============7195940875457900320== Content-Type: multipart/alternative; boundary="000000000000967d2805fe16428d" --000000000000967d2805fe16428d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No, 159.218.43.117 does not appear on the main page List active leases button, nor does it appear in the subnet List leases. When I click on the List all active and expired leases button, I get "*The DHCPd lease file /var/lib/dhcpd/dhcpd.leases does not contain any leases."* On Wed, Jun 14, 2023 at 1:15=E2=80=AFAM Jamie Cameron <[email protected]>= wrote: > Thanks for those! Does the 159.218.43.117 lease appear when you click on > List Active Leases on the main page of the DHCP server module? There's al= so > a button on that page to show expired leases as well.. > > On 13/Jun/2023 04:59 Buchanan, Ted <[email protected]> wrote .. > > Hi Jamie, thank you for responding. I have copied from the terminal 4 > leases from the /var/lib/dhcp/dhcpd.leases file -- the first 2 leases > (159.218.146.157 and 159.218.147.8) were taken from non-contiguous sectio= ns > of the lease file and are visible when in Webmin I click on the > 159.218.144.0 network and then click the List leases button. The next 2 > leases (159.218.43.117 and 159.218.42.219) were copied from the same > dhcpd.leases file and are not visible in the Webmin lease listing. Below > that I have copied the appropriate sections from the /etc/dhcp/dhcpd.conf > file. I can not say exactly when this problem made itself known or what > change may have triggered it. Thank you for any direction you can give. > > lease 159.218.146.157 { > starts 2 2023/06/13 10:56:13; > ends 2 2023/06/13 11:56:13; > cltt 2 2023/06/13 10:56:13; > binding state active; > next binding state free; > rewind binding state free; > hardware ethernet 04:27:28:81:76:ba; > uid "\001\004'(\201v\272"; > set vendor-class-identifier =3D "MSFT 5.0 XBOX"; > client-hostname "XBOX"; > } > lease 159.218.147.8 { > starts 2 2023/06/13 10:58:30; > ends 2 2023/06/13 11:58:30; > cltt 2 2023/06/13 10:58:30; > binding state active; > next binding state free; > rewind binding state free; > hardware ethernet 00:7c:2d:87:e1:3d; > uid "\001\000|-\207\341=3D"; > client-hostname "Samsung"; > } > > lease 159.218.43.117 { > starts 6 2023/04/08 21:58:43; > ends 6 2023/04/29 21:58:43; > tstp 6 2023/04/29 21:58:43; > cltt 4 2023/04/13 20:06:50; > binding state free; > hardware ethernet 50:9a:4c:53:8e:5f; > uid "\001P\232LS\216_"; > set vendor-class-identifier =3D "MSFT 5.0"; > } > lease 159.218.42.219 { > starts 1 2022/10/03 10:14:07; > ends 1 2022/10/03 16:14:15; > tstp 1 2022/10/03 16:14:15; > cltt 1 2022/10/03 10:14:07; > binding state free; > hardware ethernet 6c:2b:59:d2:22:2c; > uid "\001l+Y\322\","; > } > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > # #### vlan 42 (WAB) > subnet 159.218.42.0 netmask 255.255.255.0 { > authoritativ e; > option broadcast-address 159.218.42.255; > option subnet-mask 255.255.255.0; > option routers 159.218.42.254; > range 159.218.42.138 159.218.42.169; > range 159.218.42.199 159.218.42.230; > } > # #### vlan 43 (Business Students) > subnet 159.218.43.0 netmask 255.255.255.0 { > option broadcast-address 159.218.43.255; > option subnet-mask 255.255.255.0; > option routers 159.218.43.254; > max-lease-time 1814400; > default-lease-time 1814400; > range 159.218.43.30 159.218.43.249; > } > # #### vlan 144 (VU Streaming) > subnet 159.218.144.0 netmask 255.255.248.0 { > option broadcast-address 159.218.144.255; > option subnet-mask 255.255.248.0; > option routers 159.218.144.254; > authoritative; > dynamic-bootp-lease-length 3600; > max-lease-time 3600; > default-lease-time 3600; > range 159.218.144.10 159.218.144.246; > range 159.218.145.5 159.218.145.249; > range 159.218.146.5 159.218.146.249; > range 159.218.147.5 159.218.147.249; > range 159.218.148.5 159.218.148.249; > range 159.218.149.5 159.218.149.249; > range 159.218.150.5 159.218.150.249; > range 159.218.151.5 159.218.151.249; > } > > On Mon, Jun 12, 2023 at 6:24=E2=80=AFPM Jamie Cameron <[email protected]= m > <http://reply_mail.cgi?new=3D1&to=3Djcameron%40webmin%2Ecom>> wrote: > >> Can you send a sample of the dhcpd.leases file that contains the leases >> that aren't showing up? The issue may be that Webmin isn't parsing the f= ile >> properly.. >> >> On 12/Jun/2023 11:05 Buchanan, Ted <[email protected] >> <http://reply_mail.cgi?new=3D1&to=3Dtbuchanan%40vinu%2Eedu>> wrote .. >> >> I'm running Oracle Enterprise Linux 8.8 as a DHCP server with ISC DHCP >> version 4.2.6-46 (from the Oracle distribution). I'm running webmin-2.0= 21 >> to help with the administration of this server. Everything used to >> work/display just fine but suddenly, when trying to list the dynamic lea= ses >> within a subnet, I get the message, "*The DHCPd lease file >> /var/lib/dhcpd/dhcpd.leases does not contain any leases that are active = at >> the current time." *If I click on the List all active and expired >> leases button, I get the message "*The DHCPd lease file >> /var/lib/dhcpd/dhcpd.leases does not contain any leases."* Clearly, >> when I use a text editor on the /var/lib/dhcpd/dhcpd.leases file, all th= e >> leases exist, new clients receive new IP addresses and existing ones are >> able to renew successfully. The leases that _DO_ show up are from wirel= ess >> subnets or subnets not directly connected to our campus. I'm not the on= ly >> one who administers this server/service so the Webmin module is really >> helpful and currently missed. Any suggestions for troubleshooting and >> correcting this issue. Everything in the /etc/dhcp/dhcpd.conf file agre= es >> with the current operation. Thank you. >> >> -- >> Ted Buchanan >> Senior Systems Administrator - Vincennes University >> [email protected] >> <https://us01.z.antigena.com/l/dqUP8cOmul_TMVZ-c9CL53KECB-ktkSzU6E7GaQmZ= 7q1_NHLLv4ZTeV8IsnrHrzMnDEEC0h9tHVEduNNeXBWbIHDyhRcdRtElIMmRzoFYDIFNp_EwMIS= YrohLRiFA3HOIGN8Hi6Hwwae~OuP51J5kKF3BmOVOoieCNiSt~j21pCG~GqPQm> >> >> >> >> - >> Forwarded by the Webmin mailing list at >> [email protected] >> <http://reply_mail.cgi?new=3D1&to=3Dwebadmin%2Dlist%40lists%2Esourceforg= e%2Enet> >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > > > -- > Ted Buchanan > Senior Systems Administrator - Vincennes University > [email protected] <http://reply_mail.cgi?new=3D1&to=3Dtbuchanan%40vinu%2= Eedu> > > > > - > Forwarded by the Webmin mailing list at > [email protected] > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > --=20 Ted Buchanan Senior Systems Administrator - Vincennes University [email protected] --000000000000967d2805fe16428d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">No, 159.218.43.117 does not appear on the main page List a= ctive leases button, nor does it appear in the subnet List leases.=C2=A0 Wh= en I click on the List all active and expired leases button, I get "<b= style=3D"margin-bottom:0px" class=3D"gmail-font-weight-normal">The DHCPd l= ease file <tt>/var/lib/dhcpd/dhcpd.leases</tt> does not contain any leases.= "</b></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gm= ail_attr">On Wed, Jun 14, 2023 at 1:15=E2=80=AFAM Jamie Cameron <<a href= =3D"mailto:[email protected]">[email protected]</a>> wrote:<br></div= ><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border= -left:1px solid rgb(204,204,204);padding-left:1ex"><p>Thanks for those! Doe= s the 159.218.43.117 lease appear when you click on List Active Leases on t= he main page of the DHCP server module? There's also a button on that p= age to show expired leases as well..=C2=A0</p> <p>On 13/Jun/2023 04:59 Buchanan, Ted <<a href=3D"mailto:tbuchanan@vin= u.edu" target=3D"_blank">[email protected]</a>> wrote .. </p> <blockquote type=3D"cite">=20 <div dir=3D"ltr"> <div>Hi Jamie, thank you for responding.=C2=A0 I have copied from the= terminal 4 leases from the /var/lib/dhcp/dhcpd.leases file -- the first 2 = leases (159.218.146.157 and 159.218.147.8) were taken from non-contiguous s= ections of the lease file and are visible when in Webmin I click on the 159= .218.144.0 network and then click the List leases button.=C2=A0 The next 2 = leases (159.218.43.117 and 159.218.42.219) were copied from the same dhcpd.= leases file and are not visible in the Webmin lease listing.=C2=A0 Below th= at I have copied the appropriate sections from the /etc/dhcp/dhcpd.conf fil= e.=C2=A0 I can not say exactly when this problem made itself known or what = change may have triggered it.=C2=A0 Thank you for any direction you can giv= e.<br></div> <div><br></div> <div>lease 159.218.146.157 {<br>=C2=A0 starts 2 2023/06/13 10:56:13;<= br>=C2=A0 ends 2 2023/06/13 11:56:13;<br>=C2=A0 cltt 2 2023/06/13 10:56:13;= <br>=C2=A0 binding state active;<br>=C2=A0 next binding state free;<br>=C2= =A0 rewind binding state free;<br>=C2=A0 hardware ethernet 04:27:28:81:76:b= a;<br>=C2=A0 uid "\001\004'(\201v\272";<br>=C2=A0 set vendor-= class-identifier =3D "MSFT 5.0 XBOX";<br>=C2=A0 client-hostname &= quot;XBOX";<br>}<br><span style=3D"font-family:monospace"><span style= =3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">lease 159.218.147.8= { </span><br> =C2=A0starts 2 2023/06/13 10:58:30; <br> =C2=A0ends 2 2023/06/13 11:58:30; <br> =C2=A0cltt 2 2023/06/13 10:58:30; <br> =C2=A0binding state active; <br> =C2=A0next binding state free; <br> =C2=A0rewind binding state free; <br> =C2=A0hardware ethernet 00:7c:2d:87:e1:3d; <br> =C2=A0uid "\001\000|-\207\341=3D"; <br> =C2=A0client-hostname "Samsung"; <br>}<br></span><br>lease 159.218.43.117 {<br>=C2=A0 starts 6 2023/04/08 21= :58:43;<br>=C2=A0 ends 6 2023/04/29 21:58:43;<br>=C2=A0 tstp 6 2023/04/29 2= 1:58:43;<br>=C2=A0 cltt 4 2023/04/13 20:06:50;<br>=C2=A0 binding state free= ;<br>=C2=A0 hardware ethernet 50:9a:4c:53:8e:5f;<br>=C2=A0 uid "\001P\= 232LS\216_";<br>=C2=A0 set vendor-class-identifier =3D "MSFT 5.0&= quot;;<br>}<br>lease 159.218.42.219 {<br>=C2=A0 starts 1 2022/10/03 10:14:0= 7;<br>=C2=A0 ends 1 2022/10/03 16:14:15;<br>=C2=A0 tstp 1 2022/10/03 16:14:= 15;<br>=C2=A0 cltt 1 2022/10/03 10:14:07;<br>=C2=A0 binding state free;<br>= =C2=A0 hardware ethernet 6c:2b:59:d2:22:2c;<br>=C2=A0 uid "\001l+Y\322= \",";<br>}<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= <br># #### vlan 42 (WAB)<br>subnet 159.218.42.0 netmask 255.255.255.0 {<br>= =C2=A0 =C2=A0 =C2=A0 =C2=A0 authoritativ e;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 option broadcast-address 159.218.42.255;= <br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 option subnet-mask 255.255.255.0;<br>=C2=A0= =C2=A0 =C2=A0 =C2=A0 option routers 159.218.42.254;<br>=C2=A0 =C2=A0 =C2= =A0 =C2=A0 range 159.218.42.138 159.218.42.169;<br>=C2=A0 =C2=A0 =C2=A0 =C2= =A0 range 159.218.42.199 159.218.42.230;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 }<b= r># #### vlan 43 (Business Students)<br>subnet 159.218.43.0 netmask 255.255= .255.0 {<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 option broadcast-address 159.218.43= .255;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 option subnet-mask 255.255.255.0;<br>= =C2=A0 =C2=A0 =C2=A0 =C2=A0 option routers 159.218.43.254;<br>=C2=A0 =C2=A0= =C2=A0 =C2=A0 max-lease-time 1814400;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 defau= lt-lease-time 1814400;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 range 159.218.43.30 1= 59.218.43.249;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 }<br># #### vlan 144 (VU Stre= aming)<br>subnet 159.218.144.0 netmask 255.255.248.0 {<br>=C2=A0 =C2=A0 =C2= =A0 =C2=A0 option broadcast-address 159.218.144.255;<br>=C2=A0 =C2=A0 =C2= =A0 =C2=A0 option subnet-mask 255.255.248.0;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0= option routers 159.218.144.254;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 authoritati= ve;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 dynamic-bootp-lease-length 3600;<br>=C2= =A0 =C2=A0 =C2=A0 =C2=A0 max-lease-time 3600;<br>=C2=A0 =C2=A0 =C2=A0 =C2= =A0 default-lease-time 3600;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 range 159.218.1= 44.10 159.218.144.246;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 range 159.218.145.5 1= 59.218.145.249;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 range 159.218.146.5 159.218.= 146.249;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 range 159.218.147.5 159.218.147.249= ;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 range 159.218.148.5 159.218.148.249;<br>= =C2=A0 =C2=A0 =C2=A0 =C2=A0 range 159.218.149.5 159.218.149.249;<br>=C2=A0 = =C2=A0 =C2=A0 =C2=A0 range 159.218.150.5 159.218.150.249;<br>=C2=A0 =C2=A0 = =C2=A0 =C2=A0 range 159.218.151.5 159.218.151.249; <br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 }</div> </div><br> <div class=3D"gmail_quote"> <div dir=3D"ltr" class=3D"gmail_attr">On Mon, Jun 12, 2023 at 6:24=E2= =80=AFPM Jamie Cameron <<a href=3D"http://reply_mail.cgi?new=3D1&to= =3Djcameron%40webmin%2Ecom" target=3D"_blank">[email protected]</a>> w= rote:<br></div> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b= order-left:1px solid rgb(204,204,204);padding-left:1ex"> <p>Can you send a sample of the dhcpd.leases file that contains the= leases that aren't showing up? The issue may be that Webmin isn't = parsing the file properly..</p>=20 <p>On 12/Jun/2023 11:05 Buchanan, Ted <<a href=3D"http://reply_m= ail.cgi?new=3D1&to=3Dtbuchanan%40vinu%2Eedu" target=3D"_blank">tbuchana= [email protected]</a>> wrote .. </p>=20 <blockquote type=3D"cite">=20 <div dir=3D"ltr">I'm running Oracle Enterprise Linux 8.8 as a= DHCP server with ISC DHCP version 4.2.6-46 (from the Oracle distribution).= =C2=A0 I'm running webmin-2.021 to help with the administration of this= server.=C2=A0 Everything used to work/display just fine but suddenly, when= trying to list the dynamic leases within a subnet, I get the message, &quo= t;<strong>The DHCPd lease file <tt>/var/lib/dhcpd/dhcpd.leases</tt> does no= t contain any leases that are active at the current time."=C2=A0 </str= ong><span>If I click on the List all active and expired leases button, I ge= t the message "</span><strong style=3D"margin-bottom:0px">The DHCPd le= ase file <tt>/var/lib/dhcpd/dhcpd.leases</tt> does not contain any leases.&= quot;</strong><span style=3D"margin-bottom:0px">=C2=A0 Clearly, when I use = a text editor on the /var/lib/dhcpd/dhcpd.leases=20 file, all the leases exist, new clients receive new IP addresses and exist= ing ones are able to renew successfully.=C2=A0 The leases that _DO_ show up= are from wireless subnets or subnets not directly connected to our campus.= =C2=A0 I'm not the only one who administers this server/service so the = Webmin module is really helpful and currently missed.=C2=A0 Any suggestions= for troubleshooting and correcting this issue.=C2=A0 Everything in the /et= c/dhcp/dhcpd.conf file agrees with the current operation.=C2=A0 Thank you.<= br></span>=20 <div><br><span class=3D"gmail_signature_prefix">-- </span><br>= =20 <div dir=3D"ltr" class=3D"gmail_signature">=20 <div dir=3D"ltr">Ted Buchanan<br>Senior Systems Administrat= or - Vincennes University<br><a href=3D"https://us01.z.antigena.com/l/dqUP8= cOmul_TMVZ-c9CL53KECB-ktkSzU6E7GaQmZ7q1_NHLLv4ZTeV8IsnrHrzMnDEEC0h9tHVEduNN= eXBWbIHDyhRcdRtElIMmRzoFYDIFNp_EwMISYrohLRiFA3HOIGN8Hi6Hwwae~OuP51J5kKF3BmO= VOoieCNiSt~j21pCG~GqPQm" target=3D"_blank">[email protected]</a><br></div>= =20 </div>=20 </div>=20 </div>=20 </blockquote><br> <br> -<br> Forwarded by the Webmin mailing list at <a href=3D"http://reply_mail.cgi?ne= w=3D1&to=3Dwebadmin%2Dlist%40lists%2Esourceforge%2Enet" target=3D"_blan= k">[email protected]</a><br> To remove yourself from this list, go to<br> <a href=3D"http://lists.source= forge.net/lists/listinfo/webadmin-list" rel=3D"noreferrer" target=3D"_blank= ">http://lists.sourceforge.net/lists/listinfo/webadmin-list</a><br>=20 </blockquote> </div><br clear=3D"all"><br><span class=3D"gmail_signature_prefix">-- <= /span><br> <div dir=3D"ltr" class=3D"gmail_signature"> <div dir=3D"ltr">Ted Buchanan<br>Senior Systems Administrator - Vince= nnes University<br><a href=3D"http://reply_mail.cgi?new=3D1&to=3Dtbucha= nan%40vinu%2Eedu" target=3D"_blank">[email protected]</a><br></div> </div>=20 </blockquote><br> <br> -<br> Forwarded by the Webmin mailing list at <a href=3D"mailto:webadmin-list@lis= ts.sourceforge.net" target=3D"_blank">[email protected]</= a><br> To remove yourself from this list, go to<br> <a href=3D"http://lists.sourceforge.net/lists/listinfo/webadmin-list" rel= =3D"noreferrer" target=3D"_blank">http://lists.sourceforge.net/lists/listin= fo/webadmin-list</a><br> </blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l= tr">Ted Buchanan<br>Senior Systems Administrator - Vincennes University<br>= <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]<= /a><br></div></div> --000000000000967d2805fe16428d-- --===============7195940875457900320== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7195940875457900320== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline - Forwarded by the Webmin mailing list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list --===============7195940875457900320==--