R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference
117
Default command level
2: System level
Parameters
vlan vlan-id: Specifies a VLAN ID in the range of 1 to 4094.
protocol-index: Specifies a protocol index. The value can be specified by the users or assigned by the
system automatically when the protocol-based VLAN is created. You can use the display protocol-vlan
vlan all command to display the protocol indexes. The value range for this argument is 0 to 15.
to protocol-end: Specifies the end protocol index. The protocol-end argument must be greater than or
equal to the beginning protocol index.
all: Specifies all protocols bound to vlan-id.
Usage guidelines
The configuration made in Ethernet interface view applies only to the port.
The configuration made in port group view applies to all ports in the port group.
Before you use this command, make the following configurations:
• Create a VLAN and associate it with specified protocols.
• Configure the link type as hybrid.
• Configure the port to allow the protocol-based VLAN to pass through.
Examples
# Associate the hybrid port GigabitEthernet 4/0/1 with protocol 0 (IPv4) in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] protocol-vlan ipv4
[Sysname-vlan2] quit
[Sysname] interface GigabitEthernet 4/0/1
[Sysname-GigabitEthernet4/0/1] port link-type hybrid
[Sysname-GigabitEthernet4/0/1] port hybrid vlan 2 untagged
Please wait... Done
[Sysname-GigabitEthernet4/0/1] port hybrid protocol-vlan vlan 2 0
Related commands
display protocol-vlan interface
protocol-vlan
Use protocol-vlan to configure the VLAN as a protocol based VLAN and to configure the protocol
template for the VLAN.
Use undo protocol-vlan to remove the configured protocol template.
Syntax
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 } }
undo protocol-vlan { protocol-index [ to protocol-end ] | all }