
163
•
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
.
Examples
# Associate the hybrid port GigabitEthernet 1/0/1 with protocol 0 (AppleTalk) in VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] protocol-vlan at
[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
# Associate the hybrid Layer 2 aggregate interface
Bridge-aggregation 1
with protocol 0 in VLAN 2,
assuming that
Bridge-aggregation 1
does not have member ports.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] protocol-vlan at
[Sysname-vlan2] quit
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port link-type hybrid
[Sysname-Bridge-Aggregation1] port hybrid vlan 2 untagged
Please wait... Done
[Sysname-Bridge-Aggregation1] port hybrid protocol-vlan vlan 2 0
# Associate the hybrid Layer 2 aggregate interface
Bridge-aggregation 1
with protocol 0 in VLAN 2.
Among the member ports of the aggregation group corresponding to
Bridge-aggregation 1
,
GigabitEthernet 1/0/2 is an access port and GigabitEthernet 1/0/3 is a trunk port.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] protocol-vlan at
[Sysname-vlan2] quit
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port link-type access
Please wait... Done.
Configuring GigabitEthernet1/0/2... Done.
Configuring GigabitEthernet1/0/3........................................... Done.
[Sysname-Bridge-Aggregation1] port link-type hybrid
[Sysname-Bridge-Aggregation1] port hybrid vlan 2 untagged
Please wait... Done.
Configuring GigabitEthernet1/0/2... Done.
Configuring GigabitEthernet1/0/3... Done.
[Sysname-Bridge-Aggregation1] port hybrid protocol-vlan vlan 2 0