87
NOTE:
Only the DHCP snooping entries containing IP-to-MAC bindings that are present both in the DHCP-
ACK and DHCP-REQUEST messages are displayed by using the display dhcp-snooping command.
Related commands: dhcp-snooping and reset dhcp-snooping.
Examples
# Display all DHCP snooping entries.
<Sysname> display dhcp-snooping
DHCP Snooping is enabled.
The client binding table for all untrusted ports.
Type : D--Dynamic , S--Static , R--Recovering
Type IP Address MAC Address Lease VLAN SVLAN Interface
==== =============== ============== ============ ==== ===== =================
D 10.1.1.1 00e0-fc00-0006 286 1 2 GigabitEthernet1/0/1
--- 1 dhcp-snooping item(s) found ---
Table 16 Output description
Binding type, which can be:
ï‚· D: Dynamic IP-to-MAC binding.
ï‚· S: Static IP-to-MAC binding. Static IP-to-MAC bindings are not
supported.
ï‚· R: Specifies that the DHCP snooping entry is being restored through the
DHCP snooping entry file, and the interface in the entry is invalid.
IP address assigned to the DHCP client
MAC address of the DHCP client
Lease period left (in seconds)
Outer VLAN tag when DHCP snooping and QinQ are both enabled or the
DHCP snooping device receives a packet with two VLAN tags; or VLAN
where the port connecting the DHCP client resides
Inner VLAN tag when DHCP snooping and QinQ are both enabled or the
DHCP snooping device receives a packet with two VLAN tags; or N/A.
Port to which the DHCP client is connected
display dhcp-snooping binding database
Syntax
display dhcp-snooping binding database [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level