A SERVICE OF

logo

748 CHAPTER 54: DHCP SNOOPING CONFIGURATION COMMANDS
All ports are untrusted by default.
Related command: display dhcp-snooping trust.
Example # Set port Ethernet 1/0 as trusted.
<Sysname> system-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] dhcp-snooping trust
display dhcp-snooping
Syntax display dhcp-snooping
View Any view
Parameter None
Description Use the
display dhcp-snooping command to display the binding information
recorded through DHCP snooping.
Related command: dhcp-snooping.
n
Using the display dhcp-snooping command displays IP-to-MAC bindings that are
present both in the DHCP-ACK and DHCP-REQUEST messages.
Example # Display DHCP snooping address binding information.
<Sysname> display dhcp-snooping
DHCP Snooping is enabled.
The client binding table for all untrusted ports.
Type : D--Dynamic , S--Static
Type IP Address MAC Address Lease VLAN Interface
==== =============== =============== ========== ==== =================
D 10.1.1.1 00e0-fc00-0006 286 1 Ethernet1/0
--- 1 dhcp-snooping item(s) found ---
display dhcp-snooping trust
Syntax display dhcp-snooping trust
Table 136 Description on fields of the display dhcp snooping command
Field Description
Type Binding type
IP Address IP address assigned to the DHCP client
MAC Address MAC address of the DHCP client
Lease Lease period of the IP address in seconds
VLAN VLAN where the port connecting the DHCP client resides
Interface Port to which the DHCP client is connected