dhcp snooping server record

Function

The dhcp snooping server record command enables detection of bogus DHCP servers.

The undo dhcp snooping server record command disables detection of bogus DHCP servers.

By default, this function is disabled.

Format

dhcp snooping server record

undo dhcp snooping server record

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

Bogus DHCP servers send invalid DHCP reply packets to clients. As a result, clients receive incorrect information. After the detection of bogus DHCP server is enabled, the device detects the DHCP server address and interface number carried in a received DHCP packet and logs the information so that the network administrator can maintain the network.

Prerequisites

DHCP snooping has been enabled globally and for an interface by running the dhcp snooping enable command.

If DHCP snooping is enabled globally but not for an interface and trusted interfaces are configured by running the dhcp snooping trusted command, the device can also generate logs.

Example

# Enable detection of bogus DHCP servers.
<HUAWEI> system-view
[~HUAWEI] dhcp snooping enable
[~HUAWEI] dhcp snooping server record
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >