Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show system services dhcp binding

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show system services dhcp binding
<detail>
<address>

Description

(EX Series switches only) Display Dynamic Host Configuration Protocol (DHCP) server client binding information.

Options

none

Display brief information about all active client bindings.

detail

(Optional) Display detailed information about all active client bindings.

address

(Optional) Display detailed client binding information for the specified IP address only.

Required Privilege Level

view and system

Output Fields

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

Table 1: show system services dhcp binding Output Fields

Field Name

Field Description

Level of Output

Allocated address

List of IP addresses the DHCP server has assigned to clients.

All levels

MAC address

Corresponding media access control (MAC) hardware address of the client.

All levels

Client identifier

(address option only) Client's unique identifier (represented by an ASCII string or hexadecimal digits). This identifier is used by the DHCP server to index its database of address bindings.

All levels

Binding Type

Type of binding assigned to the client. DHCP servers can assign a dynamic binding from a pool of IP addresses or a static binding to one or more specific IP addresses.

All levels

Lease Expires at

Time the lease expires or never for leases that do not expire.

All levels

Lease Obtained at

(address option only) Time the client obtained the lease from the DHCP server.

detail

State

Status of the binding. Bindings can be active or expired.

detail

Pool

Address pool that contains the IP address assigned to the client.

detail

Request received on

Interface on which the DHCP message exchange occurs. The IP address pool is configured based on the interface's IP address. If a relay agent is used, its IP address is also displayed.

detail

DHCP options

User-defined options created for the DHCP server. If no options have been defined, this field is blank.

detail

Sample Output

show system services dhcp binding

content_copy zoom_out_map
user@host> show system services dhcp binding

Allocated address   MAC address        Binding Type   Lease expires at
192.168.1.2         00:a0:12:00:12:ab  static         never
192.168.1.3         00:a0:12:00:13:02  dynamic        2004-05-03 13:01:42 PDT

show system services dhcp binding address

content_copy zoom_out_map
user@host> show system services dhcp binding 192.168.1.3             

DHCP binding information:
Allocated address: 192.168.1.3
Mac address: 00:a0:12:00:12:ab
Client identifier
61 63 65 64 2d 30 30 3a 61 30 3a 31 32 3a 30 30aced-00:a0:12:00 
3a 31 33 3a 30 32:13:02 

Lease information:
    Binding Type dynamic
    Obtained at 2004-05-02 13:01:42 PDT
    Expires at 2004-05-03 13:01:42 PDT

show system services dhcp binding address detail

content_copy zoom_out_map
user@host> show system services dhcp binding 192.168.1.3 detail             
DHCP binding information:
Allocated address        192.168.1.3
MAC address  00:a0:12:00:12:ab
    Pool              192.168.1.0/24
Request received on fe-0/0/0, relayed by 192.168.4.254

Lease information:
    Type              DHCP
    Obtained at       2004-05-02 13:01:42 PDT
    Expires at        2004-05-03 13:01:42 PDT
State active

DHCP options:
    Name: name-server, Value: { 6.6.6.6, 6.6.6.7 }
    Name: domain-name, Value: mydomain.tld
    Code: 19, Type: flag, Value: off
    Code: 40, Type: string, Value: domain.tld
    Code: 32, Type: ip-address, Value: 3.3.3.33

Release Information

Command introduced before Junos OS Release 7.4.

footer-navigation