How do I configure trunk interface of S series switch

26

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

Other related questions:
How to configure the IP address for an Eth-Trunk interface on S series switches
For S series switches (except the S1700), you can configure an IP address for an Eth-Trunk interface as follows: [HUAWEI]interface Eth-Trunk 10 [HUAWEI-Eth-Trunk10]undo portswitch [HUAWEI-Eth-Trunk10]ip address 10.2.2.2 24

How do I configure the link type of an Eth-Trunk interface to Hybrid on S series switches
For S series switches (except the S1700), use the following method to configure the link type of an Eth-Trunk interface to Hybrid: # Configure Eth-Trunk 1 to allow packets from VLAN 10 and VLAN 20 to pass through. [HUAWEI] interface eth-trunk 1 [HUAWEI-Eth-Trunk1] port link-type hybrid [HUAWEI-Eth-Trunk1] port hybrid tagged vlan 10 20 [HUAWEI-Eth-Trunk1] quit

How do I configure link aggregation in LACP mode on S series switches
Configure link aggregation in LACP mode on S series switches (except the S1700) as follows: # Create Eth-Trunk 1 on a switch and configure Eth-Trunk 1 to work in LACP mode. [HUAWEI] interface eth-trunk 1 [HUAWEI-Eth-Trunk1] mode lacp [HUAWEI-Eth-Trunk1] quit

In which views can IPSG be enabled on S series switches
IPSG can be enabled on an S series switch (except the S1700) in an interface or a VLAN view. Interface views include the Ethernet interface view, GE interface view, 40GE interface view, XGE interface view, 100GE interface view, Eth-Trunk interface view, and port group view. Example 1: Enable IPSG in the GE0/0/1 view. [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] ip source check user-bind enable Example 2: Enable IPSG in the VLAN 100 view. [HUAWEI] vlan 100 [HUAWEI-vlan100] ip source check user-bind enable

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