The display dhcp snooping user-bind command displays information about the DHCP snooping dynamic binding table.
display dhcp snooping user-bind { { interface interface-type interface-number | ip-address ip-address | mac-address mac-address | vlan vlan-id | bridge-domain bd-id } * | all } [ verbose ]
Only the S5720-HI, S5730-HI, S6720-HI, S6730-H, S6730S-H, S6730-S, S6730S-S, S5732-H, S5731-S, S5731S-S, S5731S-H, S5731-H, S6720-EI, and S6720S-EI support the bridge-domain parameter.
Parameter |
Description |
Value |
---|---|---|
interface interface-type interface-number |
Displays binding entries mapping a specified interface. In the preceding information:
|
- |
ip-address ip-address |
Displays binding entries mapping a specified IP address. |
The value is in dotted decimal notation. |
mac-address mac-address |
Displays binding entries mapping a specified MAC address. |
The value is in H-H-H format. Each H is a hexadecimal number of 4 digits. |
vlan vlan-id |
Displays binding entries mapping a specified VLAN ID. |
The value is an integer in the range from 1 to 4094. |
bridge-domain bd-id |
Displays DHCP snooping running information in a specified broadcast BD. |
The BD ID must already exist. |
all |
Displays all entries in the binding table. |
- |
verbose |
Displays detailed information about the binding table. |
- |
After DHCP snooping is enabled, the device generates a DHCP snooping binding table. A binding entry contains the MAC address, IP address, interface connecting to the DHCP client, and ID VLAN to which the interface belongs. You can run the display dhcp snooping user-bind command to view the DHCP snooping binding table.
# Display information about the DHCP snooping binding table.
Display information about all binding entries.
<HUAWEI> display dhcp snooping user-bind all DHCP Dynamic Bind-table: Flags:O - outer vlan ,I - inner vlan ,P - Vlan-mapping IP Address MAC Address VSI/VLAN(O/I/P)/(BD-VLAN) Interface Lease ----------------------------------------------------------------------------------------- 10.1.28.141 78ac-d4b5-b858 10 GE0/0/1 2008.10.17-07:31 ----------------------------------------------------------------------------------------- Print count: 1 Total count: 1
<HUAWEI> display dhcp snooping user-bind all verbose DHCP Dynamic Bind-table: Flags:O - outer vlan ,I - inner vlan ,P - Vlan-mapping -------------------------------------------------------------------------------- IP Address : 10.10.21.254 MAC Address : 0200-0000-00e8 Bridge-domain : 1 VSI : -- VLAN(O/I/P) : 10 /-- /-- Interface : GE0/0/1 Renew time : 2019.03.07-11:32 Expire time : 2019.03.08-11:32 IPSG Status : IPv4 effective slot: <3> Gateway : 10.10.21.1 Server-ip : 10.10.21.1 Option12 : Tesgine2000 Option55 : 1 15 3 6 44 46 47 43 77 Option60 : DEC OptionList : 12 50 53 54 55 60 61 255 -------------------------------------------------------------------------------- Print count: 1 Total count: 1
Item |
Description |
---|---|
DHCP Dynamic Bind-table |
DHCP snooping dynamic binding table. |
Flags:O - outer vlan ,I - inner vlan ,P - Vlan-mapping |
O indicates the outer VLAN ID; I indicates the inner VLAN ID; P indicates the mapped VLAN ID. |
IP Address |
User IP address. |
MAC Address |
User MAC address. |
VSI |
Name of the VPN instance to which the online user belongs to. |
VLAN (O/I/P) |
Outer VLAN ID, inner VLAN ID, or mapped VLAN ID of the online user. |
(BD-VLAN) |
BD and the VLAN to which the BD is bound. |
Bridge-domain |
Broadcast domain. |
Interface |
Interface through which a user goes online. |
Renew time |
Entry update time. |
Expire time |
Aging time of entries. |
IPSG Status |
IPv4 effective indicates that IPv4 packet check takes effect. slot: <3> indicates that the slot ID is 3. |
Gateway |
Gateway IP address. |
Server-ip |
IP addresses of the DHCP server. |
Option12 |
DHCP Option 12 information carried by a user packet. |
Option55 |
DHCP Option 55 information carried by a user packet. |
Option60 |
DHCP Option 60 information carried by a user packet. |
OptionList |
DHCP Option information carried by a user packet. |