The dhcp trust port command configures a DHCP trusted interface on an AP.
The undo dhcp trust port command cancels the configuration.
By default, the DHCP trusted interface is enabled on the AP's uplink interface in the AP wired port profile view.
Usage Scenario
Before WLAN services are delivered to an AP, run the dhcp trust port command in the AP wired port profile view. After the command is run, the AP receives the DHCP OFFER, ACK, and NAK packets sent by the authorized DHCP server and forwards the packets to STAs so that the STAs can obtain valid IP addresses and go online.
The undo dhcp trust port command configured in the AP wired port profile view takes effect only in direct forwarding mode, but not the tunnel forwarding mode.
Precautions
When executed in the AP wired port view, this command takes effect only on uplink interfaces of an AP. To configure a downlink wired interface on an AP as a DHCP trusted interface, you only need to run the learn-client-address enable (AP wired port profile view) command to enable STA address learning, but do not need to run the dhcp trust port command.