DHCP client cannot obtain a correct IP address

The request packets (DHCP discover) are broadcast by the DHCP clients. If multiple DHCP servers are located on the same subnet (for example, bogus DHCP server), the clients may obtain IP addresses from a bogus DHCP server.
To address this problem, configure DHCP snooping. Then clients can receive DHCP packets from only the trusted DHCP server. Perform the following configuration:
[Huawei] dhcp enable
[Huawei] dhcp snooping enable
[Huawei] interface gigabitethernet 1/0/1 //Enter the view of the interface connected to the DHCP client.
[Huawei-GigabitEthernet1/0/1] dhcp snooping enable
[Huawei-GigabitEthernet1/0/1] quit
[Huawei] interface gigabitethernet 1/0/2
[Huawei-GigabitEthernet1/0/2] dhcp snooping trusted //Configure the interface of the DHCP server as the trusted interface.
[Huawei-GigabitEthernet1/0/2] quit
- When you configure DHCP snooping on a Layer 2 access device, steps 1, 2, and 3 are mandatory and must be performed in the following sequence.
- When you configure DHCP snooping on a DHCP relay agent, only steps 1 and 2 are required.

Scroll to top