undo mac-address

Function

The undo mac-address all command is used to delete the configured MAC address entries.

Format

undo mac-address { { static [ interface-type interface-number | interface-name ] } | { blackhole [ mac-address ] } | mac-address }

undo mac-address { interface-type interface-number | interface-name }

undo mac-address

Parameters

Parameter Description Value
static

Deletes a static MAC address.

-

interface-type

Specifies the interface type.

-

interface-number

Specifies the interface number.

-

interface-name

Specifies the interface name.

-

blackhole

Number of blackhole MAC address entries.

-

mac-address

Displays an entry with a specified 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.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mac write

Usage Guidelines

Usage Scenario

This command is used to delete a manually configured MAC address entry.

Example

# Deletes all configured MAC entries.
<HUAWEI> system-view
[~HUAWEI] undo mac-address all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic