ipv6 nd source-mac aging-time

Function

The ipv6 nd source-mac aging-time command sets an aging time for ND attack entries with fixed source MAC addresses.

The undo ipv6 nd source-mac aging-time command restores the default aging time for ND attack entries with fixed source MAC addresses.

The default aging time of ND attack entries with fixed source MAC addresses is 300 seconds.

Format

ipv6 nd source-mac aging-time aging-value

undo ipv6 nd source-mac aging-time [ aging-value ]

Parameters

Parameter Description Value
aging-value

Specifies an aging time for ND attack entries.

The value is an integer ranging from 60 to 6000, in seconds.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nd write

Usage Guidelines

Usage Scenario

The ND protocol has powerful functions. However, if there is no security mechanism, the ND protocol can be easily used by attackers. The system collects statistics about ND messages sent to the CPU based on the source MAC addresses of the messages. If the number of ND messages with the same source MAC address received within 5 seconds exceeds a specified threshold, the system considers that an attack occurs and adds the MAC address to an attack entry. Before the attack entry ages out, the system performs the following operations based on a configured detection mode:

  • If the detection mode is set to filter, the system generates log information and filters out the ND messages sent from the source MAC address.
  • If the detection mode is set to monitor, the system only generates log information and does not filter out the ND messages sent from the source MAC address.

    To configure an aging time for ND attack entries with fixed source MAC addresses, run the ipv6 nd source-mac aging-time command.After the configured aging time expires, the entries are aged out.

Example

# Set an aging time for ND attack entries with fixed source MAC addresses to 500s.
<HUAWEI> system-view
[~HUAWEI] ipv6 nd source-mac aging-time 500
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >