Command Manual – VLAN
H3C S7500E Series Ethernet Switches
Chapter 1 VLAN Configuration Commands
1-11
[Sysname-Ethernet2/0/1] port hybrid pvid vlan 100
1.2.4 port hybrid vlan
Syntax
port hybrid
vlan
vlan-id-list
{
tagged
|
untagged
}
undo port hybrid
vlan
vlan-id-list
View
Ethernet port view, port group view
Parameters
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 the 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).
Description
Use the
port hybrid vlan
command to add the current Hybrid port to the specified
VLAN(s).
Use the
undo port hybrid vlan
command to remove the current Hybrid port from the
specified VLAN(s).
The Hybrid port can allow multiple VLANs to pass. Repetitive execution of the
port
hybrid
vlan
command will yield a set
VLANs, to which the Hybrid port belongs.
Execution of the above commands in Ethernet port view will apply to the current port
only whereas under port group view will apply to all ports in the port group.
Related commands:
port link-type
.
Examples
# Add the Hybrid port Ethernet 2/0/1 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] interface ethernet 2/0/1
[Sysname-Ethernet2/0/1] port link-type hybrid
[Sysname-Ethernet2/0/1] port hybrid vlan 2 4 50 to 100 tagged
# Add Hybrid ports of port group 2 to VLAN 2. Packets are untagged.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] quit