Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Verifying DHCP Server Configuration

 

This topic discusses on various steps involved in verifying the DHCP server configuration.

Verifying DHCP Server Binding and Server Statistics

Purpose

View or clear information about client address bindings and statistics for the extended DHCP local server.

Note

If you delete the DHCP server configuration, DHCP server bindings might still remain. To ensure that DHCP bindings are removed, issue the clear dhcp server binding command before you delete the DHCP server configuration.

Action

  • To display the address bindings in the client table on the extended DHCP local server:

  • To display extended DHCP local server statistics:

  • To display the address bindings in the client table on the extended DHCP local server at routing-instance level:

  • To display extended DHCP local server statistics at routing-instance level:

  • To clear the binding state of a DHCP client from the client table on the extended DHCP local server at routing-instance level:

  • To clear all extended DHCP local server statistics:

  • To clear the binding state of a DHCP client from the client table on the extended DHCP local server:

  • To clear all extended DHCP local server statistics at routing-instance level:

Viewing DHCP Bindings (Legacy DHCP)

Use the CLI command show system services dhcp binding to view information about DHCP address bindings, lease times, and address conflicts.

The following example shows the binding type and lease expiration times for IP addresses configured on a router that supports a DHCP server:

user@host> show system services dhcp binding

Enter an IP address to show binding for a specific IP address:

user@host> show system services dhcp binding 192.168.1.3

Use the detail option to show detailed binding information:

user@host> show system services dhcp binding detail

Viewing DHCP Address Pools (Legacy DHCP)

Use the CLI show system services dhcp pool command to view information about DHCP address pools.

The following example show address pools configured on a DHCP server:

user@ host> show system services dhcp pool

Viewing and Clearing DHCP Conflicts (Legacy DHCP)

When a client receives an IP address from the DHCP server, the client performs a series of ARP tests to verify that the IP address is available and no conflicts exist. If the client detects an address conflict, the client notifies the DHCP server about the conflict and may request another IP address from the DHCP server.

The DHCP server keeps a log of all conflicts and removes addresses with conflicts from the pool. These addresses remain excluded until you manually clear the conflicts list with the clear system services dhcp conflict command. Use the CLI command show system services dhcp conflict to show conflicts.

user@host> show system services dhcp conflict

Use the clear system services dhcp conflicts command to clear the conflicts list and return IP addresses to the pool. The following command shows how to clear an address on the server that has a conflict:

user@host> clear system services dhcp conflict 192.168.1.5

For more information about CLI commands you can use with the DHCP server, see the CLI Explorer.