display dhcp snooping binding
Use display dhcp snooping binding to display DHCP snooping entries.
Syntax
display dhcp snooping binding [ ip ip-address [ vlan vlan-id ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ip ip-address: Displays the DHCP snooping entry for the specified IP address.
vlan vlan-id: Specifies the VLAN ID where the IP address resides.
Usage guidelines
If you do not specify any parameters, this command displays all DHCP snooping entries.
Examples
# Display all DHCP snooping entries.
<Sysname> display dhcp snooping binding 2 DHCP snooping entries found IP address MAC address Lease VLAN SVLAN Interface =============== ============== ============ ===== ===== ================= 1.1.1.7 0000-0101-0107 16907533 2 3 XGE1/0/1 1.1.1.11 0000-0101-010b 16907537 2 3 XGE1/0/3
Table 18: Command output
Field | Description |
---|---|
DHCP snooping entries found | Number of DHCP snooping entries. |
IP address | IP address assigned to the DHCP client. |
MAC address | MAC address of the DHCP client. |
Lease | Remaining lease duration in seconds. |
VLAN | When both DHCP snooping and QinQ are enabled or the DHCP packet contains two VLAN tags, this field identifies the outer VLAN tag. Otherwise, it identifies the VLAN where the port connecting the DHCP client resides. |
SVLAN | When both DHCP snooping and QinQ are enabled or the DHCP packet contains two VLAN tags, this field identifies the inner VLAN tag. Otherwise, it displays N/A. |
Interface | Port connected to the DHCP client. |
Related commands
dhcp snooping enable
reset dhcp snooping binding