The dhcp snooping check enable command enables DHCP check for a BD.
The undo dhcp snooping check enable command disables DHCP check for a BD.
The dhcp snooping trusted command configures an interface as a trusted interface in a BD.
The undo dhcp snooping trusted command restores the default settings.
By default, DHCP check is disabled in a BD, after DHCP snooping is enabled in a BD, all interfaces in the BD are untrusted interfaces.
Parameter | Description | Value |
---|---|---|
dhcp-request |
Checks whether DHCP request packets match the binding entries. |
- |
ip |
Checks whether IP packets match the binding entries. |
- |
arp |
Checks whether ARP packets match the binding entries. |
- |
chaddr |
Checks whether the client hardware address (CHADDR) field value in DHCP packets matches the MAC address in the Ethernet frame header. |
- |
Usage Scenario
You can configure the following DHCP packet check modes as required.
Prerequisites
DHCP snooping has been enabled globally using the dhcp snooping enable command.
Precautions
<HUAWEI> system-view [~HUAWEI] dhcp snooping enable [*HUAWEI] bridge-domain 40 [*HUAWEI-bd40] dhcp snooping enable [*HUAWEI-bd40] dhcp check chaddr enable
<HUAWEI> system-view [~HUAWEI] dhcp snooping enable [*HUAWEI] bridge-domain 30 [*HUAWEI-bd30] dhcp snooping enable [*HUAWEI-bd30] dhcp snooping check ip enable
<HUAWEI> system-view [~HUAWEI] dhcp snooping enable [*HUAWEI] bridge-domain 10 [*HUAWEI-bd10] dhcp snooping enable [*HUAWEI-bd10] dhcp snooping trusted
<HUAWEI> system-view [~HUAWEI] dhcp snooping enable [*HUAWEI] bridge-domain 20 [*HUAWEI-bd20] dhcp snooping enable [*HUAWEI-bd20] dhcp snooping check dhcp-request enable
<HUAWEI> system-view [~HUAWEI] dhcp snooping enable [*HUAWEI] bridge-domain 10 [*HUAWEI-bd10] dhcp snooping enable [*HUAWEI-bd10] dhcp snooping check arp enable