You can view the status of dynamic address leases that your DHCP server has assigned or that your DHCP client has been assigned by issuing commands from the CLI. You can also clear leases before they time out and are released automatically.
View DHCP Server Information
To view DHCP pool statistics, IP addresses the DHCP server has assigned, the corresponding MAC address, state and duration of the lease, and time the lease began, use the following command. If the address was configured as a Reserved Address, the state column indicates reserved and there is no duration or lease_time. If the lease was configured as Unlimited, the duration column displays a value of 0.
admin@PA-200> show dhcp server lease all
interface: "ethernet1/2"
Allocated IPs: 1, Total number of IPs in pool: 5. 20.0000% used
ip mac state duration lease_time
192.168.3.11 f0:2f:af:42:70:cf committed 0 Wed Jul 2 08:10:56 2014
admin@PA-200>
To view the options that a DHCP server has assigned to clients, use the following command:
admin@PA-200> show dhcp server settings all
Interface GW DNS1 DNS2 DNS-Suffix Inherit source
-------------------------------------------------------------------------------------
ethernet1/2 192.168.3.1 10.43.2.10 10.44.2.10 ethernet1/3
admin@PA-200>
Clear Leases Before They Expire Automatically
The following example shows how to release expired DHCP Leases of an interface (server) before the hold timer releases them automatically. Those addresses will be available in the IP pool again.
admin@PA-200> clear dhcp lease interface ethernet1/2 expired-only
The following example shows how to release the lease of a particular IP address:
admin@PA-200> clear dhcp lease interface ethernet1/2 ip 192.168.3.1
The following example shows how to release the lease of a particular MAC address:
admin@PA-200> clear dhcp lease interface ethernet1/2 mac f0:2c:ae:29:71:34
View DHCP Client Information
To view the status of IP address leases sent to the firewall when it is acting as a DHCP client, use the show dhcp client state <interface_name> command or the following command:
admin@PA-200> show dhcp client state all
Interface State IP Gateway Leased-until
---------------------------------------------------------------------------
ethernet1/1 Bound 10.43.14.80 10.43.14.1 70315
admin@PA-200>
Gather Debug Output about DHCP
To gather debug output about DHCP, use one of the following commands:
admin@PA-200> debug dhcpd
admin@PA-200> debug management-server dhcpd

Related Documentation