09-Security Configuration Guide

HomeSupportSwitchesS12500X-AF SeriesConfigure & DeployConfiguration GuidesH3C S12500X-AF Switch Series Configuration Guides(R320x)-6W10009-Security Configuration Guide
18-ND attack defense configuration
Title Size Download
18-ND attack defense configuration 57.94 KB

Configuring ND attack defense

About ND attack defense

IPv6 Neighbor Discovery (ND) attack defense is able to identify forged ND messages to prevent ND attacks.

The IPv6 ND protocol does not provide any security mechanisms and is vulnerable to network attacks. As shown in Figure 1, an attacker can send the following forged ICMPv6 messages to perform ND attacks:

·     Forged NS/NA/RS messages with an IPv6 address of a victim host. The gateway and other hosts update the ND entry for the victim with incorrect address information. As a result, all packets intended for the victim are sent to the attacking terminal.

·     Forged RA messages with the IPv6 address of a victim gateway. As a result, all hosts attached to the victim gateway maintain incorrect IPv6 configuration parameters and ND entries.

Figure 1 ND attack diagram

 

ND attack defense tasks at a glance

All ND attack defense tasks are optional.

·     Enabling source MAC consistency check for ND messages

·     Configuring IPv6 destination guard

Enabling source MAC consistency check for ND messages

About source MAC consistency check

The source MAC consistency check feature is typically configured on gateways to prevent ND attacks.

This feature checks the source MAC address and the source link-layer address for consistency for each arriving ND message.

·     If the source MAC address and the source link-layer address are not the same, the device drops the packet.

·     If the addresses are the same, the device continues learning ND entries.

The ND logging feature logs source MAC inconsistency events, and it sends the log messages to the information center. The information center can then output log messages from different source modules to different destinations. For more information about the information center, see Network Management and Monitoring Configuration Guide.

Procedure

1.     Enter system view.

system-view

2.     Enable source MAC consistency check for ND messages.

ipv6 nd mac-check enable

By default, source MAC consistency check is disabled for ND messages.

3.     (Optional.) Enable the ND logging feature.

ipv6 nd check log enable

By default, the ND logging feature is disabled.

As a best practice, disable the ND logging feature to avoid excessive ND logs.

Configuring IPv6 destination guard

About IPv6 destination guard

IPv6 destination guard ensures that the device resolves IPv6 destination IP addresses only when the IP addresses have matching DHCPv6 relay entries or IP source guard bindings. The feature ensures that users can access only valid and active terminals, and reduces the number of ND entries on the device, improving device performance.

Before sending out a packet to an IPv6 address, the device performs the IPv6 destination guard as follows:

1.     Searches DHCPv6 relay entries for a match based on the destination IPv6 address and packet output interface.

¡     If a match is found, the device initiates ND resolution from the output interface. If the resolution succeeds, the device sends out the packet. If the resolution fails, the device drops the packet.

¡     If no match is found, the device proceeds to the next step.

2.     Searches IP source guard binding table for a match based on the destination IPv6 address and packet output interface.

¡     If a match is found, the device initiates ND resolution from the output interface. If the resolution succeeds, the device sends out the packet. If the resolution fails, the device drops the packet.

¡     If no match is found, the device does not initiate ND resolution and drops the packet.

The device enters stressed mode when the CPU or memory usage exceeds their thresholds or the number of unresolved ND entries exceeds a specific value. If the device continues resolving a large number of IPv6 addresses in stressed mode, the CPU will be overloaded and the device will crash. To reduce the workload of the device, specify the stressed keyword. In this case, IPv6 destination guard is enabled after device enters stressed mode. The device resolves only IPv6 addresses that pass the IPv6 destination guard check.

For more information about DHCPv6 relay entries, see DHCPv6 relay agent configuration in Layer 3—IP Services Configuration Guide. For more information about IP source guard entries, see "Configuring IP source guard."

Restrictions and guidelines: IPv6 destination guard configuration

You can enable IPv6 destination guard globally or on an interface.

For an interface, the interface-specific IPv6 destination guard status configuration has higher priority than the global IPv6 destination guard status.

If IPv6 destination guard is not enabled on an interface, the IPv6 destination guard status on the interface is determined by the global IPv6 destination guard status.

Enabling/disabling IPv6 destination guard globally

1.     Enter system view.

system-view

2.     Enable or disable IPv6 destination guard globally.

¡     Enable IPv6 destination guard globally.

ipv6 destination-guard global enable [ stressed ]

¡     Disable IPv6 destination guard globally.

undo ipv6 destination-guard global enable

By default, IPv6 destination guard is disabled globally.

Enabling/disabling IPv6 destination guard on an interface

1.     Enter system view.

system-view

2.     Enter system view.

interface interface-type interface-number

3.     Enable or disable IPv6 destination guard on an interface.

¡     Enable IPv6 destination guard on an interface.

ipv6 destination-guard enable [ stressed ]

¡     Disable IPv6 destination guard on an interface.

ipv6 destination-guard disable

By default, the interface-specific IPv6 destination guard status is consistent with the global IPv6 destination guard status.

Display and maintenance commands for IPv6 destination guard

Execute display commands in any view.

 

Task

Command

Display IPv6 destination guard status.

display ipv6 destination-guard [ interface interface-type interface-number ]

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网