R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference
119
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
IP subnet-based VLAN configuration commands
display ip-subnet-vlan interface
Use display ip-subnet-vlan interface to display IP subnet-based VLANs and IP subnet indexes on the
specified ports.
Syntax
display ip-subnet-vlan interface { interface-list | all } [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
2: System level
Parameters
interface-list: Specifies an interface list, in the format of interface-list = { interface-type interface-number1
[ to interface-type interface-number2 ] }&<1-10>, where interface-type interface-number specifies an
interface by its type and number and &<1-10> indicates that you can specify up to 10 ports or port
ranges.
all: Displays IP subnet information about all ports with IP subnet-based VLAN configured.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.