The port hybrid untagged vlan command adds a Hybrid interface to specified VLANs. Frames of the VLANs can pass through the Hybrid interface in untagged mode.
The undo port hybrid vlan command removes a Hybrid interface from specified VLANs.
port hybrid untagged vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }
undo port hybrid vlan [ untagged ] { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }
| Parameter | Description | Value |
|---|---|---|
| vlan-id1 [ to vlan-id2 ] | Specifies the range of VLANs to which Hybrid interfaces will be added.
In one port hybrid untagged vlan command, a maximum of 10 VLAN ranges can be set using to. |
The value is an integer ranging from 1 to 4094. |
| all | Specifies all the VLANs to which the hybrid ports belong. |
- |
Usage Scenario
A hybrid interface can connect to either a user host or a switch. When a Hybrid interface is connected to a user host, it must be added to VLANs in untagged mode so that it sends untagged frames. The port hybrid untagged vlan command adds an interface to a VLAN in untagged mode. The interface can then send untagged frames.
Precautions
The interfaces to be added to VLANs must be Layer 2 interfaces. If they are Layer 3 interfaces, use the portswitch command to convert the Layer 3 interfaces to Layer 2 interfaces.
If the port hybrid untagged vlan command is run in the same interface view multiple times, the interface is added to all specified VLANs.
# Add the hybrid port GE 1/0/1 into VLAN2, VLAN4, VLAN50 to VLAN100, and the packets of these VLANs are untagged.
<sysname> system-view
[sysname] interface GigabitEthernet0/0/1
[sysname-GigabitEthernet0/0/1] portswitch
[sysname-GigabitEthernet0/0/1] port link-type hybrid
[sysname-GigabitEthernet0/0/1] port hybrid untagged vlan 2 4 50 to 100