156
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
Protocol-based VLAN configuration commands
(available only on the HPE 3100 v2 EI)
display protocol-vlan interface
Syntax
display protocol-vlan interface
{
interface-type interface-number1
[
to
interface-type
interface-number2
] |
all
} [
|
{
begin
|
exclude
|
include
}
regular-expression
]
View
Any view
Default level
2: System level
Parameters
interface-type interface-number1
: Specifies an interface by its type and number.
interface-type interface-number1
to
interface-type interface-number2
: Specifies an interface range.
all
: Displays information about protocol-based VLANs on all ports.
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see
Fundamentals Configuration Guide
.
begin
: Displays the first line that matches the specified regular expression and all lines that follow.
exclude
: Displays all lines that do not match the specified regular expression.
include
: Displays all lines that match the specified regular expression.
regular-expression
: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.