ip dhcp packet strict-validation bridge
Use this command to enable strict validation of DHCP Dynamic Host Configuration Protocol packets. Strict validation checks that the DHCP option field in the packet is valid including the magic cookie in the first four bytes of the options field. The device drops the packet if validation fails.
Use the no
form of this command to disable strict validation.
This command enables both the DHCPv4 and DHCPv6 functionality.
Command Syntax
Copy
ip dhcp packet strict-validation bridge <1-32>
no ip dhcp packet strict-validation bridge <1-32>
Parameters
<1-32>
Bridge number
Default
By default, strict validation of DHCP packets is disabled.
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 5.0.
Example
Copy
configure terminal
(config)#bridge 1 protocol mstp
(config)#ip dhcp snooping bridge 1
(config)#ip dhcp packet strict-validation bridge 1