How to configure an Eth-Trunk to transparently transmit packets from a VLAN on CE switches

10

Run the port link-type { access | hybrid | trunk } command in the Eth-Trunk interface view to configure the link type of the interface and add the interface to a VLAN. The Eth-Trunk can then transparently transmit packets from the VLAN.
# Configure Eth-Trunk 2 as a trunk interface and configure it to transparently transmit packets from VLAN 2.
system-view
[~HUAWEI] vlan batch 2 //Create VLAN 2.
[*HUAWEI] interface eth-trunk 2 //Create an Eth-Trunk.
[*HUAWEI-Eth-Trunk2] trunkport 10ge 1/0/1
[*HUAWEI-Eth-Trunk2] port link-type trunk
[*HUAWEI-Eth-Trunk2] port trunk allow-pass vlan 2 //Add Eth-Trunk 2 to VLAN 2.
[*HUAWEI-Eth-Trunk2] commit

Other related questions:
How do I configure trunk interface of S series switch
Example for configuring a VLAN for a trunk interface For S series switches (except S1700 switches): A trunk interface can connect other switches and can join multiple VLANs. The interface is added to the PVID VLAN in untagged mode and to other VLANs in tagged mode. [HUAWEI]vlan batch 2 3 //Create a VLAN. [HUAWEI]interface gigabitethernet 0/0/3 [HUAWEI-GigabitEthernet0/0/3]port link-type trunk //Sets the link type of the interface to trunk. [HUAWEI-GigabitEthernet0/0/3]port trunk allow-pass vlan 2 to 10 //Add the interface to VLANs 2 to 10. [HUAWEI-GigabitEthernet0/0/3]port trunk pvid vlan 2 //(Optional) Specify VLAN 2 as the default VLAN (default value: VLAN 1).

How can I disable a trunk interface on a CE switch from receiving packets from a VLAN
You can run the undo port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] } &<1-40> | all } command in the interface view to delete trunk interfaces from a VLAN. In this way, packets from the VLAN will be denied passage through trunk interfaces. # Configure 10GE1/0/1 to reject packets from VLAN 1. system-view [~HUAWEI] interface 10ge 1/0/1 [~HUAWEI-10GE1/0/1] port link-type trunk [*HUAWEI-10GE1/0/1] undo port trunk allow-pass vlan 1 [*HUAWEI-10GE1/0/1] commit

Can a bridge transparently transmit packets carrying VLAN tags
A bridge on an AR router supports the transparently transmission of VLAN packets. However, a VLANIF interface does not support the transparently transmission of VLAN packets. It is not recommended that the transparent transmission of VLAN packets should be performed on sub-interfaces.

Do network bridges transparently transmit packets with VLAN tags
Yes, network bridges transparently transmit packets with virtual local area network (VLAN) tags. VLANIF interfaces, however, do not transparently transmit packets with VLAN tags. Using sub-interfaces to transparently transmit packets with VLAN tags is not recommended.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top