How do I configure hybrid interface of S series switch

25

Example for configuring a VLAN for a hybrid interface For S series switches (except S1700 switches):
A hybrid interface can connect to either a user host or a switch.
[HUAWEI]vlan 2 //Create a VLAN.
[HUAWEI]interface gigabitethernet0/0/2
[HUAWEI-GigabitEthernet0/0/2]port link-type hybrid //Set the link type of the interface to hybrid.
[HUAWEI-GigabitEthernet0/0/2]port hybrid untagged vlan 2 //Configure VLAN 2 to send data in untagged mode.
[HUAWEI-GigabitEthernet0/0/2]port hybrid pvid vlan 2 //(Optional) Specify VLAN 2 as the default VLAN (default value: VLAN 1).
[HUAWEI-GigabitEthernet0/0/2]port hybrid tagged vlan 3 //Configure VLAN 3 to send data in tagged mode.

Other related questions:
How do I configure hybrid interface of S series switch
Example for configuring a VLAN for a hybrid interface For S series switches (except S1700 switches): A hybrid interface can connect to either a user host or a switch. [HUAWEI]vlan 2 //Create a VLAN. [HUAWEI]interface gigabitethernet0/0/2 [HUAWEI-GigabitEthernet0/0/2]port link-type hybrid //Set the link type of the interface to hybrid. [HUAWEI-GigabitEthernet0/0/2]port hybrid untagged vlan 2 //Configure VLAN 2 to send data in untagged mode. [HUAWEI-GigabitEthernet0/0/2]port hybrid pvid vlan 2 //(Optional) Specify VLAN 2 as the default VLAN (default value: VLAN 1). [HUAWEI-GigabitEthernet0/0/2]port hybrid tagged vlan 3 //Configure VLAN 3 to send data in tagged mode.

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 do I configure access interface of S series switch
Example for configuring a VLAN for an access interface For S series switches (except S1700 switches): An access interface can connect to a user host. [HUAWEI]vlan 2 //Create a VLAN. [HUAWEI]interface gigabitethernet0/0/1 [HUAWEI-GigabitEthernet0/0/1]port link-type access //Set the link type of the interface to access. [HUAWEI-GigabitEthernet0/0/1]port default vlan 2 //Add the interface to VLAN 2. [HUAWEI-GigabitEthernet0/0/1]quit

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