Mac-Vlan Trigger Enable - HP A5830 Series Command Reference Manual

Layer 2 - lan switching
Hide thumbs Also See for A5830 Series:
Table of Contents

Advertisement

Default level
2: System level
Parameters
mac-address mac-address: Specifies a MAC address.
mask mac-mask: Specifies a mask for the MAC address in the format of H-H-H. The mac-mask parameter
is comprised of the high-order part (all the binary bits of which are 1s) and the low-order part (all the
binary bits of which are 0s). By default, the hexadecimal digits of this parameter are all Fs.
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
parameter ranges from 0 to 7.
all: Removes all the static MAC address-to-VLAN entries.
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
# Associate the MAC addresses with the high-order six hexadecimal digits being 1 1 1 122 with VLAN 100
and 802.1p priority 4.
<Sysname> system-view
[Sysname] mac-vlan mac-address 1111-2222-3333 mask ffff-ff00-0000 vlan 100 priority 4

mac-vlan trigger enable

Description
Use the mac-vlan trigger enable command to enable dynamic MAC-based VLAN assignment. The port
configured with this command will be dynamically assigned to VLANs based on the source MAC
addresses of the received packets.
Use the undo mac-vlan trigger enable command to restore the default.
By default, dynamic MAC-based VLAN assignment is not enabled.
After receiving a packet with an unknown source MAC address, a port submits the packet to the CPU.
If the source MAC address matches a MAC address-to-VLAN entry (whose mask is all Fs) maintained by
the device, the device dynamically learns the source MAC address and assigns the receiving port to the
corresponding VLAN. Then, subsequent packets with this source MAC address can be directly forwarded
through the port.
If the MAC address does not match any MAC address-to-VLAN entry or matches only a MAC address-to-
VLAN entry whose mask is not all Fs, the device will not dynamically learn the MAC address and assign
the receiving port to the corresponding VLAN.
Syntax
mac-vlan trigger enable
undo mac-vlan trigger enable
167

Advertisement

Table of Contents
loading

Table of Contents