The display dhcp snooping bind-table command displays information about a DHCP snooping binding table.
display dhcp snooping bind-table { ip-address ip-address | mac-address mac-address | vlan vlan-id [ interface { interface-name | interface-type interface-number } ] | bridge-domain bd-id | interface { interface-name | interface-type interface-number } | vsi vsi-name | static | dynamic | all | vpn-instance vpn-instance-name | public-net }
Parameter | Description | Value |
---|---|---|
ip-address ip-address |
Specifies an IP address. |
The value is in dotted decimal notation. |
mac-address mac-address |
Specifies a MAC address. |
The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0. |
vlan vlan-id |
Specifies the ID of a VLAN. |
The value is an integer ranging from 1 to 4094. |
interface interface-type interface-number |
Specifies the type and number of an interface. |
- |
bridge-domain bd-id |
Specifies the BD ID. |
The value is an integer ranging from 1 to 16777215. |
vsi vsi-name |
Specifies the name of a VSI. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
static |
Displays information about static binding entries. |
- |
dynamic |
Displays information about dynamic binding entries. |
- |
all |
Displays information about all DHCP snooping binding tables. |
- |
vpn-instance vpn-instance-name |
Specifies a VPN instance name. |
The value is a string of 1 to 31 characters. |
public-net |
Displays information about binding entries on the public network. |
- |
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> system-view [~HUAWEI] display dhcp snooping bind-table vpn-instance vpn1 bind-table: ifname vrf/vsi/bdid p/cvlan mac-address ip-address tp lease ----------------------------------------------------------------------------------- Eth0/1/17 vpn1 0000/0000 00e0-fc04-0005 1.1.1.1 S 0 Eth0/1/17 vpn1 0000/0000 00e0-fc04-0005 100.1.1.1 D 170522-1815 ----------------------------------------------------------------------------------- binditem count: 2 binditem total count: 11
<HUAWEI> system-view [~HUAWEI] display dhcp snooping bind-table bridge-domain 10 bind-table: ifname vrf/vsi/bdid p/cvlan mac-address ip-address tp lease ----------------------------------------------------------------------------------- -- 10 0000/0000 - 2.2.2.2 S 0 ----------------------------------------------------------------------------------- binditem count: 1 binditem total count: 1
<HUAWEI> system-view [~HUAWEI] display dhcp snooping bind-table static bind-table: ifname vrf/vsi/bdid p/cvlan mac-address ip-address tp lease ------------------------------------------------------------------------------- GE0/1/0 -- 0000/0000 00e0-fc01-8f01 192.168.10.2 S 0 ------------------------------------------------------------------------------- binditem count: 1 binditem total count: 1
<HUAWEI> system-view [~HUAWEI] display dhcp snooping bind-table public-net bind-table: ifname vrf/vsi/bdid p/cvlan mac-address ip-address tp lease ----------------------------------------------------------------------------------- Eth0/1/19 -- 0000/0000 00e0-fc04-0005 1.1.1.1 S 0 -- 10 0000/0000 00e0-fc05-0006 1.1.1.2 S 0 Eth0/1/20.1 10 0004/0000 00e0-fc05-0006 1.1.2.1 S 0 -- -- 0015/0000 00e0-fc05-0006 1.1.2.2 S 0 Eth0/1/19 -- 0000/0000 00e0-fc04-0005 2.2.2.2 D 170522-1815 Eth0/1/20.1 10 0004/0000 00e0-fc04-0005 2.2.2.3 D 170522-1815 Eth0/1/21 -- 0015/0000 00e0-fc05-0006 2.2.3.2 D 170522-1815 ----------------------------------------------------------------------------------- binditem count: 7 binditem total count: 11
Item | Description |
---|---|
ifname | Name of the interface to which the binding table is bound. |
p/cvlan | PE VLAN ID and CE VLAN ID(for QinQ). |
mac-address | MAC address in the binding table. |
ip-address | IP address in the binding table. |
tp | Type of binding entries:
|
lease | Period after which the IP address allocated to a user is reclaimed. |
binditem count | Number of currently queried binding tables. |
binditem total count | Total number of binding tables. |
vrf | Identifier of an L3VPN. If the binding table is not bound to any L3VPN, the default value is 0. |
vsi | Name of a VSI. |
bdid | BD ID. |