R3303-HP HSR6800 Routers Layer 3 - IP Services Command Reference

Table Of Contents
97
display dhcp-snooping information
dhcp-snooping trust
Use dhcp-snooping trust to configure a port as a trusted port.
Use undo dhcp-snooping trust to restore the default state of a port.
Syntax
dhcp-snooping trust [ no-user-binding ]
undo dhcp-snooping trust
Default
All ports are untrusted.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Default command level
2: System level
Parameters
no-user-binding: Specifies the port to not record the clients' IP-to-MAC bindings in received DHCP
requests. If this keyword is not specified, the port records the IP-to-MAC bindings for clients.
Usage guidelines
After you enable DHCP snooping, you need to specify the ports connected to the authorized DHCP
servers as trusted ports to make sure that DHCP clients can obtain valid IP addresses.
Examples
# Specify GigabitEthernet 3/1/1 as a trusted port and enable it to record the IP-to-MAC bindings of
clients.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/1/1
[Sysname-GigabitEthernet3/1/1] dhcp-snooping trust
Related commands
display dhcp-snooping trust
display dhcp-snooping
Use display dhcp-snooping to display DHCP snooping entries.
Syntax
display dhcp-snooping [ ip ip-address ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level