mac-vlan mac-address

Syntax

mac-vlan mac-address mac-address vlan vlan-id [ priority pri ]

undo mac-vlan { all | mac-address mac-address | vlan vlan-id }

View

System view

Default level

2: System level

Parameters

mac-address mac-address: Specifies a MAC address.

vlan vlan-id: Specifies a VLAN ID, in the range of 1 to 4094.

priority pri: Specifies the 802.1p priority value corresponding to the specified MAC address. The pri argument ranges from 0 to 7.

all: Removes all the static MAC address-to-VLAN entries.

Description

Use mac-vlan mac-address to associate the specified VLAN and priority value with the specified MAC addresses.

Use undo mac-vlan to remove the association.

The MAC-to-VLAN entry maintained by the device describes the relationship between a MAC address and a VLAN, and a priority value. The system adds/removes MAC address-to-VLAN entries to/from the table according to the configuration.

Examples

# Associate a single MAC address 0-1-1 with VLAN 100 and 802.1p priority 7.

<Sysname> system-view
[Sysname] mac-vlan mac-address 0-1-1 vlan 100 priority 7