Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
keyboard_arrow_right

violation-action (DHCP Local Server and DHCP Relay Agent)

date_range 09-Dec-23

Syntax

content_copy zoom_out_map
violation-action action;

Hierarchy Level

content_copy zoom_out_map
[edit forwarding-options dhcp-relay lease-time-validation],
[edit forwarding-options dhcp-relay dhcpv6 lease-time-validation],
[edit forwarding-options dhcp-relay group group-name lease-time-validation],
[edit forwarding-options dhcp-relay dhcpv6 group group-name lease-time-validation],
[edit logical-systems logical-system-name ...],
[edit logical-systems logical-system-name routing-instances routing-instance-name...],
[edit routing-instances routing-instance-name ...],
[edit system services dhcp-local-server lease-time-validation],
[edit system services dhcp-local-server dhcpv6 lease-time-validation],
[edit system services dhcp-local-server group group-name lease-time-validation],
[edit system services dhcp-local-server dhcpv6 group group-name lease-time-validation]

Description

Configure the action that the router performs when a DHCP lease-time violation occurs. The violation occurs when a third-party DHCP server or address-assignment pool offers a DHCP lease time that is less than the threshold specified by the lease-time-threshold statement.

Options

action

Action taken by the router when a lease-time violation occurs.

  • drop—(Optional) For DHCPv4 and DHCPv6 relay agent, the third-party lease is dropped and the client binding fails.

  • override-lease—(Optional) For DHCPv4 and DHCPv6 local server, the third-party lease is overridden with the value specified by the lease-time-threshold statement and binds the client using the new value.

  • strict—(Optional) For DHCPv4 and DHCPv6 local server, DHCP ignores the third-party lease and the client binding fails.

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 14.1.

external-footer-nav