< Home

mac-purge

Function

The mac-purge command purges an OAM MAC address from the forwarding table.

Format

mac-purge vsi vsi-name mac mac-address [ packet-num num | register | flood ] *

Parameters

Parameter Description Value
vsi vsi-name Specifies the name of the VSI on which the operation is performed. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
mac mac-address Specifies the MAC address for the diagnostic test, expressed in the format of H-H-H. The value is in H-H-H format. The values are as follows:
  • 0018-82a4-3fb1
  • 0018-82a4-3fb2
  • 0018-82a4-3fb3
  • 0018-82a4-3fb4
  • 0018-82a4-3fb5
  • 0018-82a4-3fb6
  • 0018-82a4-3fb7
  • 0018-82a4-3fb8
  • 0018-82a4-3fb9
  • 0018-82a4-3fba
packet-num num Specifies the number of packets to be sent. The value is a decimal integer that ranges from 1 to 5. The default value is 3.
register Specifies the MAC address reserved for the OAM test.
NOTE:

If the preceding command contains register, an OAM MAC address is populated into the local device or the peer device to make the device discard received packets corresponding to the OAM MAC address.

-
flood Indicates that the OAM MAC address is flooded throughout the VSI. -

Views

All views

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To rectify a Layer 2 communication fault on the device, you can run the mac-purge command to clear OAM MAC addresses populated into the device.

Prerequisites

The diagnostic test on the MAC address learning capacity has been enabled using the mac-diagnose enable command.

Precautions

  • If vsi-name in the mac-purge command for purging an OAM MAC address is not identical with vsi-name in the mac-purge command that is previously used in populating the OAM MAC address, the OAM MAC address cannot be cleared.

  • A maximum of 100 OAM MAC addresses of populate and register+populate types can be populated into a device.

  • The mac-purge command does not support BGP AD VPLS.

Using the mac-purge command, you can purge the populated OAM MAC address that is specialized for the test or register an OAM MAC address to a device to make the device discard the received packets corresponding to the OAM MAC address.

Test objects vary according to parameters.
  • If the mac-purge command contains flood, an OAM MAC address is flooded throughout the VSI and then purged from all devices in the VSI and the local device into which the OAM MAC address has been populated. If the preceding command does not contain flood, the OAM MAC address is purged only from the local device.
  • If the mac-purge command contains register, an OAM MAC address is registered on the device to make the device discard the packet corresponding to the OAM MAC address after receiving them.

Example

# Purge the OAM MAC address from the VSI named vsi1, flood the OAM MAC address over the domain, and set the number of packets to be sent to 3.

<HUAWEI> mac-purge vsi vsi1 mac 0018-82a4-3fb1 flood packet-num 3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >