154
After configuring the default VLAN for a trunk port, you must use the port trunk permit vlan command to
configure the trunk port to allow packets from the default VLAN to pass through, so that the port can
forward packets from the default VLAN.
Related commands: port link-type and port trunk permit vlan.
Examples
# Configure VLAN 100 as the default VLAN of the trunk port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port link-type trunk
[Sysname-GigabitEthernet1/0/1] port trunk pvid vlan 100
# Configure VLAN 100 as the default VLAN of the trunk Layer 2 aggregate interface Bridge-aggregation
1, assuming Bridge-aggregation 1 does not have member ports.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port trunk pvid vlan 100
# Configure VLAN 100 as the default VLAN of the trunk Layer 2 aggregate interface Bridge-aggregation
1. Among the member ports of the aggregation group corresponding to Bridge-aggregation 1,
GigabitEthernet 1/0/2 is an access port and GigabitEthernet 1/0/3 is a trunk port.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port trunk pvid vlan 100
Error: Failed to configure on interface GigabitEthernet1/0/2! This port is not a Trunk
port!
The output shows that the configuration on Bridge-aggregation 1 and the member port GigabitEthernet
1/0/3 succeeded; the configuration on GigabitEthernet 1/0/2 failed because GigabitEthernet 1/0/2
was not a trunk port.
MAC address-based VLAN configuration
commands
display mac-vlan
Syntax
display mac-vlan { all | dynamic | mac-address mac-address [ mask mac-mask ] | 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.