H3C Technologies H3C S5560 Series Switches User Manual
Page 168
134
•
If the protocol type and encapsulation format in the packet match a protocol template, the port tags
the packet with the VLAN tag specific to the protocol template.
•
If no protocol templates are matched, the port tags the packet with its PVID.
The voice VLAN in automatic mode processes only tagged voice traffic. Do not configure a VLAN as both
a protocol-based VLAN and a voice VLAN.
To configure a protocol-based VLAN:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter VLAN view.
vlan vlan-id
If the specified VLAN does not exist, this
command first creates the VLAN and
enters VLAN view of this VLAN.
3.
Create a protocol template
for the VLAN.
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 } }
By default, no protocol template is
configured for a VLAN.
4.
Exit VLAN view.
quit
N/A
5.
Enter interface view.
•
Enter Layer 2 Ethernet
interface view:
interface interface-type
interface-number
•
Enter Layer 2 aggregate
interface view:
interface
bridge-aggregation
interface-number
•
The configurations made in Layer 2
Ethernet interface view apply only to
the port.
•
The configurations made in Layer 2
aggregate interface view apply to the
aggregate interface and its
aggregation member ports. If the
system fails to apply the configurations
to the aggregate interface, it stops
applying the configurations to
aggregation member ports. If the
system fails to apply the configurations
to an aggregation member port, it
skips the port and moves to the next
member port.
6.
Configure the port link
type as hybrid.
port link-type hybrid
By default, all ports are access ports.
7.
Assign the hybrid port to
the specified
protocol-based VLANs.
port hybrid vlan vlan-id-list
{ tagged | untagged }
By default, a hybrid port is an untagged
member of the VLAN to which the port
belongs when its link type is access.
8.
Associate the hybrid port
with the specified
protocol-based VLAN.
port hybrid protocol-vlan vlan
vlan-id { protocol-index [ to
protocol-end ] | all }
By default, a port is not associated with
any protocol-based VLANs.
- H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module