show dhcp relay binding
Syntax
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:
|
brief |
(Optional) Display brief information about the active client
bindings. This is the default, and produces the same output as
|
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.
Field Name |
Field Description |
Level of Output |
---|---|---|
|
Summary counts of the total number of DHCP clients and the number of DHCP clients in each state. |
|
|
IP address of the DHCP client. |
|
|
Session ID of the subscriber session. |
|
|
Remote ID generated by the Option 82 Agent Remote ID (suboption 1) |
|
|
Hardware address of the DHCP client. |
|
|
Number of seconds in which the lease expires. |
|
|
State of the DHCP relay address binding table on the DHCP client:
|
|
|
Incoming client interface. |
brief |
|
Date and time at which the client’s IP address lease expires. |
detail |
|
Number of seconds in which the lease expires. |
detail |
|
Date and time at which the client’s IP address lease started. |
detail |
|
Lease time violation has occurred. |
detail |
|
Client’s incoming interface. |
detail |
|
Name of the Interface tag. |
detail |
|
IP address of the DHCP server. |
detail |
|
Interface of the DHCP server. |
detail |
|
IP address of BOOTP relay. |
detail |
|
Type of DHCP packet processing performed on the router:
|
All levels |
|
Date and time at which the client’s IP address lease expires. |
All levels |
|
Name of dual stack that is configured with the DHCP binding. |
detail |
|
Prefix of dual stack DHCPv6 peer. |
detail |
|
Address of the dual stack DHCPv6 peer. |
detail |
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
- show dhcp relay binding detail
- show dhcp relay binding interface
- show dhcp relay binding interface vlan-id
- show dhcp relay binding interface svlan-id
- show dhcp relay binding interface-tag <interface-tag-name>
- show dhcp relay binding interface-tag interface-tag-name detail
- show dhcp relay binding ip-address
- show dhcp relay binding mac-address
- show dhcp relay binding session-id
- show dhcp relay binding <interfaces-vlan>
- show dhcp relay binding <interfaces-wildcard>
- show dhcp relay binding summary
show dhcp relay binding
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
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
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
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
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>
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
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
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
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
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>
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>
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
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.