Display DHCP Server Information

Perform this procedure to view existing DHCP Server settings.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. View general DHCP Server information:

    show ip dhcp-server

  3. View information on a specific DHCP subnet:

    show ip dhcp-server subnet {A.B.C.D/X} detail

  4. View current lease information:

    show ip dhcp-server leases [ip {a.b.c.d} | subnet {a.b.c.d/x}]

  5. View information on a specific host:

    show ip dhcp-server host {mac} detail

  6. View log files:

    show ip dhcp-server log

Variable Definitions

The following table provides variable definitions for the show ip dhcp-server command:

Table 1. show ip dhcp-server variable definitions
Field Definition
subnet {A.B.C.D/X} [detail]

Specifies the subnet network address and mask. Include the optional detail variable to view a more detailed summary.

leases [ ip {A.B.C.D} | subnet{A.B.C.D/X} ]

Displays existing leases for the DHCP Server. To limit the display to specific leases, append one of these optional variables to the command:

  • ip {A.B.C.D}—View the lease for a specific IP address.

  • subnet {A.B.C.D/X}—View existing leases within a subnet as specified by the subnet address and mask.

host mac [detail]

Specifies the host for which you want to view information.

  • mac—Specifies the MAC address of the host.

  • detail—Include this optional variable to view a more detailed summary.