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 dhcp server binding

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show dhcp server binding
<address>
<interfaces-vlan><brief | detail | summary>
<interface interface-name>
<interface-tag interface-tag-name>
<interfaces-vlan>
<interfaces-wildcard>
<logical-system logical-system-name>
<routing-instance routing-instance-name>

Description

Display the address bindings in the client table on the extended Dynamic Host Configuration Protocol (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.

Options

address

(Optional) Display DHCP binding information for a specific client identified by one of the following entries:

  • ip-address—The specified IP address.

  • mac-address—The specified MAC address.

  • session-id—The specified session ID.

brief | detail | summary

(Optional) Display the specified level of output about active client bindings. The default is brief, which produces the same output as show dhcp server binding.

interface interface-name

(Optional) Display information about active client bindings on the specified interface. You can optionally filter on VLAN ID and SVLAN ID.

interface-tag interface-tag-name

(Optional) Displays the binding information for the specified interface-tag.

interfaces-vlan

(Optional) Show the binding state information on the interface VLAN ID and S-VLAN ID.

interfaces-wildcard

(Optional) The set of interfaces on which to show the binding state information. This option supports the use of the wildcard character (*).

logical-system logical-system-name

(Optional) Display information about active client bindings for DHCP clients on the specified logical system.

routing-instance routing-instance-name

(Optional) Display information about active client bindings for DHCP clients on the specified routing instance.

Required Privilege Level

view

Output Fields

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

Table 1: show dhcp server binding Output Fields

Field Name

Field Description

Level of Output

number clients, (number init, number bound, number selecting, number requesting, number renewing, number releasing)

Summary counts of the total number of DHCP clients and the number of DHCP clients in each state.

summary

IP address

IP address of the DHCP client.

briefdetail

Session Id

Session ID of the subscriber session.

briefdetail

Hardware address

Hardware address of the DHCP client.

briefdetail

Expires

Number of seconds in which lease expires.

briefdetail

State

State of the address binding table on the extended DHCP local server:

  • BOUND—Client has active IP address lease.

  • FORCERENEW—Client has received forcerenew message from server.

  • INIT—Initial state.

  • RELEASE—Client is releasing IP address lease.

  • RENEWING—Client sending request to renew IP address lease.

  • REQUESTING—Client requesting a DHCP server.

  • SELECTING—Client receiving offers from DHCP servers.

briefdetail

Interface

Interface on which the request was received.

brief

Lease Expires

Date and time at which the client’s IP address lease expires.

detail

Lease Expires in

Number of seconds in which lease expires.

detail

Lease Start

Date and time at which the client’s IP address lease started.

detail

Lease time violated

Lease time violation has occurred.

detail

Last Packet Received

Date and time at which the router received the last packet.

detail

Incoming Client Interface

Client’s incoming interface.

detail

Interface tag

Name of the Interface tag.

detail

Client Interface Svlan Id

S-VLAN ID of the client’s incoming interface.

detail

Client Interface Vlan Id

VLAN ID of the client’s incoming interface.

detail

Demux Interface

Name of the IP demultiplexing (demux) interface.

detail

Server IP Address or Server Identifier

IP address of DHCP server.

detail

Server Interface

Interface of DHCP server.

detail

Client Pool Name

Name of address pool used to assign client IP address lease.

detail

Liveness Detection State

State of the liveness detection status for a subscriber’s Bidirectional Forwarding Detection (BFD) protocol session:

Note:

This output field displays status only when liveness detection has been explicitly configured for a subscriber and the liveness detection protocol is actively functioning for that subscriber.

  • DOWN—Liveness detection has been enabled for a subscriber but the broadband network gateway (BNG) detects that the liveness detection session for the BFD protocol is in the DOWN state.

    A liveness detection session that was previously in an UP state has transitioned to a DOWN state, beginning with a liveness detection failure, and ending with the deletion of the client binding. The DOWN state is reported only during this transition period of time.

  • UNKNOWN—Liveness detection has been enabled for a subscriber but the actual liveness detection state has not yet been determined.

    The UNKNOWN state is reported after a DHCP subscriber initially logs in while the underlying liveness detection protocol handshake, such as BFD, is still processing and the BFD session has not yet reached the UP state.

  • UP—Liveness detection has been enabled for a subscriber, and the BNG and the subscriber or client have both determined that the liveness detection session for the BFD protocol is in the UP state.

  • WENT_DOWN—State is functionally equivalent to the DOWN state. A liveness detection session that was previously in an UP state has transitioned to a DOWN state implying a liveness detection failure.

    The WENT_DOWN state applies to the internal distribution of the liveness detection mechanism between the Junos DHCP Daemon for Subscriber Services (JDHCPd), the BFD plug-in within the Broadband Edge Subscriber Management Daemon (BBE-SMGD), and the Packet Forwarding Engine.

detail

ACI Interface Set Name

Internally generated name of the dynamic agent circuit identifier (ACI) interface set.

detail

ACI Interface Set Index

Index number of the dynamic ACI interface set.

detail

ACI Interface Set Session ID

Identifier of the dynamic ACI interface set entry in the session database.

detail

Client Profile Name

DHCP client profile name.

detail

Dual Stack Group

DHCP server profile name.

detail

Dual Stack Peer Prefix

IPv6 prefix of peer.

detail

Dual Stack Peer Address

IPv6 address of peer.

detail

Sample Output

show dhcp server binding

content_copy zoom_out_map
user@host> show dhcp server binding
IP address        Session Id  Hardware address   Expires     State      Interface
192.51.100.15     6           00:00:5e:00:53:01  86180       BOUND      ge-1/0/0.0          
192.51.100.16     7           00:00:5e:00:53:02  86180       BOUND      ge-1/0/0.0          
192.51.100.17     8           00:00:5e:00:53:03  86180       BOUND      ge-1/0/0.0          
192.51.100.18     9           00:00:5e:00:53:04  86180       BOUND      ge-1/0/0.0          
192.51.100.19     10          00:00:5e:00:53:05  86180       BOUND      ge-1/0/0.0

show dhcp server binding detail

content_copy zoom_out_map
user@host> show dhcp server binding detail
Client IP Address:  192.51.100.15
     Hardware Address:             00:00:5e:00:53:01
     State:                        BOUND(LOCAL_SERVER_STATE_BOUND_ON_INTF_DELETE)
     Lease Expires:                2009-07-21 10:10:25 PDT
     Lease Expires in:             86151 seconds
     Lease Start:                  2009-07-20 10:10:25 PDT
     Incoming Client Interface:    ge-1/0/0.0
     Interface tag:                None
     Server Ip Address:            192.51.100.9
     Server Interface:             none
     Session Id:                   6
     Client Pool Name:             6
     Liveness Detection State:     UP
 Client IP Address:            192.51.100.16
     Hardware Address:             00:00:5e:00:53:02
     State:                        BOUND(LOCAL_SERVER_STATE_BOUND_ON_INTF_DELETE)
     Lease Expires:                2009-07-21 10:10:25 PDT
     Lease Expires in:             86151 seconds
     Lease Start:                  2009-07-20 10:10:25 PDT
     Lease time violated:          yes
     Incoming Client Interface:    ge-1/0/0.0
     Server Ip Address:            192.51.100.9
     Server Interface:             none
     Session Id:                   7
     Client Pool Name:             7
     Liveness Detection State:     UP

When DHCP binding is configured with dual-stack, we get the following output:

content_copy zoom_out_map
user@host> show dhcp server binding detail
Client IP Address:  192.51.100.10
     Hardware Address:             00:00:64:03:01:02
     State:                        BOUND(LOCAL_SERVER_STATE_BOUND)
     Protocol-Used:                DHCP
     Lease Expires:                2016-11-07 08:30:39 PST
     Lease Expires in:             43706 seconds
     Lease Start:                  2016-11-04 11:00:37 PDT
     Last Packet Received:         2016-11-06 09:00:39 PST
     Incoming Client Interface:    ae0.3221225472
     Interface tag:                None
     Client Interface Svlan Id:    2000
     Client Interface Vlan Id:     1
     Server Ip Address:            192.51.100.2
     Session Id:                   2
     Client Pool Name:             my-v4-pool
     Client Profile Name:          dhcp-retail
     Dual Stack Group:             my-dual-stack
     Dual Stack Peer Prefix:       2001:db8:ffff:0:4::/64
     Dual Stack Peer Address:      2001:db8:0:8003::1/128

show dhcp server binding detail (ACI Interface Set Configured)

content_copy zoom_out_map
user@host> show dhcp server binding detail
Client IP Address:  192.51.100.14
     Hardware Address:             00:00:5e:00:53:02
     State:                        BOUND(LOCAL_SERVER_STATE_BOUND)
     Lease Expires:                2012-03-13 09:53:32 PDT
     Lease Expires in:             82660 seconds
     Lease Start:                  2012-03-12 10:23:32 PDT
     Last Packet Received:         2012-03-12 10:23:32 PDT
     Incoming Client Interface:    demux0.1073741827
     Interface tag:                None
     Client Interface Svlan Id:    1802
     Client Interface Vlan Id:     302
     Demux Interface:              demux0.1073741832
     Server Identifier:            192.51.100.202
     Session Id:                   11
     Client Pool Name:             poolA
     Client Profile Name:          DEMUXprofile
     Liveness Detection State:     UP
     ACI Interface Set Name:       aci-1002-demux0.1073741827
     ACI Interface Set Index:      2
     ACI Interface Set Session ID: 6 

show dhcp server binding interface <vlan-id>

content_copy zoom_out_map
user@host> show dhcp server binding interface ge-1/1/0:100
IP address        Session Id  Hardware address   Expires     State      Interface
192.51.100.15      6           00:00:5e:00:53:01  86124       BOUND      ge-1/1/0:100

show dhcp server binding interface <svlan-id>

content_copy zoom_out_map
user@host> show dhcp server binding interface ge-1/1/0:10-100
IP address        Session Id  Hardware address   Expires     State      Interface
192.51.100.16      7          00:00:5e:00:53:02  86124       BOUND      ge-1/1/0:10-100

show dhcp server binding <ip-address>

content_copy zoom_out_map
user@host> show dhcp server binding 192100.19
IP address        Session Id  Hardware address   Expires     State      Interface
192.51.100.19      10          00:00:5e:00:53:05  86081       BOUND      ge-1/0/0.0

show dhcp server binding <session-id>

content_copy zoom_out_map
user@host> show dhcp server binding 6
IP address        Session Id  Hardware address   Expires     State      Interface
192.51.100.15      6           00:00:5e:00:53:01  86124       BOUND      ge-1/0/0.0

show dhcp server binding summary

content_copy zoom_out_map
user@host> show dhcp server binding summary
3 clients, (2 init, 1 bound, 0 selecting, 0 requesting, 0 renewing, 0 releasing)

show dhcp server binding <interfaces-vlan>

content_copy zoom_out_map
user@host> show dhcp server binding ge-1/0/0:100-200
IP address        Session Id  Hardware address   Expires     State      Interface
192.168.0.17      42          00:00:5e:00:53:02  86346       BOUND      ge-1/0/0.1073741827 
192.168.0.16      41          00:00:5e:00:53:01  86346       BOUND      ge-1/0/0.1073741827

show dhcp server binding <interfaces-wildcard>

content_copy zoom_out_map
user@host> show dhcp server binding ge-1/3/*
IP address        Session Id  Hardware address   Expires     State      Interface
192.168.0.9       24          00:00:5e:00:53:04  86361       BOUND      ge-1/3/0.110        
192.168.0.8       23          00:00:5e:00:53:03  86361       BOUND      ge-1/3/0.110        
192.168.0.7       22          00:00:5e:00:53:02  86361       BOUND      ge-1/3/0.110  

Release Information

Command introduced in Junos OS Release 9.0.

Options interfaces-vlan and interfaces-wildcard added in Junos OS Release 12.1.

footer-navigation