Protocol-Based VLAN Configuration 93
The port processes a tagged packet (that is, a packet carrying a VLAN tag) in the
same way as it processes packets of a port-based VLAN.
■ If the port is configured to permit the VLAN identified by this VLAN tag, the
port forwards the packet.
■ If the port is configured to deny the VLAN identified by this VLAN tag, the port
discards the packet.
This feature is mainly used to bind the service type with VLAN for ease of
management and maintenance.
Configuring a
Protocol-Based VLAN
Follow these steps to configure a protocol-based VLAN:
c
CAUTION:
■ At present, the AppleTalk-based protocol template cannot be associated with a
port on an Switch 4800G.
■ Do not configure both the dsap-id and ssap-id arguments in the
protocol-vlan command as 0xe0 or 0xff when configuring the user-defined
To do… Use the command… Remarks
Enter system view system-view -
Enter VLAN view vlan vlan-id Required
If the specified VLAN does not
exist, this command creates
the VLAN and then enters its
view.
Configure the
protocol-based VLAN and
specify the protocol template
protocol-vlan
[ protocol-index ] { at | ipv4 |
ipv6 | ipx { ethernetii | llc |
raw | snap } | mode
{ ethernetii etype etype-id |
llc { dsap dsap-id [ ssap
ssap-id ] | ssap ssap-id } | snap
etype etype-id }}
Required
Exit the VLAN view quit Required
Enter
Ethernet
port view
or port
group
view
Enter Ethernet
port view
interface interface-type
interface-number
Use either command
In Ethernet port view, the
subsequent configurations
only apply to the current port;
in port group view, the
subsequent configurations
apply to all ports in the port
group
Enter port group
view
port-group { manual
port-group-name |
aggregation agg-id }
Configure the port link type
as Hybrid
port link-type hybrid Required
Allow the packets of
protocol-based VLANs to
pass through the current
Hybrid port in untagged way
(with the tags of the packets
stripped)
port hybrid vlan vlan-id-list
untagged
Required
Configure the association
between the Hybrid port and
the protocol-based VLAN
port hybrid protocol-vlan
vlan vlan-id { protocol-index
[ to protocol-end ] | all }
Required