1. Create VLANs and determine mappings between services and VLANs.
2. Associate protocols with VLANs.
The Switch assigns a VLAN ID to a frame based on the protocol or protocol suite to which
the frame belongs. As long as the protocols of user devices keep unchanged, users do not
need to be added to new VLANs regardless of whether their locations change, whether
network cards of PCs are changed, or whether users locate in the same network segment.
3. Configure a port to allow frames with specified VLAN IDs to pass through.
4. Associate ports with VLANs.
After receiving a frame associated with a specified protocol, the system automatically
assigns the VLAN ID associated with the protocol to the frame.
Data Preparation
To complete the configuration, you need the following data:
l VLANs to which GE1/0/1 of the Switch needs to be added in untagged mode: VLAN 10
and VLAN 20
l VLANs to which GE1/0/2 and GE1/0/3 of the Switch need to be added in tagged mode:
VLAN 10 and VLAN 20
l Protocol associated with each VLAN
– VLAN 10: IPv4
– VLAN 20: IPv6
Procedure
Step 1 Create VLANs.
<Quidway> system-view
[Quidway] sysname Switch
[Switch] vlan batch 10 20
Step 2 Configure protocol-based VLANs.
# Associate IPv4 with VLAN 10.
[Switch] vlan 10
[Switch-vlan10] protocol-vlan ipv4
[Switch-vlan10] quit
# Associate IPv6 with VLAN 20.
[Switch] vlan 20
[Switch-vlan20] protocol-vlan ipv6
[Switch-vlan20] quit
Step 3 Associate interfaces with protocol-based VLANs.
# Associate GE1/0/1 with VLAN 10 and set the 802.1p priority of VLAN 10 to 5.
[Switch] interface gigabitethernet 1/0/1
[Switch-GigabitEthernet1/0/1] protocol-vlan vlan 10 all priority 5
# Associate GE1/0/1 with VLAN 20 and set the 802.1p priority of VLAN 20 to 6.
[Switch-GigabitEthernet1/0/1] protocol-vlan vlan 20 all priority 6
[Switch-GigabitEthernet1/0/1] quit
Step 4 Configure interfaces.
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 3 VLAN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
127