mac accounting enable (Bridge domain view)

Function

The mac accounting enable command enables MAC accounting for a BD.

The undo mac accounting enable command disables MAC accounting for a BD.

By default, MAC accounting is disabled for a BD.

Format

mac accounting enable

undo mac accounting enable

Parameters

None

Views

Bridge domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mac write

Usage Guidelines

Usage Scenario

MAC accounting enables a device to collect traffic statistics based on MAC addresses. To enable the function for a BD, run the mac accounting enable command in the BD view.

MAC accounting applies to the following scenario:

If a device is under DDoS attacks, enable MAC accounting, allowing the device to collect the statistics of traffic from each peer based on MAC addresses. If the traffic from a peer is huge, the peer may be an attack source.

Example

# Enable MAC accounting for a BD.
<HUAWEI> system-view
[~HUAWEI] bridge-domain 10
[*HUAWEI-bd10] mac accounting enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >