3Com S7902E Command Reference Manual - page 214
1-22
Note that this command only applies to VLANs based on a single MAC address and IP subnet-based
VLANs. If both MAC address-based VLANs and IP subnet-based VLANs are created on a port, MAC
address-to-VLAN entries configured with the
mask
keyword specified are matched preferentially, and
the left VLAN entries are matched as configured by the
vlan precedence
command.
Examples
# Configure to match VLANs based on MAC addresses preferentially on GigabitEthernet 2/0/1.
[Sysname] interface gigabitethernet 2/0/1
[Sysname-GigabitEthernet2/0/1] vlan precedence mac-vlan
Protocol-Based VLAN Configuration Commands
display protocol-vlan interface
Syntax
display protocol-vlan interface
{
interface-type interface-number1
[
to
interface-type
interface-number2
] |
all
}
View
Any view
Default 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.
Description
Use the
display protocol-vlan interface
command to display information about protocol-based
VLANs for the specified port(s).
Examples
# Display protocol-based VLAN information on GigabitEthernet 2/0/1.
[Sysname] display protocol-vlan interface GigabitEthernet 2/0/1
Interface: GigabitEthernet2/0/1
VLAN ID Protocol Index Protocol Type
======================================================
3 0 ipv4
The sample output shows that untagged packets received on GigabitEthernet 2/0/1 will be tagged with
VLAN ID 2 if they carry AppleTalk packets or with VLAN ID 3 if they carry IPv4 packets.