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 ] ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
ip ip-address: Displays the DHCP snooping entry for the specified IP address. If you do not specify an IP address, this command displays DHCP snooping entries for all IP addresses.
vlan vlan-id: Specifies the VLAN ID where the IP address resides.
verbose: Displays detailed DHCP snooping entry information.
Usage guidelines
If you do not specify any parameters, this command displays all DHCP snooping entries.
Examples
# Display summary information about 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 1.1.1.11 0000-0101-010b 16907537 2 3
# Display detailed information about all DHCP snooping entries.
<Sysname> display dhcp snooping binding verbose IP address: 1.1.1.7 MAC address: 0000-0101-0107 Lease: 16907553 seconds VLAN: 2 SVLAN: 3 Interface: Parameter request list: 03 06 21 IP address: 1.1.1.104 MAC address: 0000-0101-010b Lease: 16907537 seconds VLAN: 2 SVLAN: 3 Interface: Parameter request list: 37 0B 01 0F 03 06 2C 2E 2F 1F 21 F9 2B
Table 19: 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. |
Parameter request list | Parameters that the DHCP client requests, in hexadecimal notation. |
Related commands
dhcp snooping enable
reset dhcp snooping binding