No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Security

S7700 and S9700 V200R011C10

This document describes the configurations of Security, including ACL, reflective ACL, local attack defense, MFF, attack defense, traffic suppression and storm control, ARP security, port security, DHCP snooping, ND snooping, PPPoE+, IPSG, SAVI, URPF, keychain, separating the management plane from the service plane, security risks.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Defense Against DHCP Flood Attacks

Configuring Defense Against DHCP Flood Attacks

Context

On a DHCP network, if an attacker sends a large number of DHCP messages to the device within a short time, the device performance may deteriorate and the device may not work normally. To prevent DHCP flood attacks, enable the device to check the rate of sending DHCP messages to the processing unit.

NOTE:
  • DHCP snooping has been enabled on the device using the dhcp snooping enable command before you configure the following functions.

  • Configure the maximum rate of sending DHCP messages.
    • If the maximum rate of sending DHCP messages is configured in the system view, the configuration takes effect for all the interfaces on the device. If the maximum rate of DHCP messages is configured in the interface view, the configuration takes effect only for the specified interface. If the maximum rate of sending DHCP messages is configured in the VLAN view, the configuration takes effect for all interfaces in the VLAN.

    • If the maximum rate of sending DHCP messages is configured in the system view, VLAN view, and interface view simultaneously, the smallest value takes effect.

  • Configure the alarm function.
    • If the alarm function is configured in the system view, the configuration takes effect for all interfaces on the device. If the alarm function is configured in the interface view, the configuration takes effect for the specified interface.

    • If an alarm threshold is configured in the system view and interface view simultaneously, the smaller one takes effect.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Configure the maximum rate of sending DHCP messages and enable the device to generate an alarm when the rate of sending DHCP messages exceeds the maximum rate.

    Configure the maximum rate of sending DHCP messages.

    • In the system view:
      1. Run dhcp snooping check dhcp-rate enable

        The device is enabled to check the rate of sending DHCP messages to the processing unit.

        By default, the device does not check the rate of sending DHCP messages to the processing unit.

        Running the dhcp snooping check dhcp-rate enable vlan { vlan-id1 [ to vlan-id2 ] }&<1-10> command in the system view is equivalent to running the dhcp snooping check dhcp-rate enable command in the VLAN view.

      2. Run dhcp snooping check dhcp-rate rate

        The maximum rate of sending DHCP messages to the processing unit is set.

        By default, the maximum rate of sending global DHCP messages to the processing unit is 100 pps, which is the same as the maximum rate of sending DHCP messages on interfaces to the processing unit.

    • In the VLAN view:
      1. Run vlan vlan-id

        The VLAN view is displayed.

      2. Run dhcp snooping check dhcp-rate enable

        The device is enabled to check the rate of sending DHCP messages to the processing unit.

        By default, the device does not check the rate of sending DHCP messages to the processing unit.

        If you run this command in the VLAN view, the command takes effect for all DHCP messages in a specified VLAN received by all the interfaces on the device.

        Running the dhcp snooping check dhcp-rate enable vlan { vlan-id1 [ to vlan-id2 ] }&<1-10> command in the system view is equivalent to running the dhcp snooping check dhcp-rate enable command in the VLAN view.

      3. Run dhcp snooping check dhcp-rate rate

        The maximum rate of sending DHCP messages to the processing unit is set.

        By default, the maximum rate of sending global DHCP messages to the processing unit is 100 pps, which is the same as the maximum rate of sending DHCP messages on interfaces to the processing unit.

      4. Run quit

        Return to the system view.

    • In the interface view:
      1. Run interface interface-type interface-number

        The interface view is displayed.

      2. Run dhcp snooping check dhcp-rate enable

        The device is enabled to check the rate of sending DHCP messages to the processing unit.

        By default, the device does not check the rate of sending DHCP messages to the processing unit.

      3. Run dhcp snooping check dhcp-rate rate

        The maximum rate of sending DHCP messages to the processing unit is set.

        By default, the maximum rate of sending global DHCP messages to the processing unit is 100 pps, which is the same as the maximum rate of sending DHCP messages on interfaces to the processing unit.

      4. Run quit

        Return to the system view.

    Alarm function:

    • In the system view:
      1. Run dhcp snooping alarm dhcp-rate enable

        The device is enabled to generate an alarm when the number of discarded DHCP messages reaches the alarm threshold.

        If you run this command in the system view, the command takes effect for all the interfaces of the device.

        By default, a device does not generate an alarm when the number of discarded DHCP messages reaches the alarm threshold.

      2. Run dhcp snooping alarm dhcp-rate threshold threshold

        The alarm threshold for the number of discarded DHCP messages is set on the interface.

        By default, the global alarm threshold for the number of discarded DHCP packets is 100, and the threshold on an interface is the same as the configuration in system view.

    • In the interface view:
      1. Run interface interface-type interface-number

        The interface view is displayed.

      2. Run dhcp snooping alarm dhcp-rate enable

        The device is enabled to generate an alarm when the number of discarded DHCP messages reaches the alarm threshold.

        If you run this command in the system view, the command takes effect for all the interfaces of the device.

        By default, a device does not generate an alarm when the number of discarded DHCP messages reaches the alarm threshold.

      3. Run dhcp snooping alarm dhcp-rate threshold threshold

        The alarm threshold for the number of discarded DHCP messages is set on the interface.

        By default, the global alarm threshold for the number of discarded DHCP packets is 100, and the threshold on an interface is the same as the configuration in system view.

      4. Run quit

        Return to the system view.

Translation
Download
Updated: 2019-04-01

Document ID: EDOC1000178319

Views: 137043

Downloads: 78

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next