Example
port hybrid vlan
Syntax
View
Parameter
Description
Related command:
Example
# Configure the default VLAN ID for the Hybrid port Ethernet 1/0 to be 100.
<Sysname> system-view
[Sysname] vlan 100
[Sysname-vlan100] quit
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] port link-type hybrid
[Sysname-Ethernet1/0] port hybrid pvid vlan 100
port hybrid vlan vlan-id-list { tagged | untagged }
undo port hybrid vlan vlan-id-list
Ethernet interface view, port group view
vlan-id-list: The range of VLANs that the Hybrid ports will be added to, vlan-id-list
= [ vlan-id1 [ to vlan-id2 ] ]&<1-10>, where vlan-id ranges from 1 to 4,094 and
&<1-10> indicates that you can specify up to 10 times.
tagged: Specifies to tag the packets of the specified VLAN (s).
untagged: Specifies not to tag the specified VLAN(s).
Use the
port hybrid vlan
specified VLAN(s).
Use the
undo port hybrid vlan
from the specified VLAN(s).
A hybrid port can belong to multiple VLANs and thus can allow packets of multiple
VLANs to pass. Repetitive execution of the port hybrid vlan vlan-id-list { tagged |
untagged } command will yield a set VLANs, to which the Hybrid port belongs.
Configured in Ethernet interface view, the setting is effective on the current port
only; configured in port group view, the setting is effective on all ports in the port
group.
Refer to "Link Aggregation Configuration Commands" on page 473 for
information about port groups.
port link-type.
# Add the Hybrid port Ethernet 1/0 to VLAN 2, VLAN 4, and the range of VLANs
from VLAN 50 to VLAN 100. Tag all packets of these VLANs.
<Sysname> system-view
[Sysname] vlan all
Please wait... Done.
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] port link-type hybrid
[Sysname-Ethernet1/0] port hybrid vlan 2 4 50 to 100 tagged
command to add the current Hybrid port to the
command to remove the current Hybrid port
641