SME Network Fit AP V200R023C10 Command Reference
display dhcp snooping user-bind
Function
The display dhcp snooping user-bind command displays information about the DHCP snooping dynamic binding table.
Format
display dhcp snooping user-bind { { interface interface-type interface-number | ip-address ip-address | mac-address mac-address | vlan vlan-id } * | all } [ verbose ]
Parameters
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. |
all |
Displays all entries in the binding table. |
- |
verbose |
Displays detailed information about the binding table. |
- |
Usage Guidelines
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 of the VLAN to which the interface belongs. You can run the display dhcp snooping user-bind command to view the DHCP snooping binding table.
Example
# 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) Interface Lease -------------------------------------------------------------------------------- 10.1.28.141 00e0-fc12-3456 10 /-- /-- GE0/0/1 2008.10.17-07:31 -------------------------------------------------------------------------------- Print count: 1 Total count: 1
- Display detailed information about the DHCP snooping binding table by specifying the verbose parameter.
<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 : 00e0-fc12-3456 VSI : -- VLAN(O/I/P) : 10 /-- /-- Interface : GE0/0/1 Renew time : 2020.08.26-11:58 Expire time : 2019.08.27-11:58 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
<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 : 00e0-fc12-3456 VSI : -- VLAN(O/I/P) : 10 /-- /-- Interface : GE0/0/1 Lease : 2008.01.20-19:54 IPSG Status : ineffective 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 -------------------------------------------------------------------------------- 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 that the online user belongs to. Devices do not support this field. NOTE:
If verbose is not specified, only one of VSI and VLAN (O/I/P) is displayed. |
VLAN (O/I/P) |
Outer VLAN ID, inner VLAN ID, or mapped VLAN ID of the online user. NOTE:
If verbose is not specified, only one of VSI and VLAN (O/I/P) is displayed. |
Interface |
Interface through which a user goes online. |
IPSG Status |
IPv4 effective indicates that IPv4 packet check takes effect. slot: <3> indicates that the slot ID is 3. |
Lease |
Time when the lease of the IP address used by a user expires. |
IPSG Status |
Whether the binding table is effective for IP packet check that has been enabled.
This field is invalid if IP packet check is disabled. |
Gateway |
Gateway IP address. |
Server-ip |
IP addresses of the DHCP server. |
Option12 |
DHCP Option 12 information carried by a user packet. This field is displayed only when a user packet carries this attribute. |
Option55 |
DHCP Option 55 information carried by a user packet. This field is displayed only when a user packet carries this attribute. |
Option60 |
DHCP Option 60 information carried by a user packet. This field is displayed only when a user packet carries this attribute. |