
XG2000 series User's Guide
43/315
All Rights Reserved, Copyright (C) PFU LIMITED 2009
4.7.3 Multiple VLAN
With the user-defined VLAN tag protocol identifier, the IEEE 802.1Q standard tag can be replaced with a user-defined VPID,
allowing for encapsulation of multiple tags for multiple-tagged VLANs. The standard tag identifier or TPID is 0x8100 as defined
in IEEE 802.1Q.
For the frame format, refer to TPID (Tag Protocol Identifier) in "
Tag VLAN Frame Format
".
Using multiple VLAN (also known as double tagging or Q-in-Q) allows a service provider to transparently forward customers'
VLAN traffic even if the service provider assigns customer traffic to different VLANs.
To configure multiple VLAN using a user-defined VLAN tag protocol identifier, carry out the following procedures in the
administrator EXEC mode.
Command
Task
xg# configure terminal
Switch to global configuration mode.
xg(config)# vlan <1-4094> [ description
VLAN_DESCRIPTION ]
Create a VLAN to use.
xg(config)# vlan-statistics collection <1-4094>
[ <1-4094>
]
(Optional)
Configure a VLAN that collects statistics.
xg(config)# interface port 1
Switch to interface edit mode to designate a port for
multiple VLAN configuration.
In this example, the global interface configuration mode
is selected for port 1.
xg(config-if)# user-vlan-protocol-id <0x05DD ~
0xFFFF>
Set the user-defined VLAN tag protocol identifier.
xg(config-if)# vlan-member allowed vlan
{ <1-4094> | all }
{ egress-untagging | egress-tagging }
Register the port to the VLAN.
Specify "egress-tagging" for tagged output at the port.
Specify "egress-untagging" for the port untagged output
at the port.
xg(config-if)# ingress-filter tagged-frame
xg(config-if)# ingress-filter untagged-frame
(Optional)
Define a filter for frames received (tagged and
untagged) for the port, if necessary.
xg(config-if)# exit
Exit to global configuration mode.
xg(config)# exit
Exit to administrator EXEC mode.
xg# show interface
xg# show vlan
Verify the port state and VLAN membership state for
each port.