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 relay binding

date_range 13-Sep-24

Syntax

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

Description

Display the address bindings in the Dynamic Host Configuration Protocol (DHCP) client table.

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

(Optional) Display brief information about the active client bindings. This is the default, and produces the same output as show dhcp relay binding.

detail

(Optional) Display detailed client binding information.

interface interface-name

(Optional) Perform this operation 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 binding state information. This option supports the use of the wildcard character (*).

logical-system logical-system-name

(Optional) Perform this operation on the specified logical system.

routing-instance routing-instance-name

(Optional) Perform this operation on the specified routing instance.

summary

(Optional) Display a summary of DHCP client information.

Required Privilege Level

view

Output Fields

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

Table 1: show dhcp relay binding Output Fields

Field Name

Field Description

Level of Output

number clients,(number init, number bound, number selecting, number requesting, number renewing, number rebinding, 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.

brief detail

Session Id

Session ID of the subscriber session.

brief detail

Generated Remote ID

Remote ID generated by the Option 82 Agent Remote ID (suboption 1)

detail

Hardware address

Hardware address of the DHCP client.

brief detail

Expires

Number of seconds in which the lease expires.

brief detail

State

State of the DHCP relay address binding table on the DHCP client:

  • BOUND—Client has an active IP address lease.

  • INIT—Initial state.

  • REBINDING—Client is broadcasting a request to renew the IP address lease.

  • RELEASE—Client is releasing the IP address lease.

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

  • REQUESTING—Client is requesting a DHCP server.

  • SELECTING—Client is receiving offers from DHCP servers.

brief detail

Interface

Incoming client interface.

brief

Lease Expires

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

detail

Lease Expires in

Number of seconds in which the 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

Incoming Client Interface

Client’s incoming interface.

detail

Interface tag

Name of the Interface tag.

detail

Server IP Address

IP address of the DHCP server.

detail

Server Interface

Interface of the DHCP server.

detail

Bootp Relay Address

IP address of BOOTP relay.

detail

Type

Type of DHCP packet processing performed on the router:

  • active—Router actively processes and relays DHCP packets.

  • passive—Router passively snoops DHCP packets passing through the router.

All levels

Lease expires at

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

All levels

Dual Stack Group

Name of dual stack that is configured with the DHCP binding.

detail

Dual Stack Peer Prefix

Prefix of dual stack DHCPv6 peer.

detail

Dual Stack Peer Address

Address of the dual stack DHCPv6 peer.

detail

Note:

When you configure dhcp relay and EVPN multihoming, you may notice that the CLI output for the show dhcp relay binding command may not display the physical interface and vlan id information.

Sample Output

show dhcp relay binding

content_copy zoom_out_map
user@host> show dhcp relay binding
IP address        Session Id  Hardware address   Expires     State      Interface
192.51.100.11     41          00:00:5e:00:53:01  86371       BOUND      ge-1/0/0.0          
192.51.100.12     42          00:00:5e:00:53:02  86371       BOUND      ge-1/0/0.0          
192.51.100.13     43          00:00:5e:00:53:03  86371       BOUND      ge-1/0/0.0          
192.51.100.14     44          00:00:5e:00:53:04  86371       BOUND      ge-1/0/0.0          
192.51.100.15     45          00:00:5e:00:53:05  86371       BOUND      ge-1/0/0.0   

show dhcp relay binding detail

content_copy zoom_out_map
user@host> show dhcp relay binding detail


Client IP Address:  192.51.100.11
     Hardware Address:             00:00:5e:00:53:01
     State:                        BOUND(DHCP_RELAY_STATE_BOUND_ON_INTF_DELETE)
     Lease Expires:                2009-07-21 11:00:06 PDT
     Lease Expires in:             86361 seconds
     Lease Start:                  2009-07-20 11:00:06 PDT
     Lease time violated:          yes
     Last Packet Received:         2009–07–20 11:00:06 PDT
     Incoming Client Interface:    ge-1/0/0.0
     Interface tag:                None
     Server Ip Address:            192.51.100.22
     Server Interface:             none
     Bootp Relay Address:          192.51.100.32
     Session Id:                   41
     Dual Stack Group:             dual-stack-retail6
     Dual Stack Peer Prefix:       2001:db8:0:4::/64
     Dual Stack Peer Address:      2001:db8:1:0:8003::1/128

Client IP Address:  192.51.100.12
     Hardware Address:             00:00:5e:00:53:02
     State:                        BOUND(DHCP_RELAY_STATE_BOUND_ON_INTF_DELETE)
     Lease Expires:                2009-07-21 11:00:06 PDT
     Lease Expires in:             86361 seconds
     Lease Start:                  2009-07-20 11:00:06 PDT
     Last Packet Received:         2009–07–20 11:00:06 PDT
     Incoming Client Interface:    ge-1/0/0.0
     Interface tag:                None
     Server Ip Address:            192.51.100.22
     Server Interface:             none
     Bootp Relay Address:          192.51.100.32
     Session Id:                   42
     Generated Remote ID           host:ge-1/0/0:100

show dhcp relay binding interface

content_copy zoom_out_map
user@host> show dhcp relay binding interface fe-0/0/2

IP address       Hardware address   Type     Lease expires at
192.51.100.1      00:00:5e:00:53:01  active   2007-03-27 15:06:20 EDT

show dhcp relay binding interface vlan-id

content_copy zoom_out_map
user@host> show dhcp relay 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:94  86124       BOUND      ge-1/1/0:100  

show dhcp relay binding interface svlan-id

content_copy zoom_out_map
user@host> show dhcp relay 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:92  86124       BOUND      ge-1/1/0:10-100  

show dhcp relay binding interface-tag <interface-tag-name>

content_copy zoom_out_map
user@host> show dhcp relay binding interface-tag sample_tag

IP address        Session Id  Hardware address   Expires     State      Interface
192.2.1.1          2           00:10:94:00:00:01     740       BOUND     ge-0/0/1.3221225472

show dhcp relay binding interface-tag interface-tag-name detail

content_copy zoom_out_map
user@host> show dhcp relay binding interface-tag AGF_IFD detail      
     Client IP Address:  192.168.0.100
     Hardware Address:             00:34:44:44:44:44
     State:                        BOUND(RELAY_STATE_BOUND)
     Lease Expires:                2023-05-02 11:22:44 PDT
     Lease Expires in:             2575 seconds
     Lease Start:                  2023-05-02 09:52:44 PDT
     Last Packet Received:         2023-05-02 10:22:44 PDT
     Incoming Client Interface:    demux0.3221225472
     Interface tag name:           AGF_IFD
     Client Interface Svlan Id:    1
     Client Interface Vlan Id:     1
     Demux Interface:              demux0.3221225491
     Server Ip Address:            192.168.0.50
     Server Interface:             none
     Bootp Relay Address:          192.168..1
     Session Id:                   8
     Client Profile Name:          dhcp-profile
     Generated Circuit ID:         aci1
     Generated Remote ID:          ari1
     Relay Id Length:              31
     Relay Id:                     /0x00020000/0x00000583/0x01000000/0x00000000
     Relay Id:                     /0x30303a32/0x363a3838/0x3a64373a/0x66373a

show dhcp relay binding ip-address

content_copy zoom_out_map
user@host> show dhcp relay binding 192.51.100.13
IP address        Session Id  Hardware address   Expires     State      Interface
192.51.100.13      43          00:00:5e:00:53:03  86293       BOUND      ge-1/0/0.0   

show dhcp relay binding mac-address

content_copy zoom_out_map
user@host> show dhcp relay binding 00:00:5e:00:53:05
IP address        Session Id  Hardware address   Expires     State      Interface
192.51.100.15      45          00:00:5e:00:53:05  86279       BOUND      ge-1/0/0.0     

show dhcp relay binding session-id

content_copy zoom_out_map
user@host> show dhcp relay binding 41
 IP address        Session Id  Hardware address   Expires     State      Interface
192.51.100.11      41          00:00:5e:00:53:53  86305       BOUND      ge-1/0/0.0    

show dhcp relay binding <interfaces-vlan>

content_copy zoom_out_map
user@host> show dhcp relay 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 relay binding <interfaces-wildcard>

content_copy zoom_out_map
user@host> show dhcp relay 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  

show dhcp relay binding summary

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

Release Information

Command introduced in Junos OS Release 8.3.

Options interface and mac-address added in Junos OS Release 8.4.

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

footer-navigation