R3102-R3103-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Command Reference

116
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 }
Default
No VLAN is bound to any protocol template.
Views
VLAN view
Default command level
2: System level
Parameters
at: Specifies the AppleTalk based VLAN.
ipv4: Specifies the IPv4 based VLAN.
ipv6: Specifies the IPv6 based VLAN.
ipx: Specifies the IPX based VLAN. The keywords ethernetii, llc, raw, and snap are encapsulation
formats for IPX.
mode: Configures a user-defined protocol template for the VLAN, which could also have the following
encapsulation formats: ethernetii, llc, and snap.
ethernetii etype etype-id: Matches Ethernet II encapsulation format and the corresponding protocol type
values. The etype-id argument is the protocol type ID of inbound packets, in the range of 0x0600 to
0xFFFF (excluding 0x0800, 0x809B, 0x8137, and 0x86DD).