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

CloudEngine 8800, 7800, 6800, and 5800 V200R005C10

This document describes the configurations of Security, including ACL, local attack defense, MFF, attack defense, traffic suppression and storm control, ARP security, Port security, DHCP snooping, ND snooping, PPPoE+, IPSG, SAVI, 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 Server DoS Attacks

Configuring Defense Against DHCP Server DoS Attacks

Context

Malicious use of IP addresses exhausts IP addresses in the IP address pool, so authorized users cannot obtain IP addresses. The DHCP server generally identifies the MAC address of a DHCP client based on the CHADDR (client hardware address) field in the DHCP Request message. If attackers continuously apply for IP addresses by changing the CHADDR field, IP addresses in the address pool on the DHCP server may be exhausted. As a result, authorized users cannot obtain IP addresses.

To prevent DHCP users on some interfaces from applying IP addresses maliciously, you can limit the number of DHCP snooping binding entries that can be learned by an interface. When the number of DHCP snooping binding entries reaches the maximum value, no DHCP client can obtain an IP address through the interface. To prevent attackers from continuously changing the CHADDR field in the DHCP Request message, enable the device to check whether the MAC address in the Ethernet frame header matches the CHADDR field in the DHCP message. If the two values match, the message is forwarded; if the two values do not match, the message is discarded.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Set the maximum number of DHCP snooping binding entries to be learned by an interface in the system, VLAN, or interface view.

    • In the system view:

    1. Run dhcp snooping user-bind max-number max-number vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

      The maximum number of DHCP snooping binding entries is set on the device.

      After running this command, the value specified in this command is the total number of DHCP snooping binding entries learned by all interfaces on the device.

      By default, a maximum of 32768 DHCP snooping binding entries can be learned on an interface.

    • In the VLAN view or interface view:

    1. Run vlan vlan-id

      The VLAN view is displayed.

      Or run interface interface-type interface-number

      The interface view is displayed.

    2. Run dhcp snooping user-bind max-number max-number

      The maximum number of DHCP snooping binding entries is set on the interface.

      If you run this command in the VLAN view, the command takes effect for all the interfaces in the VLAN.

      By default, a maximum of 32768 DHCP snooping binding entries can be learned on an interface.

      NOTE:
      • If you run this command in the VLAN view, the command takes effect on all the DHCP messages in the specified VLAN received by all the interfaces on the device. If you run this command in the interface view, the command takes effect on all the DHCP messages received by the specified interface.

      • If you run this command in the system view, VLAN view, and the interface view, the smallest value takes effect.

  3. Enable the device to check the CHADDR field in the message in the system view, VLAN view or interface view.

    • In the system view:

    1. Run dhcp snooping check vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

      The device is enabled to check whether the MAC address in the Ethernet frame header matches the CHADDR field in the DHCP message.

      By default, the device does not check whether the MAC address in the Ethernet frame header matches the CHADDR field in the DHCP message.

    • In the VLAN viewor interface view:

    1. Run vlan vlan-id

      The VLAN view is displayed.

      Or run interface interface-type interface-number

      The interface view is displayed.

    2. Run dhcp snooping check

      The device is enabled to check whether the MAC address in the Ethernet frame header matches the CHADDR field in the DHCP message.

      By default, the device does not check whether the MAC address in the Ethernet frame header matches the CHADDR field in the DHCP message.

      NOTE:

      If you run the dhcp snooping check mac-address enable command in the VLAN view, the command takes effect on all the DHCP messages in the specified VLAN received by all the interfaces on the device. If you run the dhcp snooping check mac-address enable command in the interface view, the command takes effect for all the DHCP messages received on the interface.

    3. Run quit

      Return to the system view.

  4. (Optional) Set the alarm threshold for the number of messages discarded by DHCP snooping in the system view or interface view.

    • In the system view:

    1. Run dhcp snooping alarm threshold threshold

      The global alarm threshold for the number of discarded messages by DHCP snooping is set.

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

      By default, the global alarm threshold for the number of messages discarded by DHCP snooping is 100.

    • In the interface view:

    1. Run interface interface-type interface-number

      The interface view is displayed.

    2. Run dhcp snooping alarm mac-address threshold threshold

      The alarm threshold for the number of DHCP messages discarded because the CHADDR field in the DHCP messages does not match the source MAC address in the Ethernet frame header is set.

      By default, an alarm is generated in the system when at least 100 DHCP snooping messages are discarded, and the alarm threshold on an interface is set using the dhcp snooping alarm threshold command in the system view.

  5. Run commit

    The configuration is committed.

Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100074765

Views: 22868

Downloads: 93

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