reset mac-address

Function

The reset mac-address command deletes dynamically learned MAC address entries on a device.

Format

reset mac-address [ interface-type interface-number | interface-name ]

reset mac-address { { interface-type interface-number | interface-name } vlan vlan-id | vlan vlan-id [ interface-type interface-number | interface-name ] }

reset mac-address bridge-domain bd-id

reset mac-address { { interface-type interface-number | interface-name } vsi vsi-name | vsi vsi-name [ interface-type interface-number | interface-name ] }

reset mac-address mac-address [ vlan vlan-id | vsi vsi-name | bridge-domain bd-id ]

reset mac-address vsi vsi-name peer peer-ip pw-id pw-id

reset mac-address { { interface-type interface-number | interface-name } evpn evpnName | evpn evpnName [ interface-type interface-number | interface-name ] }

reset mac-address mac-address evpn evpnName

Parameters

Parameter Description Value
interface-type

Specifies the interface type.

-

interface-number

Specifies the interface number.

-

interface-name

Specifies the interface name.

-

mac-address

Specifies the MAC address.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0. The MAC address cannot be set to FFFF-FFFF-FFFF.

vlan vlan-id

Specifies the VLAN ID.

The value is an integer ranging from 1 to 4094.

bridge-domain bd-id

Specifies the BD ID.

The value is an integer ranging from 1 to 16777215.

vsi vsi-name

Specifies the VSI name.

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.

peer peer-ip

Specifies an IP address of a peer.

The value is in dotted decimal notation.

pw-id pw-id

Specifies the Virtual Circuit (VC) ID of a pseudowire (PW).

The value is an integer ranging from 1 to 4294967295.

evpn evpnName

Specifies the EVPN name.

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.

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mac execute

Usage Guidelines

Usage Scenario

To delete dynamically learned MAC address entries (entries to be deserted, for example), run the reset mac-address command.

Prerequisites

Before the reset mac-address command is run, the BD(Bridge Domain), VLAN and VSI have been created.

Precautions

After the reset mac-address command is run, the dynamically learned MAC address entries are deleted and cannot be restored. Exercise caution when running the command. To prevent incorrect deletion of available MAC address entries, specify a BD ID, VLAN ID, VSI name, or interface name for a MAC address entry to be deleted.

Example

# Delete MAC address entries on a specified interface.
<HUAWEI> reset mac-address GigabitEthernet 0/1/1
# Delete a specified MAC address entry.
<HUAWEI> reset mac-address 1-1-1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >