display dhcp snooping

Function

The display dhcp snooping command displays DHCP snooping running information.

The display dhcp snooping global command displays the information about DHCP snooping..

Format

display dhcp snooping { interface { interface-type interface-number | interface-name } | vlan vlan-id | bridge-domain bd-id }

display dhcp snooping vlan vlan-id { interface { interface-type interface-number | interface-name } }

display dhcp snooping global

Parameters

Parameter Description Value
interface interface-type interface-number

Specifies the type and number of an interface.

-

interface interface-name

Specifies the name of an interface.

-

vlan vlan-id

Specifies a VLAN ID.The value is an integer ranging from 1 to 16384.

The value is an integer ranging from 1 to 4094.

bridge-domain bd-id

Specifies the BD ID.

The value is an integer ranging from 1 to 16777215.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
dhcp read

Usage Guidelines

Usage Scenario

After configuring DHCP snooping functions, you can run the display dhcp snooping command to check the DHCP snooping running information, after the display dhcp snooping global command is run, the device displays all configuration information about DHCP snooping enabled globally.

Precautions

The device can collect statistics about dropped invalid packets only when the dhcp snooping alarm enable command is configured.

Example

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

# Display DHCP snooping running information.
<HUAWEI> display dhcp snooping vlan 10
dhcp snooping enable
 dhcp snooping check arp enable
 dhcp snooping check ip enable
 dhcp snooping alarm ip enable
 dhcp snooping alarm ip threshold 205
 dhcp snooping alarm dhcp-chaddr enable
 dhcp snooping alarm dhcp-chaddr threshold 200
 dhcp check chaddr enable
 dhcp snooping alarm dhcp-request enable
 dhcp snooping alarm dhcp-request threshold 300
 dhcp snooping max-user-number 100
 arp total                  0
 ip total                   0
 dhcp-request total         0
 chaddr&src mac total       0
 dhcp-reply total           0
# Display the information about DHCP snooping enabled globally.
<HUAWEI> display dhcp snooping global
dhcp snooping enable
dhcp snooping bind-table autosave cfcard:/backup.tbl
dhcp snooping alarm threshold 50
dhcp snooping database authentication-mode check
Table 1 Description of the display dhcp snooping command output
Item Description
dhcp snooping enable

DHCP snooping is enabled globally.

dhcp snooping bind-table autosave cfcard:/backup.tbl

Back up the binding table on the hard disk. hda1:/backup.tbl is the path where you input the backup binding table.

dhcp snooping alarm threshold 50

The global alarm threshold is 50 and it is the default alarm threshold of each interface.

dhcp snooping database authentication-mode check

Set the integrity check mode of the DHCP snooping binding table to check.

dhcp snooping check arp enable

ARP check.

dhcp snooping check ip enable

IP check.

dhcp snooping alarm ip enable

Alarm for dropped IP packets that mismatch any entry in the binding table.

dhcp snooping alarm ip threshold

Alarm threshold for the number of dropped IP packets that mismatch any entry in the binding table.

dhcp check chaddr enable

Check for match between the CHADDR field value and the source MAC address in the Ethernet frame header.

dhcp snooping alarm dhcp-chaddr enable

Alarm for dropped DHCP packets with the CHADDR field value mismatching the source MAC address in the Ethernet frame header.

dhcp snooping alarm dhcp-chaddr threshold

Alarm threshold for the number of dropped DHCP packets with the CHADDR field value mismatching the source MAC address in the Ethernet frame header.

dhcp snooping alarm dhcp-request enable

Check for packets requesting lease renewal.

dhcp snooping alarm dhcp-request threshold

Alarm threshold for the number of dropped lease-renewal-request packets that mismatch any entry in the binding table.

dhcp snooping max-user-number

Maximum number of users.

arp total

Number of dropped ARP packets (the value does not reset even when the alarm threshold is reached).

ip total

Number of dropped IP packets (the value does not reset even when the alarm threshold is reached).

dhcp-request total

Number of dropped DHCP request packets (the value does not reset even when the alarm threshold is reached).

chaddr&src mac total

Number of dropped DHCP reqmac packets (the value does not reset even when the alarm threshold is reached).

dhcp-reply total

Number of dropped DHCP reply packets (the value does not reset even when the alarm threshold is reached).

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