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

117
llc: Matches the llc encapsulation format.
dsap dsap-id: Specifies the destination service access point in the range of 0x00 to 0xFF.
ssap ssap-id: Specifies the source service access point in the range of 0x00 to 0xFF.
snap etype etype-id: Matches SNAP encapsulation format and the corresponding protocol type values.
The etype-id argument is the Ethernet type of inbound packets, in the range of 0x0600 to 0xFFFF
(excluding 0x8137).
protocol-index: Specifies a protocol template index. The value range for this argument is 0 to 15. The
system will automatically assign an index if this parameter is not specified.
to protocol-end: Specifies the end protocol index. The protocol-end argument must be greater than or
equal to the protocol-index argument.
all: Removes all protocols bound to the VLAN.
Usage guidelines
When you use the mode keyword to configure a user-defined protocol template, do not set etype-id in
ethernetii etype etype-id to 0x0800, 0x809B, 0x8137, or 0x86DD. Otherwise, the encapsulation format
of the matching packets will be the same as that of the IPv4, AppleTalk, IPX, and IPv6 packets,
respectively.
Do not configure both the dsap-id and ssap-id arguments in the protocol-vlan command as 0xE0 or 0xFF
when you configure the user-defined template for llc encapsulation. Otherwise, the encapsulation format
of the matching packets will be the same as that of the ipx llc or ipx raw packets, respectively. When
either of the dsap-id and ssap-id arguments is configured, the system assigns 0XAA to the other
argument.
When you use the mode keyword to configure a user-defined protocol template, do not set etype-id in
snap etype etype-id to 0x8137. Otherwise, the template format will be the same as that of the IPX protocol.
You can set etype-id to 0x0800, 0x809B, or 0x86DD, corresponding to IPv4, AppleTalk, and IPv6,
respectively.
Examples
CAUTION:
IP uses ARP for address resolution in Ethernet. To prevent communication failure, confi
g
ure the IP and ARP
templates in the same VLAN and associate them with the same port.
# Configure VLAN 3 as an IPv4 based VLAN.
<Sysname> system-view
[Sysname] vlan 3
[Sysname-vlan3] protocol-vlan ipv4
# Create an ARP protocol template for VLAN 3 (ARP code is 0x0806) to make VLAN 3 transmit ARP
packets.
To use Ethernet encapsulation, use this command:
[Sysname-vlan3] protocol-vlan mode ethernetii etype 0806
To use 802.3 encapsulation, use this command:
[Sysname-vlan3] protocol-vlan mode snap etype 0806
Related commands
display protocol-vlan vlan