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.
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.