The port trunk allow-pass vlan command adds a trunk or a hybrid interface to a VLAN.
The undo port trunk allow-pass vlan command deletes a trunk or a hybrid interface from a VLAN.
By default, a trunk or hybrid interface is not added to a VLAN.
Usage Scenario
A trunk interface can be added to multiple VLANs and is generally used to connect network devices. If frames with one or more VLAN tags need to pass through a trunk interface, run the port trunk allow-pass command to add the trunk interface to the VLAN(s). In this manner, the trunk interface forwards these frames without removing the VLAN tags.
Prerequisites
An interface has been configured as a trunk or a hybrid interface using the port link-type command.
Precautions
The trunk interface to be added to VLANs must be a Layer 2 interface. If the interface is a Layer 3 interface, run the portswitch command to change the interface to a Layer 2 interface.
If you run the port trunk allow-pass command more than once on the same interface, all the configured VLANs take effect on the interface. Running the undo port trunk allow-pass vlan command on an interface deletes the MAC address entries of the interface.<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1 [*HUAWEI-GigabitEthernet0/1/1] portswitch [*HUAWEI-GigabitEthernet0/1/1] port link-type trunk [*HUAWEI-GigabitEthernet0/1/1] port trunk allow-pass vlan 2 to 10 100 200