dhcp-local-server
Syntax
dhcp-local-server { access-profile profile-name; allow-active-leasequery { idle-timeout seconds; peer-address address; timeout seconds; } allow-bulk-leasequery { max-connections number-of-connections; max-empty-replies number-of-replies; restricted-requestor; timeout seconds; } allow-leasequery { restricted-requestor; } authentication { password password-string; username-include { circuit-type; delimiter delimiter-character; domain-name domain-name-string; interface-description (device-interface | logical-interface); interface-name ; logical-system-name; mac-address; option-60; option-82 <circuit-id> <remote-id>; routing-instance-name; user-prefix user-prefix-string; vlan-tags; } } dhcpv6 { access-profile profile-name; allow-active-leasequery { idle-timeout seconds; peer-address address; timeout seconds; } allow-bulk-leasequery { max-connections number-of-connections; max-empty-replies number-of-replies; restricted-requestor; timeout seconds; } allow-leasequery { restricted-requestor; } authentication { ... } duplicate-clients incoming-interface; group group-name { access-profile profile-name; authentication { ... } interface interface-name { access-profile profile-name; exclude; overrides { asymmetric-lease-time seconds; asymmetric-prefix-lease-time seconds; delay-advertise { based-on (option-15 | option-16 | option-18 | option-37) { equals { ascii ascii-string; hexadecimal hexadecimal-string; } not-equals { ascii ascii-string; hexadecimal hexadecimal-string; } starts-with { ascii ascii-string; hexadecimal hexadecimal-string; } } delay-time seconds; } dual-stack dual-stack-group-name; interface-client-limit number; multi-address-embedded-option-response; process-inform { pool pool-name; } protocol-attributes attribute-set-name; rapid-commit; } service-profile dynamic-profile-name; short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>; trace; upto upto-interface-name; } liveness-detection { failure-action (clear-binding | clear-binding-if-interface-up | log-only); method { bfd { version (0 | 1 | automatic); minimum-interval milliseconds; minimum-receive-interval milliseconds; multiplier number; no-adaptation; transmit-interval { minimum-interval milliseconds; threshold milliseconds; } detection-time { threshold milliseconds; } session-mode (automatic | multihop | singlehop); holddown-interval milliseconds; } layer2-liveness-detection { max-consecutive-retries number; transmit-interval interval; } } } overrides { asymmetric-lease-time seconds; asymmetric-prefix-lease-time seconds; delay-advertise { based-on (option-15 | option-16 | option-18 | option-37) { equals { ascii ascii-string; hexadecimal hexadecimal-string; } not-equals { ascii ascii-string; hexadecimal hexadecimal-string; } starts-with { ascii ascii-string; hexadecimal hexadecimal-string; } } delay-time seconds; } delegated-pool; dual-stack dual-stack-group-name; interface-client-limit number; multi-address-embedded-option-response; process-inform { pool pool-name; } protocol-attributes attribute-set-name; rapid-commit; } route-suppression; server-duid-type type; service-profile dynamic-profile-name; short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>; } liveness-detection { failure-action (clear-binding | clear-binding-if-interface-up | log-only); method { bfd { version (0 | 1 | automatic); minimum-interval milliseconds; minimum-receive-interval milliseconds; multiplier number; no-adaptation; transmit-interval { minimum-interval milliseconds; threshold milliseconds; } detection-time { threshold milliseconds; } session-mode (automatic | multihop | singlehop); holddown-interval milliseconds; } layer2-liveness-detection { max-consecutive-retries number; transmit-interval interval; } } } overrides { asymmetric-lease-time seconds; asymmetric-prefix-lease-time seconds; delay-advertise { based-on (option-15 | option-16 | option-18 | option-37) { equals { ascii ascii-string; hexadecimal hexadecimal-string; } not-equals { ascii ascii-string; hexadecimal hexadecimal-string; } starts-with { ascii ascii-string; hexadecimal hexadecimal-string; } } delay-time seconds; } delegated-pool; dual-stack dual-stack-group-name; include-option-82 { forcerenew; nak; } interface-client-limit number; multi-address-embedded-option-response; process-inform { pool pool-name; } protocol-attributes attribute-set-name; rapid-commit; } reconfigure { attempts attempt-count; clear-on-terminate; strict; support-option-pd-exclude; timeout timeout-value; token token-value; trigger { radius-disconnect; } } reauthenticate (<lease-renewal> <remote-id-mismatch >); requested-ip-network-match subnet-mask; route-suppression; server-duid-type type; service-profile dynamic-profile-name; short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>; } dual-stack-group name { access-profile access-profile; authentication { password password-string; username-include { circuit-type; delimiter delimiter-character; domain-name domain-name-string; interface-description (device-interface | logical-interface); interface-name ; logical-system-name; mac-address; relay-agent-interface-id; relay-agent-remote-id; routing-instance-name; user-prefix user-prefix-string; vlan-tags; } } classification-key { circuit-id circuit-id; mac-address mac-address; remote-id remote-id; } dual-stack-interface-client-limit number; dynamic-profile profile-name { aggregate-clients (merge | replace); use-primary primary-profile-name; } liveness-detection { failure-action (clear-binding | clear-binding-if-interface-up | log-only); method { layer2-liveness-detection { max-consecutive-retries number; transmit-interval interval; } } } on-demand-address-allocation; protocol-primary (inet | inet6); reauthenticate (<lease-renewal> <remote-id-mismatch >); service-profile service-profile; short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>; } duplicate-clients-in-subnet (incoming-interface | option-82); dynamic-profile profile-name <aggregate-clients (merge | replace) | use-primary primary-profile-name>; forward-snooped-clients (all-interfaces | configured-interfaces | non-configured-interfaces); group group-name { authentication { ... } dynamic-profile profile-name <aggregate-clients (merge | replace) | use-primary primary-profile-name>; interface interface-name { exclude; overrides { asymmetric-lease-time seconds; client-discover-match (option60-and-option82 | incoming-interface); delay-offer { based-on (option-60 | option-77 | option-82) { equals { ascii ascii-string; hexadecimal hexadecimal-string; } not-equals { ascii ascii-string; hexadecimal hexadecimal-string; } starts-with { ascii ascii-string; hexadecimal hexadecimal-string; } } delay-time seconds; } include-option-82 { forcerenew; nak; } dual-stack dual-stack-group-name; interface-client-limit number; process-inform { pool pool-name; } protocol-attributes attribute-set-name; } service-profile dynamic-profile-name; short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>; trace; upto upto-interface-name; } liveness-detection { failure-action (clear-binding | clear-binding-if-interface-up | log-only); method { bfd { version (0 | 1 | automatic); minimum-interval milliseconds; minimum-receive-interval milliseconds; multiplier number; no-adaptation; transmit-interval { minimum-interval milliseconds; threshold milliseconds; } detection-time { threshold milliseconds; } session-mode(automatic | multihop | singlehop); holddown-interval milliseconds; } layer2-liveness-detection { max-consecutive-retries number; transmit-interval interval; } } } overrides { asymmetric-lease-time seconds; client-discover-match (option60-and-option82 | incoming-interface); delay-offer { based-on (option-60 | option-77 | option-82) { equals { ascii ascii-string; hexadecimal hexadecimal-string; } not-equals { ascii ascii-string; hexadecimal hexadecimal-string; } starts-with { ascii ascii-string; hexadecimal hexadecimal-string; } } delay-time seconds; } include-option-82 { forcerenew; nak; } dual-stack dual-stack-group-name; interface-client-limit number; process-inform { pool pool-name; } protocol-attributes attribute-set-name; } requested-ip-network-match subnet-mask route-suppression; service-profile dynamic-profile-name; short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>; } liveness-detection { failure-action (clear-binding | clear-binding-if-interface-up | log-only); method { bfd { version (0 | 1 | automatic); minimum-interval milliseconds; minimum-receive-interval milliseconds; multiplier number; no-adaptation; transmit-interval { minimum-interval milliseconds; threshold milliseconds; } detection-time { threshold milliseconds; } session-mode (automatic | multihop | singlehop); holddown-interval milliseconds; } layer2-liveness-detection { max-consecutive-retries number; transmit-interval interval; } } } on-demand-address-allocation; overrides { asymmetric-lease-time seconds; client-discover-match <option60-and-option82 | incoming-interface>; delay-offer { based-on (option-60 | option-77 | option-82) { equals { ascii ascii-string; hexadecimal hexadecimal-string; } not-equals { ascii ascii-string; hexadecimal hexadecimal-string; } starts-with { ascii ascii-string; hexadecimal hexadecimal-string; } } delay-time seconds; } dual-stack dual-stack-group-name; interface-client-limit number; process-inform { pool pool-name; } protocol-attributes attribute-set-name; } pool-match-order { external-authority; ip-address-first; option-82; } protocol-primary; reauthenticate (<lease-renewal> <remote-id-mismatch >); reconfigure { attempts attempt-count; clear-on-terminate; strict; timeout timeout-value; token token-value; trigger { radius-disconnect; } } requested-ip-network-match subnet-mask; route-suppression; service-profile dynamic-profile-name; short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>; }
Hierarchy Level
[edit logical-systems logical-system-name routing-instances routing-instance-name system services], [edit logical-systems logical-system-name system services], [edit routing-instances routing-instance-name system services], [edit system services]
Description
Configure Dynamic Host Configuration Protocol (DHCP) local server options on the router or switch to enable the router or switch to function as an extended DHCP local server. The DHCP local server receives DHCP request and reply packets from DHCP clients and then responds with an IP address and other optional configuration information to the client.
The extended DHCP local server is incompatible with the DHCP
server on J Series routers and, therefore, is not supported on J Series
routers. Also, the DHCP local server and the DHCP/BOOTP relay server,
which are configured under the [edit forwarding-options helpers]
hierarchy level, cannot both be enabled on the router or switch
at the same time. The extended DHCP local server is fully compatible
with the extended DHCP relay feature.
The dhcpv6
stanza configures the router or switch
to support Dynamic Host Configuration Protocol for IPv6 (DHCPv6).
The DHCPv6 local server is fully compatible with the extended DHCP
local server and the extended DHCP relay feature.
When you configure the dhcp-local-server
statement at the routing instance hierarchy level, you must use
a routing instance type of virtual-router
.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked statement in the Syntax section for details.
Required Privilege Level
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 9.0.