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).

Scroll to top