Configuration guidelines, Configuring protocol-based vlans, Introduction to protocol-based vlan – H3C Technologies H3C S12500 Series Switches User Manual
Page 30: Configuration procedure
17
2.
On Device A and Device C, you can see that VLAN 100 is associated with the MAC address of
Laptop 1, and VLAN 200 is associated with the MAC address of Laptop 2.
[DeviceA] display mac-vlan all
The following MAC VLAN addresses exist:
S:Static D:Dynamic
MAC ADDR MASK VLAN ID PRIO STATE
--------------------------------------------------------
000d-88f8-4e71 ffff-ffff-ffff 100 0 S
0014-222c-aa69 ffff-ffff-ffff 200 0 S
Total MAC VLAN address count:2
Configuration guidelines
1.
MAC-based VLAN can be configured only on hybrid ports.
2.
MAC-based VLAN is typically configured on the downlink ports of access layer switches, and
hence cannot be configured together with the link aggregation function.
Configuring protocol-based VLANs
Introduction to protocol-based VLAN
Protocol-based VLAN configuration applies to hybrid ports only. When protocol-based VLANs are
configured, 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 type and an encapsulation format comprise a protocol template. You can create multiple
protocol templates for a protocol-based VLAN, and different protocol templates are assigned different
protocol-index values. Therefore, a protocol template can be uniquely identified by a protocol-based
VLAN ID and a protocol index combined. When you use commands to associate protocol templates with
ports, use protocol-based vlan-id + protocol index to specify the protocol templates. An untagged packet
reaching a port associated with protocol templates will be processed as follows.
•
If the protocol type and encapsulation format carried in the packet matches a protocol template, the
packet will be tagged with the VLAN tag corresponding to the protocol template.
•
If the packet matches no protocol templates, the packet will be tagged with the PVID of the port.
The port processes a tagged packet as it processes tagged packets of a port-based VLAN.
•
If the port is assigned to the VLAN corresponding to the VLAN tag carried in the packet, it forwards
the packet.
•
If not, it drops the packet.
This feature is mainly used to assign packets of the specific service type to a specific VLAN.
Configuration procedure
To configure a protocol-based VLAN: