172
Use the undo port hybrid protocol-vlan command to remove the association.
The configuration made in Layer 2 Ethernet interface view applies only to the port.
The configuration made in port group view applies to all ports in the port group.
The configuration made in Layer 2 aggregate interface view applies to the aggregate interface and its
aggregation member ports:
If the system fails to apply the configuration to the aggregate interface, it stops applying the
configuration to aggregation member ports.
If the system fails to apply the configuration to an aggregation member port, it skips the port and
moves to the next member port.
Before you use this command, make the following configurations:
Create a VLAN and associate it with specified protocols.
Configure the link type as hybrid.
Configure the port to allow the protocol-based VLAN to pass through.
Related commands: display protocol-vlan interface.
Syntax
port hybrid protocol-vlan vlan vlan-id { protocol-index [ to protocol-end ] | all }
undo port hybrid protocol-vlan { vlan vlan-id { protocol-index [ to protocol-end ] | all } | all }
View
Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
vlan vlan-id: Specifies a VLAN ID, in the range of 1 to 4094.
protocol-index: Specifies a protocol index. The value can be specified by the users or assigned by the
system automatically when the protocol-based VLAN is created. You can use the display protocol-vlan
vlan all command to display the protocol indexes. The protocol-index parameter ranges from 0 to 15.
to protocol-end: Specifies the end protocol index. The protocol-end parameter must be greater than or
equal to the beginning protocol index. The protocol-end parameter is in the range of 0 to 15.
all: Specifies all protocols bound to vlan-id.
Examples
# Associate the hybrid port GigabitEthernet 1/0/1 with protocol 0 (IPv4) in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] protocol-vlan ipv4
[Sysname-vlan2] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port link-type hybrid
[Sysname-GigabitEthernet1/0/1] port hybrid vlan 2 untagged
Please wait... Done
[Sysname-GigabitEthernet1/0/1] port hybrid protocol-vlan vlan 2 0