Related command:
Example
port trunk pvid vlan
Syntax
View
Parameter
Description
Use the
undo port trunk permit vlan
a specified VLAN, a selection of VLANs, or all VLANs.
The Trunk port can allow multiple VLANs to pass. Repetitive execution of the port
trunk permit vlan command will yield a set of vlan-id-list, to which the Trunk
port belongs.
Configured in Ethernet interface view, the setting is effective on the current port
only; configured in port group view, the setting is effective on all ports in the port
group.
Refer to "Link Aggregation Configuration Commands" on page 473 for
information about port groups.
port link-type.
# Add the Trunk port Ethernet 1/0 to VLAN 2, VLAN 4, and the range of VLANs
from VLAN 50 to VLAN 100.
<Sysname> system-view
[Sysname] vlan all
Please wait... Done.
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] port link-type trunk
[Sysname-Ethernet1/0] port trunk permit vlan 2 4 50 to 100
Please wait........... Done.
port trunk pvid vlan vlan-id
undo port trunk pvid
Ethernet interface view, port group view
vlan-id : VLAN ID, in the range of 1 to 4,094
Use the
port trunk pvid vlan
the Trunk port.
Use the
undo port trunk pvid
By default, the default VLAN on a Trunk port is VLAN 1.
Execution of the undo vlan command on a Trunk port to remove a default VLAN
does not affect the default VLAN configurations. That is to say, a non-existent
VLAN can still be the default VLAN.
Configured in Ethernet interface view, the setting is effective on the current port
only; configured in port group view, the setting is effective on all ports in the port
group.
command to remove the Trunk port from
command to configure the default VLAN ID for
command to restore the default.
643