H3C LS-3100-52P-OVS-H3 Operation Manual - page 134
1-11
To do...
Use the command...
Remarks
Enter
Ethernet
interface view
interface interface-type
interface-number
Enter
Ethernet
interface
view or
port group
view
Enter port
group view
port-group manual
port-group-name
Use either command.
In Ethernet interface view, the
subsequent configurations
apply only to the current port;
in port group view, the
subsequent configurations
apply to all ports in the port
group.
Configure the link type of
the port(s) as hybrid
port link-type hybrid
Required
Configure the current
hybrid port(s) to permit
packets of specific
MAC-based VLANs to pass
through
port hybrid vlan vlan-id-list
{ tagged | untagged }
Required
By default, a hybrid port only
permits the packets of VLAN 1
to pass through.
Enable MAC-based VLAN
mac-vlan enable
Required
Disabled by default
Configure VLAN matching
precedence
vlan precedence { mac-vlan |
ip-subnet-vlan }
Optional
By default, VLANs are
preferentially matched based
on MAC addresses.
Protocol-Based VLAN Configuration
Introduction to Protocol-Based VLAN
Protocol-based VLANs are only applicable on hybrid ports.
In this approach, inbound packets are assigned to different VLANs based on their protocol types and
encapsulation formats. The protocols that can be used for VLAN assignment include IP, IPX, and
AppleTalk (AT). The encapsulation formats include Ethernet II, 802.3 raw, 802.2 LLC, and 802.2 SNAP.
A protocol-based VLAN is defined by a protocol template comprised of encapsulation format and
protocol type. A port can be associated with multiple protocol templates. An untagged packet reaching a
port associated with protocol-based VLANs will be processed as follows.
z
If the packet matches a protocol template, the packet will be tagged with the VLAN tag
corresponding to the protocol template.
z
If the packet matches no protocol template, the packet will be tagged with the default VLAN ID of
the port.
The port processes a tagged packet as it processes tagged packets of a port-based VLAN.
z
If the port permits the VLAN ID of the packet to pass through, the port forwards the packet.
z
If the port does not permit the VLAN ID of the packet to pass through, the port drops the packet.
This feature is mainly used to assign packets of the specific service type to a specific VLAN.