port trunk allow-pass vlan 200
#
interface GigabitEthernet1/0/4
port link-type trunk
port trunk allow-pass vlan 300
#
return
3.12.4 Example for Configuring Protocol-based VLAN Assignment
Protocol-based VLAN assignment reduces manual configuration workload and allows users to
easily join a VLAN, transfer from one VLAN to another, and exit from a VLAN.
Networking Requirements
A company has multiple services including the IPTV, VoIP, and Internet access services. Each
service uses a unique protocol. It is required that services of the same type be transmitted in a
VLAN and services of different types be transmitted in separate VLANs to facilitate
management and reduce manual VLAN configuration workload.
As shown in Figure 3-13, the Switch receives packets of multiple services that use different
protocols. Users in VLAN 10 use IPv4 to communicate with remote users, and users in VLAN
20 use IPv6 to communicate with the servers. The Switch needs to assign VLANs to packets of
different services and transmit packets with different VLAN IDs to different servers.
Figure 3-13 Network diagram of protocol-based VLAN assignment
Internet
GE1/0/1
GE1/0/3
GE1/0/2
Switch
RouterA
IPv6
VLAN 20
IPv4
VLAN 10
RouterB
Voice
Network
Configuration Roadmap
The configuration roadmap is as follows:
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.
126