![HP 3100 v2 Series Скачать руководство пользователя страница 160](http://html.mh-extra.com/html/hp/3100-v2-series/3100-v2-series_command-reference-manual_165751160.webp)
153
You must use the
port trunk permit vlan
command to configure the trunk port to allow and forward
packets from the PVID.
Related commands:
port link-type
and
port trunk permit vlan
.
Examples
# Configure VLAN 100 as the PVID of the trunk port Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port link-type trunk
[Sysname-Ethernet1/0/1] port trunk pvid vlan 100
# Configure VLAN 100 as the PVID of the trunk Layer 2 aggregate interface Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port link-type trunk
[Sysname-Bridge-Aggregation1] port trunk pvid vlan 100
MAC-based VLAN configuration commands
display mac-vlan
Syntax
display mac-vlan
{
all
|
dynamic
|
mac-address mac-address
|
static
|
vlan vlan-id
} [
|
{
begin
|
exclude
|
include
}
regular-expression
]
View
Any view
Default level
1: Monitor level
Parameters
all
: Displays all the MAC address-to-VLAN entries.
dynamic
: Displays dynamically configured MAC address-to-VLAN entries.
mac-address mac-address
: Displays the MAC address-to-VLAN entry containing the specified
MAC address.
static
: Displays the statically configured MAC address-to-VLAN entries.
vlan
vlan-id
: Displays the MAC address-to-VLAN entries associated with the specified VLAN.
|
: 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.
Description
Use
display mac-vlan
to display the specified MAC address-to-VLAN entries.