> Source: [sk183665](https://support.checkpoint.com/results/sk/sk183665)

# sk183665 - Unable to accurately count active DHCP leases on a Gaia DHCP server

| Property | Value |
|----------|-------|
| Solution ID | sk183665 |
| Date Created | 2025-07-20 |
| Last Modified | 2025-11-02 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R82, R81.20, R81.10 (EOS) |
| OS | Gaia |

## Symptoms

- * The administrator cannot determine the number of currently leased IP addresses from a specific Dynamic Host Configuration Protocol (DHCP) pool (examples: 10.5.0.0/20, 10.5.0.1 - 10.5.15.254) on a Check Point Gaia DHCP Server.

* Existing methods, such as commands from [sk104417](https://support.checkpoint.com/results/sk/sk104417), produce excessively large and unusable output for large subnets, and do not output a count of active DHCP leases.

* The `dhcpd.leases` file contains multiple entries for the same IP address, which results in inaccurate counts due to duplication.

## Cause

The Gaia DHCP server stores multiple entries for the same IP address in the `dhcpd.leases` file, including historical and duplicate records. Because of this, simple search or count operations overestimate the number of currently active leases. No built-in Gaia command exists to return the number of unique active leases for a specific subnet pool.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
