Mac-Vlan Enable; Mac-Vlan Mac-Address - HP A5830 Series Command Reference Manual

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

Advertisement

mac-vlan enable

Description
Use the mac-vlan enable command to enable the MAC-based VLAN feature on a port.
Use the undo mac-vlan enable command to disable the MAC-based VLAN feature on a port.
By default, the MAC-based VLAN feature is disabled on a port.
Syntax
mac-vlan enable
undo mac-vlan enable
View
Layer 2 Ethernet port view
Default level
2: System level
Parameters
None
Example
# Enable the MAC-based VLAN feature on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname–GigabitEthernet1/0/1] mac-vlan enable

mac-vlan mac-address

Description
Use the mac-vlan mac-address command to associate the specified VLAN and priority value with the
specified MAC addresses.
Use the undo mac-vlan command to remove the association.
Two MAC address-to-VLAN entry tables exist in a device. One table contains the MAC address-to-VLAN
entries configured with the mask parameter specified. A MAC address-to-VLAN entry of this type
describes the relationship between a group of MAC addresses and a VLAN, and a priority value.
Another table contains the MAC address-to-VLAN entries configured without the mask parameter
specified. A MAC address-to-VLAN entry of this type describes the relationship between a single MAC
address and a VLAN, and a priority value. The system adds/removes MAC address-to-VLAN entries
to/from the two tables according to the configuration.
Syntax
mac-vlan mac-address mac-address [ mask mac-mask ] vlan vlan-id [ priority pri ]
undo mac-vlan { all | mac-address mac-address [ mask mac-mask ] | vlan vlan-id }
View
System view
166

Advertisement

Table of Contents
loading

Table of Contents