To display information for DHCP client bindings on the specified subnet:
show dhcp host [ local | external | relay-proxy ] [ subnetAddress ] [ detail ] [ filter ]
To display information for DHCP client bindings for the specified IP prefix:
show dhcp host [ local | external | relay-proxy ] [ subnetAddress ] ip-prefix ipPrefix [ detail ] [ filter ]
To display information for DHCP client bindings for the specified interface string:
show dhcp host [ local | external | relay-proxy ] [ subnetAddress ] interface string [ detail ] [ filter ]
To display information for DHCP client bindings without a lower-layer interface:
show dhcp host [ 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 host [ 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 host [ local | external | relay-proxy ] [ subnetAddress ] remote-id string [ detail ] [ filter ]
Command introduced in JUNOSe Release 9.3.0.
Displays information for specified DHCP client bindings, with results ordered by IP address. This command displays information only for DHCP client bindings with assigned IP addresses.
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