34
[Sysname-Ethernet1/1] port trunk permit vlan 2 4 50 to 100
Please wait........... Done.
# Assign the trunk Layer 2 aggregate interface Bridge-Aggregation 1 to VLAN 2.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port link-type trunk
[Sysname-Bridge-Aggregation1] port trunk permit vlan 2
Please wait... Done.
Configuring Ethernet1/1... Done.
Configuring Ethernet1/2... Done.
Configuring Ethernet1/3... Done.
The output shows that Ethernet 1/1, Ethernet 1/2, and Ethernet 1/3 are the member ports of the
aggregation group corresponding to Bridge-Aggregation 1.
Related commands
port link-type
port trunk pvid
Use
port trunk pvid
to configure the PVID for the trunk port.
Use
undo port trunk pvid
to restore the default.
Syntax
port trunk pvid vlan vlan-id
undo port trunk pvid
Default
The PVID of a trunk port is VLAN 1.
Views
Ethernet interface view, Layer 2 aggregate interface view
Default command level
2: System level
Parameters
vlan-id
: Specifies a VLAN ID in the range of 1 to 4094.
Usage guidelines
The following matrix shows the command and hardware compatibility in Layer 2 aggregate interface
view:
Hardware Command
compatibility
MSR800 Yes
MSR 900
No
MSR900-E Yes
MSR 930
Yes
MSR 20-1X
No
MSR 20
No