< Home

mac-address (BDIF interface view)

Function

The mac-address command configures a MAC address for a BDIF interface.

The undo mac-address command restores the default MAC address of a BDIF interface.

By default, the MAC address of a BDIF interface is the system MAC address.

Format

mac-address mac-address

undo mac-address

Parameters

Parameter Description Value
mac-address Specifies a MAC address for a BDIF interface. The value is in the format of H-H-H. Each H is a 4-digit hexadecimal number, such as 00e0 or fc01. If an H contains less than four digits, 0s are added ahead. For example, e0 is equal to 00e0. A MAC address cannot be all 0s or 1s or a multicast MAC address.

Views

BDIF interface view

Default Level

2: Configuration level

Usage Guidelines

Configuration Impact

After you configure a MAC address for a VBDIF interface, the device will actively send gratuitous ARP packets to update the mapping between MAC addresses and interfaces of other devices.

Example

# Configure the MAC address 0000-5e00-0101 for BDIF10.
<sysname> system-view
[sysname] bridge-domain 10
[sysname-bd10] quit
[sysname] interface vbdif 10
[sysname-Vbdif10] mac-address 0000-5e00-0101
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >