< Home

mac-address static (upgrade-compatible command)

Function

Using the mac-address static command, you can add a static MAC address entry.

Format

mac-address static mac-address interface-type interface-number vlan vlan-id1

Parameters

Parameter
Description Value

mac-address

Specifies the destination MAC address in a MAC address entry.

The value is in H-H-H format. H is a hexadecimal number of 1 to 4 digits.

interface-type interface-number

Specifies the outbound interface in a MAC address entry.
  • interface-type specifies the type of the outbound interface.
  • interface-number specifies the number of the outbound interface.

-

vlan vlan-id1

Specifies the VLAN ID in the VLAN tag.

The value is an integer that ranges from 1 to 4094.

Views

Ethernet interface view, GE interface view, XGE interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

This command is available to aid upgrade compatibility. It can be run when it is entered in full.

After the upgrade, it is replaced by the mac-address static vlan, mac-address static vlanif, and mac-address static vsi command.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic