The dhcp snooping packet-flow log enable command enables the function of recording logs when DHCP messages are exchanged.
The undo dhcp snooping packet-flow log enable command disables the function of recoding logs when DHCP messages are exchanged.
By default, the function of recording logs when DHCP messages are exchanged is disabled.
Only the S2720-EI, S5720-EI, S5720-HI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731S-H, S5731-S, S5731S-S, S6720-EI, S6720-HI, S6720-LI, S6720S-EI, S6720S-LI, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720S-SI, and S6720-SI support this command.
Usage Scenario
After the function of recording logs when DHCP messages are exchanged is enabled using the dhcp snooping packet-flow log enable command, the device records a DHCP/6/SNP_RCV_MSG log each time it receives a DHCP message. This log can be used in smart O&M and other scenarios. The network analyzer can perform smart analysis on whether the user obtains an IP address through this log.
Prerequisites
DHCP snooping has been enabled on the device using the dhcp snooping enable command.