display dhcp snooping bind-table

Function

The display dhcp snooping bind-table command displays information about a DHCP snooping binding table.

Format

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 }

Parameters

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.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
dhcp read

Usage Guidelines

Usage Scenario

After DHCP snooping is enabled, you can run the display dhcp snooping bind-table command to view information about a DHCP snooping binding table.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about DHCP snooping binding entries in a VPN instance.
<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
# Display the static entries in the DHCP snooping binding table in BD 10.
<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
# Display the static entries in the DHCP snooping binding table.
<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
# Display information about DHCP snooping binding entries on the public network.
<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
Table 1 Description of the display dhcp snooping bind-table command output
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:

  • S: indicates static entries.
  • D: indicates dynamic 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >