show dhcpv6 relay binding
Syntax
Release Information
Command introduced in Junos OS Release 11.4.
interfaces-vlan and interfaces-wildcard options introduced in Junos OS Release 12.1.
Description
Display the DHCPv6 address bindings in the Dynamic Host Configuration Protocol (DHCP) client table.
Options
CID—The specified Client ID (CID).
ipv6-prefix—The specified IPv6 prefix.
session-id—The specified session ID.
Required Privilege Level
view
Related Documentation
List of Sample Output
show dhcpv6 relay bindingshow dhcpv6 relay binding (Address)
show dhcpv6 relay binding detail (Client ID)
show dhcpv6 relay binding detail
show dhcpv6 relay binding detail (Dual-Stack)
show dhcpv6 relay binding detail (Multi-Relay Topology)
show dhcpv6 relay binding (Session ID)
show dhcpv6 relay binding (Subscriber with Multiple Addresses)
show dhcpv6 relay binding detail (Subscriber with Multiple Addresses)
show dhcpv6 relay binding (Interfaces VLAN)
show dhcpv6 relay binding (Interfaces Wildcard)
show dhcpv6 relay binding (Interfaces Wildcard)
show dhcpv6 relay binding summary
Output Fields
Table 1 lists the output fields for the show dhcpv6 relay binding command. Output fields are listed in the approximate order in which they appear.
Table 1: show dhcpv6 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 DHCPv6 clients and the number of DHCPv6 clients in each state. | summary |
Client IPv6 Prefix | Prefix of the DHCPv6 client. | brief detail |
Client IPv6 Excluded Prefix | IPv6 Prefix of the DHCP client excluded. | detail |
Client DUID | DHCP for IPv6 Unique Identifier (DUID) of the client. | brief detail |
Client IPv6 Address | IPv6 address assigned to the subscriber. | detail |
Session Id | Session ID of the subscriber session. | brief detail |
Expires | Number of seconds in which the lease expires. | brief detail |
State | State of the DHCPv6 relay address binding table on the DHCPv6 client:
| 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 |
Preferred Lease Expires | Date and UTC time at which the client’s IPv6 prefix expires. | detail |
Preferred Lease Expires in | Number of seconds at which the client’s IPv6 prefix 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 |
Server Address | IP address of the DHCPv6 server. Displays unknown for a DHCPv6 relay agent in a multi-relay topology that is not directly adjacent to the DHCPv6 server and does not detect the IP address of the server. In that case, the output instead displays the Next Hop Server Facing Relay field. | detail |
Next Hop Server Facing Relay | Next-hop address in the direction of the DHCPv6 server. | detail |
Server Interface | Interface of the DHCPv6 server. | detail |
Relay Address | IP address of the relay. | detail |
Client Pool Name | Address pool that granted the client lease. | detail |
Client ID Length | Length of client ID. | All levels |
Client Id | Client ID. | All levels |
Generated Circuit ID | Circuit ID generated by the DHCPv6 Interface-ID option (option 18) | detail |
Generated Remote ID Enterprise Number | The Juniper Networks IANA private enterprise number | detail |
Generated Remote ID | Remote ID generated by the DHCPv6 Remote-ID option (option 37) | detail |
Dual Stack Group | Name of the dual-stack group for the DHCPv6 binding. | detail |
Dual Stack Peer Address | Address of the dual-stack DHCPv4 peer. | detail |
Sample Output
show dhcpv6 relay binding
user@host> show dhcpv6 relay binding
Prefix Session Id Expires State Interface Client DUID 2001:db8:3c4d:15::/64 1 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:01 2001:db8:3c4d:16::/64 2 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:02 2001:db8:3c4d:17::/64 3 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:03 2001:db8:3c4d:18::/64 4 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:04 2001:db8:3c4d:19::/64 5 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:05 2001:db8:3c4d:20::/64 6 83720 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:06
show dhcpv6 relay binding (Address)
user@host> show dhcp6 relay binding 2001:db8:1111:2222::/64
detail
Session Id: 1 Client IPv6 Prefix: 2001:db8:3c4d:15::/64 Client DUID: LL_TIME0x1-0x4bfa26af-00:10:94:00:00:01 State: BOUND(RELAY_STATE_BOUND) Lease Expires: 2011-05-25 07:12:09 PDT Lease Expires in: 77115 seconds Preferred Lease Expires: 2012-07-24 00:18:14 UTC Preferred Lease Expires in: 600 seconds Lease Start: 2011-05-24 07:12:09 PDT Incoming Client Interface: ge-1/0/0.0 Server Address: 2001:db8:aaaa:bbbb::1 Server Interface: none Relay Address: 2001:db8:1111:2222:: Client Pool Name: pool-25 Client Id Length: 14 Client Id: /0x00010001/0x4bfa26af/0x00109400/0x0001
show dhcpv6 relay binding detail (Client ID)
user@host> show dhcpv6 relay binding 14/0x00010001/0x4bfa26af/0x00109400/0x0001
detail
Session Id: 1 Client IPv6 Prefix: 2001:db8:3c4d:15::/64 Client DUID: LL_TIME0x1-0x4bfa26af-00:10:94:00:00:01 State: BOUND(RELAY_STATE_BOUND) Lease Expires: 2011-05-25 07:12:09 PDT Lease Expires in: 77115 seconds Preferred Lease Expires: 2012-07-24 00:18:14 UTC Preferred Lease Expires in: 600 seconds Lease Start: 2011-05-24 07:12:09 PDT Lease time violated: yes Incoming Client Interface: ge-1/0/0.0 Server Address: 2001:db8:aaaa:bbbb::1 Server Interface: none Relay Address: 2001:db8:1111:2222:: Client Pool Name: pool-25 Client Id Length: 14 Client Id: /0x00010001/0x4bfa26af/0x00109400/0x0001
show dhcpv6 relay binding detail
user@host> show dhcpv6 relay binding detail
Session Id: 1 Client IPv6 Prefix: 2001:db8:3c4d:15::/64 Client DUID: LL_TIME0x1-0x4bfa26af-00:10:94:00:00:01 State: BOUND(RELAY_STATE_BOUND) Lease Expires: 2011-05-25 07:12:09 PDT Lease Expires in: 77115 seconds Preferred Lease Expires: 2012-07-24 00:18:14 UTC Preferred Lease Expires in: 600 seconds Lease Start: 2011-05-24 07:12:09 PDT Lease time violated: yes Incoming Client Interface: ge-1/0/0.0 Server Address: 2001:db8:aaaa:bbbb::1 Server Interface: none Relay Address: 2001:db8:1111:2222:: Client Pool Name: pool-25 Client Id Length: 14 Client Id: /0x00010001/0x4bfa26af/0x00109400/0x0001 Generated Remote ID Enterprise Number: 1411 Generated Remote ID: host:ge-1/0/0:100
show dhcpv6 relay binding detail (Dual-Stack)
user@host> show dhcpv6 relay binding detail
Session Id: 2 Client IPv6 Prefix: 2001:db8:ffff:0:4::/64 Client IPv6 Address: 2001:db8:3000:8003::1/128 Client DUID: LL0x1-00:00:64:01:01:02 State: BOUND(DHCPV6_RELAY_STATE_BOUND) Lease Expires: 2016-10-17 07:39:25 PDT Lease Expires in: 3450 seconds Lease Start: 2016-10-17 06:39:25 PDT Last Packet Received: 2016-10-17 06:39:25 PDT Incoming Client Interface: ae0.3221225472 Client Interface Svlan Id: 2000 Client Interface Vlan Id: 1 Server Ip Address: 2001:db8:3000::2 Server Interface: none Client Profile Name: my-dual-stack Client Id Length: 10 Client Id: /0x00030001/0x00006401/0x0102 Dual Stack Group: group1 Dual Stack Peer Address: 192.0.2.4
show dhcpv6 relay binding detail (Multi-Relay Topology)
user@host > show dhcpv6 relay binding detail
Session Id: 13 Client IPv6 Prefix: 2001:db8:3000:0:8001::5/128 Client DUID: LL0x1-00:00:65:03:01:02 State: BOUND(DHCPV6_RELAY_STATE_BOUND) Lease Expires: 2011-11-21 06:14:50 PST Lease Expires in: 293 seconds Preferred Lease Expires: 2012-07-24 00:18:14 UTC Preferred Lease Expires in: 600 seconds Lease Start: 2011-11-21 06:09:50 PST Incoming Client Interface: ge-1/0/0.0 Server Address: unknown Next Hop Server Facing Relay: 2001:db8:4000::2 Server Interface: none Client Id Length: 10 Client Id: /0x00030001/0x00006503/0x0102
show dhcpv6 relay binding (Session ID)
user@host> show dhcpv6 relay binding 41
Prefix Session Id Expires State Interface Client DUID 2001:db8:3c4d:15::/64 41 78837 BOUND ge-1/0/0.0 LL_TIME0x1-0x4bfa26af-00:10:94:00:00:01
show dhcpv6 relay binding (Subscriber with Multiple Addresses)
user@host> show dhcpv6 relay binding
Prefix Session Id Expires State Interface Client DUID 2001:db8:1001::1:24/128 23 593 BOUND ge-9/0/9.0 LL_TIME0x1-0x55306754-00:10:94:00:00:02 2001:db8:1001::1:1c/128 23 393 BOUND ge-9/0/9.0 LL_TIME0x1-0x55306754-00:10:94:00:00:02 2001:db8:1001::1:14/128 23 193 BOUND ge-9/0/9.0 LL_TIME0x1-0x55306754-00:10:94:00:00:02 2001:db8:3001::300/120 23 293 BOUND ge-9/0/9.0 LL_TIME0x1-0x55306754-00:10:94:00:00:02 2001:db8:3001::200/120 23 193 BOUND ge-9/0/9.0 LL_TIME0x1-0x55306754-00:10:94:00:00:02 2001:db8:3001::100/120 23 93 BOUND ge-9/0/9.0 LL_TIME0x1-0x55306754-00:10:94:00:00:02
When DHCPv6 relay binding is configured with prefix exclude option, we get the following output:
user@host> show dhcpv6 relay binding detail
Session Id: 6 Hardware Address: 00:10:94:00:00:01 Client IPv6 Address: 7001:2:3::d/128 Lease Expires: 2017-12-11 07:45:27 IST Lease Expires in: 9999952 seconds Preferred Lease Expires: 2017-12-11 07:45:27 IST Preferred Lease Expires in: 9999952 seconds Client IPv6 Prefix: 7001::1000:0:0:0/68 Client IPv6 Excluded Prefix: 7001::1fff:ffff:ffff:ff00/120 Lease Expires: 2017-12-11 07:45:27 IST Lease Expires in: 9999952 seconds Preferred Lease Expires: 2017-12-11 07:45:27 IST Preferred Lease Expires in: 9999952 seconds Client DUID: LL_TIME0x1-0x599553b0-00:10:94:00:00:01 State: BOUND(DHCPV6_RELAY_STATE_BOUND) Lease Start: 2017-08-17 13:58:33 IST Last Packet Received: 2017-08-17 13:58:48 IST Incoming Client Interface: ge-0/0/0.100 Client Interface Vlan Id: 100 Server Ip Address: 7002::1 Server Interface: none Client Id Length: 14 Client Id: /0x00010001/0x599553b0/0x00109400/0x0001 Generated Circuit ID: ge-0/0/0:100
show dhcpv6 relay binding detail (Subscriber with Multiple Addresses)
user@host> show dhcpv6 relay binding detail
Session Id: 3 Client IPv6 Address: 2001:db8:1001::1:2/128 Lease Expires: 2015-05-15 02:34:51 PDT Lease Expires in: 24 seconds Preferred Lease Expires: 2015-05-15 02:34:51 PDT Preferred Lease Expires in: 24 seconds Client IPv6 Address: 2001:db8:1001::1:12/128 Lease Expires: 2015-05-15 02:41:31 PDT Lease Expires in: 424 seconds Preferred Lease Expires: 2015-05-15 02:41:31 PDT Preferred Lease Expires in: 424 seconds Client IPv6 Address: 2001:db8:1001::1:a/128 Lease Expires: 2015-05-15 02:38:11 PDT Lease Expires in: 224 seconds Preferred Lease Expires: 2015-05-15 02:38:11 PDT Preferred Lease Expires in: 224 seconds Client IPv6 Prefix: 2001:db8:3001::/120 Lease Expires: 2015-05-15 02:34:51 PDT Lease Expires in: 24 seconds Preferred Lease Expires: 2015-05-15 02:34:51 PDT Preferred Lease Expires in: 24 seconds Client IPv6 Prefix: 2001:db8:3001::200/120 Lease Expires: 2015-05-15 02:38:11 PDT Lease Expires in: 224 seconds Preferred Lease Expires: 2015-05-15 02:38:11 PDT Preferred Lease Expires in: 224 seconds Client IPv6 Prefix: 2001:db8:3001::100/120 Lease Expires: 2015-05-15 02:36:31 PDT Lease Expires in: 124 seconds Preferred Lease Expires: 2015-05-15 02:36:31 PDT Preferred Lease Expires in: 124 seconds Client DUID: LL_TIME0x1-0x55554c6e-00:10:94:00:00:02 State: BOUND(DHCPV6_RELAY_STATE_BOUND) Lease Start: 2015-05-15 02:34:21 PDT Last Packet Received: 2015-05-15 02:34:22 PDT Incoming Client Interface: ge-9/0/9.0 Client Interface Vlan Id: 111 Demux Interface: demux0.3221225475 Server Ip Address: 2001:db8:5001::1 Server Interface: none Client Profile Name: DHCP-IPDEMUX-PROF Client Id Length: 14 Client Id: /0x00010001/0x55554c6e/0x00109400/0x0002 Generated Circuit ID: ge-9/0/9:111 Generated Remote ID Enterprise Number: 1411 Generated Remote ID: ge-9/0/9:111
show dhcpv6 relay binding (Interfaces VLAN)
user@host> show dhcpv6 relay binding ge-1/0/0:100-200
Prefix Session Id Expires State Interface Client DUID 2001:DB8::/32 11 87583 BOUND ge-1/0/0.1073741827 LL_TIME0x1-0x4d5d009f-00:10:94:00:00:01 2001:DB8:19::/32 12 87583 BOUND ge-1/0/0.1073741827 LL_TIME0x1-0x4d5d009f-00:10:94:00:00:01
show dhcpv6 relay binding (Interfaces Wildcard)
user@host> show dhcpv6 relay binding demux0
Prefix Session Id Expires State Interface Client DUID 2001:DB8::/32 30 79681 BOUND demux0.1073741824 LL_TIME0x1-0x4d5d009f-00:10:94:00:00:01 2001:DB8:19::/32 31 79681 BOUND demux0.1073741825 LL_TIME0x1-0x4d5d009f-00:10:94:00:00:01 2001:DB8:C9::/32 32 79681 BOUND demux0.1073741826 LL_TIME0x1-0x4d5d009f-00:10:94:00:00:01
show dhcpv6 relay binding (Interfaces Wildcard)
user@host> show dhcpv6 relay binding ge-1/3/*
Prefix Session Id Expires State Interface Client DUID 2001:DB8::/32 22 79681 BOUND ge-1/3/0.110 LL_TIME0x1-0x4d5d009f-00:10:94:00:00:01 2001:DB8:19::/32 33 79681 BOUND ge-1/3/0.110 LL_TIME0x1-0x4d5d009f-00:10:94:00:00:01 2001:DB8:C9::/32 24 79681 BOUND ge-1/3/0.110 LL_TIME0x1-0x4d5d009f-00:10:94:00:00:01
show dhcpv6 relay binding summary
user@host> show dhcpv6 relay binding summary
5 clients, (0 init, 5 bound, 0 selecting, 0 requesting, 0 renewing, 0 releasing)