R3102-R3103-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Command Reference
113
Usage guidelines
This command only applies to VLANs based on a single MAC address and IP subnet-based VLANs.
If both the MAC-based VLAN function and the IP subnet-based VLAN function are created on a port,
MAC address-to-VLAN entries are matched preferentially, and the remaining VLAN entries (VLAN entries
based on a single MAC address and IP subnet-based VLANs) are matched as configured by the vlan
precedence command.
Examples
# Configure matching VLANs based on single MAC addresses preferentially on GigabitEthernet 4/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/1
[Sysname-GigabitEthernet4/0/1] vlan precedence mac-vlan
Protocol-based VLAN configuration commands
display protocol-vlan interface
Use display protocol-vlan interface to display information about protocol-based VLANs for the specified
ports.
Syntax
display protocol-vlan interface { interface-type interface-number1 [ to interface-type interface-number2 ]
| all } [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
2: System level
Parameters
interface-type interface-number1: Specifies an interface by its type and number.
interface-type interface-number1 to interface-type interface-number2: Specifies an interface range.
all: Displays information about protocol-based VLANs on all ports.
|: 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.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display protocol-based VLAN information on GigabitEthernet 4/0/1.
[Sysname] display protocol-vlan interface GigabitEthernet 4/0/1
Interface: GigabitEthernet4/0/1
VLAN ID Protocol Index Protocol Type










