R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference

114
vlan precedence
Use vlan precedence to set the order of VLAN matching.
Use undo vlan precedence to restore the default.
Syntax
vlan precedence { mac-vlan | ip-subnet-vlan }
undo vlan precedence
Default
VLANs are matched based on single MAC addresses preferentially.
Views
Layer 2 Ethernet port view, port group view
Default command level
2: System level
Parameters
mac-vlan: Matches VLANs based on single MAC addresses preferentially.
ip-subnet-vlan: Matches VLANs based on IP subnets preferentially.
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