To display information for the specified binding ID:
show dhcp binding bindingId
To display information for DHCP client bindings on the specified subnet:
show dhcp binding [ local | external | relay-proxy ] [ subnetAddress ] [ detail ] [ filter ]
To display information for DHCP client bindings for the specified IP prefix:
show dhcp binding [ local | external | relay-proxy ] [ subnetAddress ] ip-prefix ipPrefix [ detail ] [ filter ]
To display information for DHCP client bindings for the specified interface string:
show dhcp binding [ local | external | relay-proxy ] [ subnetAddress ] interface string [ detail ] [ filter ]
To display information for DHCP client bindings without a lower-layer interface:
show dhcp binding [ local | external | relay-proxy ] [ subnetAddress ] no-interface [ detail ] [ filter ]
To display information for DHCP client bindings for the specified agent-circuit-id suboption (suboption 1) string of the DHCP relay agent information option (option 82):
show dhcp binding [ local | external | relay-proxy ] [ subnetAddress ] circuit-id string [ detail ] [ filter ]
To display information for DHCP client bindings for the specified agent-remote-id suboption (suboption 2) string of the DHCP relay agent information option (option 82):
show dhcp binding [ local | external | relay-proxy ] [ subnetAddress ] remote-id string [ detail ] [ filter ]
Command introduced in JunosE Release 8.1.0.
local, external, relay-proxy, interface, no-interface, ip-prefix, circuit-id, and remote-id keywords and subnetAddress, ipAddress, and string variables added in JunosE Release 9.3.0.
Displays information for specified DHCP client bindings, with results ordered by binding ID.
![]() | Note: This command replaces the deprecated show ip dhcp-external binding, show ip dhcp-external binding-id, and show ip dhcp-local binding commands, which may be removed completely in a future release. |
Each element is either a literal string, a metacharacter, or a combination. You can remove the special meaning of a metacharacter by preceding it with a backslash (\). Regular expressions support the following metacharacters:
You must specify the interface string as a regular expression without spaces; for example, fastEthernet1.1/100 or fastEthernet.*100
The following rules apply for representing nonprintable character sequences in the circuit ID string or the remote ID string:
For example, to match the sequence 74 65 73 74 0d 0a 6f 6e 65 (hex), use the string 'test\\r\\none'. In this string, 74 is represented by t, 65 is represented by e, 73 is represented by s, 74 is represented by t, 0d 0a is represented by \\r\\n, 6f is represented by o, 6e is represented by n, and 65 is represented by e.
For example, to match the sequence 74 65 73 74 0a 00 6f 6e 65 (hex), use the string 'test\\none'. In this string, 74 is represented by t, 65 is represented by e, 73 is represented by s, 74 is represented by t, 0a 00 is represented by \\n, 0a is represented by \\n, 6f is represented by o, 6e is represented by n, and 65 is represented by e.
As another example, to match the sequence 74 65 73 74 f3 6f 6e 65 (hex), use the string 'test\\xf3one'. In this string, 74 is represented by t, 65 is represented by e, 73 is represented by s, 74 is represented by t, byte F3 is represented by \\xf3, 6f is represented by o, 6e is represented by n, and 65 is represented by e.
Privileged Exec