dhcp-local-server
语法
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>; }
层次结构级别
[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]
描述
在路由器或交换机上配置动态主机配置协议 (DHCP) 本地服务器选项,以使路由器或交换机能够用作扩展 DHCP 本地服务器。DHCP 本地服务器从 DHCP 客户端接收 DHCP 请求和回复数据包,然后使用 IP 地址和其他可选配置信息向客户端进行响应。
扩展 DHCP 本地服务器与 J 系列路由器上的 DHCP 服务器不兼容,因此在 J 系列路由器上不受支持。此外,在层次结构级别下 [edit forwarding-options helpers]
配置的 DHCP 本地服务器和 DHCP/BOOTP 中继服务器不能同时在路由器或交换机上启用。扩展 DHCP 本地服务器与扩展 DHCP 中继功能完全兼容。
该 dhcpv6
节将路由器或交换机配置为支持 IPv6 动态主机配置协议 (DHCPv6)。DHCPv6 本地服务器与扩展 DHCP 本地服务器和扩展 DHCP 中继功能完全兼容。
注意:
在路由实例层次结构级别配置 dhcp-local-server
语句时,必须使用路由实例类型 virtual-router
。
其余语句将单独解释。有关详细信息,请在 CLI 资源管理器 中搜索语句,或单击语法部分中的链接语句。
所需权限级别
system - 在配置中查看此语句。
系统控制 - 将此语句添加到配置中。
发布信息
Junos OS 9.0 版中引入的语句。