# Create VLAN 200, specify its descriptive string as Dept2 and add GigabitEthernet 1/0/11 and
GigabitEthernet 1/0/12 to VLAN 200.
[SwitchB] vlan 200
[SwitchB-vlan200] description Dept2
[SwotchB-vlan200] port GigabitEthernet1/0/11 GigabitEthernet 1/0/12
[SwitchB-vlan200] quit
Configure the link between Switch A and Switch B.
Because the link between Switch A and Switch B needs to transmit data of both VLAN 100 and VLAN
200, you can configure the ports at both ends of the link as trunk ports and permit packets of the two
VLANs to pass through the two ports.
# Configure GigabitEthernet 1/0/2 of Switch A.
[SwitchA] interface GigabitEthernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] port link-type trunk
[SwitchA-GigabitEthernet1/0/2] port trunk permit vlan 100
[SwitchA-GigabitEthernet1/0/2] port trunk permit vlan 200
# Configure GigabitEthernet 1/0/10 of Switch B.
[SwitchB] interface GigabitEthernet 1/0/10
[SwitchB-GigabitEthernet1/0/10] port link-type trunk
[SwitchB-GigabitEthernet1/0/10] port trunk permit vlan 100
[SwitchB-GigabitEthernet1/0/10] port trunk permit vlan 200
Configuring a Protocol-Based VLAN
Protocol-Based VLAN Configuration Task List
Complete these tasks to configure protocol-based VLAN:
Configuring a Protocol Template for a Protocol-Based VLAN
Associating a Port with a Protocol-Based VLAN
Displaying Protocol-Based VLAN Configuration
Configuring a Protocol Template for a Protocol-Based VLAN
Configuration prerequisites
Create a VLAN before configuring the VLAN as a protocol-based VLAN.
Configuration procedure
Follow these steps to configure the protocol template for a VLAN:
To do...
Enter system view
Enter VLAN view
Task
Use the command...
system-view
vlan vlan-id
2-7
Remarks
Required
Required
Optional
Remarks
—
—