Location of DHCP-Lease-File

Post Reply
sitig
Member
Posts: 117
Joined: 15 Jul 2008 09:53
Location: Fiji

Location of DHCP-Lease-File

Post by sitig »

Hi All

I need help locating the dhcp-lease-file on 6860. I need to flush all the leases.

Grateful for your assistance.

Cheers

Siti
Every adversity has within it a seed of an equivalent or greater benefit....
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1886
Joined: 01 Jul 2008 10:51
Location: Germany

Re: Location of DHCP-Lease-File

Post by silvio »

Hi,
All the dhcp-files are within /flash/switch-folder. Look into the dhcpbind-file. You can delete this.
regards
Silvio
sitig
Member
Posts: 117
Joined: 15 Jul 2008 09:53
Location: Fiji

Re: Location of DHCP-Lease-File

Post by sitig »

Hi Silvio

Thanks for your response.

Yes, I noticed the dhcpBind.db file but it seems to be empty. I used vi and the "more" command to view the contents but it seems to be empty.

I've logged an ESR, any update from AL support will be updated here.

Cheers
Siti
Every adversity has within it a seed of an equivalent or greater benefit....
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1886
Joined: 01 Jul 2008 10:51
Location: Germany

Re: Location of DHCP-Lease-File

Post by silvio »

Hi,
actual I have a 6450 with dhcp server ... but only one dhcp client there:

Code: Select all

SW13_Silvio> show dhcp-server leases

Total leases: 1

IP Address        MAC address        Lease Granted         Lease Expiry          Type
-----------------+------------------+---------------------+---------------------+-----------
172.22.20.101     dc:08:56:03:44:60  MAY 21 16:49:16 2018  MAY 21 18:29:16 2018  DYNAMIC

SW13_Silvio> ls

Listing Directory /flash/switch:

drw      2048 May 21 16:50 ./
drw      2048 May  9 16:26 ../
drw      2048 Apr 11 04:52 avlan/
-rw      1732 Apr 11 04:52 label.txt
-rw      1412 Dec 27  2017 wv-cert.pem
-rw      1676 Dec 27  2017 wv-key.pem
-rw    105613 Dec 27  2017 certs.pem
drw      2048 May  9 16:26 cloud/
-rw        20 May  9 16:27 snmp.engine
-rw        12 May  9 16:27 last_reboot
-rw         0 Apr  6 08:27 pre_banner.txt
-rw      1732 Dec 27  2017 label.txt.bk
-rw         1 May  8 12:13 dhcpd.pcy
-rw       435 May  8 12:15 dhcpd.conf
-rw       435 May  9 16:27 dhcpd.conf.lastgood
-rw       576 May 21 16:49 dhcpSrv.db

        54865920 bytes free

SW13_Silvio> more dhcpSrv.db
172.022.020.103 00-11-00-11-00-02 ____H____ ____D____ 0 0000000000 0000000000 __
__R____ ____V____ ____C____

172.022.020.101 dc-08-56-03-44-60 ____H____ vlan10.home 2 1526914156 1526920156
____R____ HAP.1-OAW-AP1231-RW ____C____

172.022.020.100 00-11-6b-a0-7f-9b ____H____ ____D____ 0 0000000000 0000000000 __
__R____ ____V____ ____C____

SW13_Silvio>
The time of the last "granted" is same like the time of the file. So it seams to me, that the leases there are stored.
What happens if you disable (and restart) your dhcp (maybe with a short lease time within your conf-file)? Are you able to delete with this all your entries?
In network guide you find the config of the pcy-file. Maybe this is the way to delete all your leases: ActiveLease Expiration = Full_delete (or ActiveLease Expiration = on I am not sure).

regards
Silvio
sitig
Member
Posts: 117
Joined: 15 Jul 2008 09:53
Location: Fiji

Re: Location of DHCP-Lease-File

Post by sitig »

Hi Silvio

I've managed to achieve this.

In the 6860, the file is dhcp.db instead of dhcpSrv.db.

The following was what I did:
- disable the dhcp-server
- copy dhcp.db to olddhcp.db
- delete dhcp.db file
- enable the dhcp-server
- restart the dhcp-server

After the above procedure, I can now see new leases using the lease time configured in the dhcpd.conf file.

This is my dhcpd.pcy file content:
HonorRequestLeaseTime=False
RegisteredClientsOnly=False
ForceClass=None
ActiveLeaseExpiration=On

Thanks a lot for your assistance.

Cheers
Siti
Every adversity has within it a seed of an equivalent or greater benefit....
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1886
Joined: 01 Jul 2008 10:51
Location: Germany

Re: Location of DHCP-Lease-File

Post by silvio »

Hi,
thanks for the feedback and your solution. That will help us.
regards
Silvio
Post Reply

Return to “OmniSwitch 6860 / 6860E”