To configure a Trunk port into a Hybrid port (or vice versa), you need to use the Access port as a
medium. For example, the Trunk port has to be configured as an Access port first and then a Hybrid
port.
Ensure that the VLANs already exist before configuring them to pass through a Hybrid port.
The default VLAN IDs of the Hybrid ports on the local and the peer devices must be the same.
Otherwise, packets cannot be transmitted properly.
Configuring a Trunk-Port-Based VLAN
A Trunk port may belong to multiple VLANs, and you can only perform this configuration in Ethernet port
view.
Follow these steps to configure the Trunk-port-based VLAN:
To do...
Enter system view
Enter Ethernet port view
Configure the port link type as
Trunk
Allow the specified VLANs to pass
through the current Trunk port
Configure the default VLAN for the
Trunk port
To convert a Trunk port into a Hybrid port (or vice versa), you need to use the Access port as a
medium. For example, the Trunk port has to be configured as an Access port first and then a Hybrid
port.
The default VLAN IDs of the Trunk ports on the local and peer devices must be the same.
Otherwise, packets cannot be transmitted properly.
Displaying and Maintaining Port-Based VLAN
To do...
Display the hybrid or trunk ports
Use the command...
system-view
interface interface-type
interface-number
port link-type trunk
port trunk permit vlan
{ vlan-id-list | all }
port trunk pvid vlan vlan-id
Use the command...
display port { hybrid | trunk }
2-5
Remarks
—
—
Required
Required
By default, all Trunk ports only
allow packets of VLAN 1 to pass.
Optional
VLAN 1 is the default by default.
Remarks
Available in any view.