Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show system services dhcp client

Syntax

Description

Display information about DHCP clients.

Options

  • none—Display DHCP information for all interfaces.

  • interface-name—(Optional) Display DHCP information for the specified interface.

  • statistics—(Optional) Display DHCP client statistics.

Required Privilege Level

view and system

Output Fields

Table 1 lists the output fields for the show system services dhcp client command. Output fields are listed in the approximate order in which they appear.

Table 1: show system services dhcp client Output Fields

Field Name

Field Description

Logical Interface Name

Name of the logical interface.

Client Status

State of the client binding.

Vendor Identifier

Vendor ID.

Server Address

IP address of the DHCP server.

Address obtained

IP address obtained from the DHCP server.

Lease Obtained at

Date and time the lease was obtained.

Lease Expires in

(EX Series switches only) Time the current lease expires in (seconds).

Lease Expires at

Date and time the lease expires.

DHCP Options

  • Name: server-identifier, Value: IP address of the name server.

  • Name: device, Value: IP address of the name device.

  • Name: domain-name, Value: Name of the domain.

Packets dropped

Total packets dropped.

Messages received

Number of the following DHCP messages received:

  • DHCPOFFER—First packet received on a logical interface when DHCP is enabled.

  • DHCPACK—When received from the server, the client sends an ARP request for that address and adds a (ARP response) timer for 4 seconds and stops the earlier timer added for DHCPACK.

  • DHCPNAK—When a DHCPNAK is received instead of DHCPACK, the logical interface sends a DHCPDISCOVER packet.

Messages sent

Number of the following DHCP messages sent:

  • DHCPDECLINE—Packet sent when ARP response is received and there is a conflict. The logical interface sends a new DHCPDISCOVER packet.

  • DHCPDISCOVER—Packet sent on the interface for which the DHCP client is enabled.

  • DHCPREQUEST—Packet sent to the DHCP server after accepting the DHCPOFFER. After sending the DHCPREQUEST, the device adds a retransmission-interval timer.

  • DHCPINFORM—Packet sent to the DHCP server for local configuration parameters.

  • DHCPRELEASE—Packet sent to the DHCP server to relinquish network address and cancel remaining lease.

  • DHCPRENEW—Packet sent to the DHCP server to renew the address. The next message to be sent will be a DHCPREQUEST message, which will be unicast directly to the server.

  • DHCPREBIND—Packet sent to any server to renew the address. The next message to be sent will be a DHCPREQUEST message, which will be broadcast.

Sample Output

show system services dhcp client

Sample Output

show system services dhcp client ge-0/0/34.0

Sample Output

show system services dhcp client statistics

Release Information

Command introduced in Junos OS Release 8.5.

Command introduced in Junos OS Release 9.0 for EX Series switches.