< Home

display dhcp configuration

Function

The display dhcp configuration command displays the configuration of a DHCP public module.

Format

display dhcp configuration

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run this command to check the configuration of a DHCP public module.

Example

# Display the configuration of a DHCP public module.

<HUAWEI> display dhcp configuration
  DHCP global running information :                                             
  DHCP                                        : Enable                          
  DHCP speed limit                            : Disable  (default)                 
  DHCP anti-attack check duplicate option     : Disable  (default)              
  DHCP broadcast suppress                     : Disable  (default)
  DHCP anti-attack check udp-checksum         : Enable   (default)
  DHCP anti-attack check magic-cookie         : Disable  (default)
  DHCP udp-checksum                           : Disable  (default)
Table 1 Description of the display dhcp configuration command output

Item

Description

DHCP global running information

Global configuration of a DHCP public module.

DHCP

Whether DHCP is enabled. The value can be:
  • Enable: DHCP is enabled.
  • Disable (default): DHCP is disabled. By default, DHCP is disabled.

To configure this parameter, run the dhcp enable command.

DHCP speed limit

Whether dynamic DHCP packet rate limiting is enabled. The value can be:
  • Enable: This function is enabled.
  • Disable (default): This function is disabled. By default, dynamic DHCP packet rate limiting is disabled.

To configure this parameter, run the dhcp speed-limit auto command.

DHCP anti-attack check duplicate option

Whether the function of checking and discarding DHCP packets with duplicate options is enabled. The value can be:
  • Enable: This function is enabled.
  • Disable (default): This function is disabled. By default, the function of checking and discarding DHCP packets with duplicate options is disabled.

To configure this parameter, run the dhcp anti-attack check duplicate option command.

DHCP broadcast suppress

Whether DHCP broadcast suppression is enabled. The value can be:

  • Enable: This function is enabled.
  • Disable (default): This function is disabled. By default, DHCP broadcast suppression is disabled.

To configure this parameter, run the dhcp broadcast suppress enable command.

DHCP anti-attack check udp-checksum

Whether the function of checking the UDP header checksum in a DHCP packet and discarding a DHCP packet with an incorrect checksum is enabled. The value can be:
  • Enable (default): This function is enabled. By default, a device checks the UDP header checksum in a DHCP packet and discards a DHCP packet with an incorrect checksum.
  • Disable: This function is disabled.

To configure this parameter, run the dhcp anti-attack check duplicate option command.

DHCP anti-attack check magic-cookie

Whether the function of checking the magic cookie field in a DHCP packet and discarding a DHCP packet with an incorrect magic cookie field value is enabled. The value can be:
  • Enable: This function is enabled.
  • Disable (default): This function is disabled. By default, a device does not check the magic cookie field in a DHCP packet but directly forwards a DHCP packet with an incorrect magic cookie field value.

To configure this parameter, run the dhcp anti-attack check magic-cookie command.

DHCP udp-checksum

Whether a device is enabled to add the UDP header checksum to DHCP packets to be sent. The value can be:

  • Enable: The device is enabled to add the UDP header checksum to DHCP packets to be sent.
  • Disable (default): The device is disabled from adding the UDP header checksum to DHCP packets to be sent. By default, the UDP header checksum carried in DHCP packets sent by a device is 0, and the peer device does not verify the checksum.

To configure this parameter, run the dhcp udp-checksum enable command.

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