XG2000 series User's Guide
42/315
All Rights Reserved, Copyright (C) PFU LIMITED 2009
4.7.2 Tag-Based (IEEE802.1Q) VLAN
Tag-based VLAN is a method of configuring VLANs so that the frame forwarding decision is based on a tag in the MAC header
identifying the VLAN membership. 4 bytes of additional data in the header, called a VLAN tag, identifies the VLAN frame
ownership. Using a VLAN tag enables configuring a single physical link that shares multiple VLANs.
The device’s tag-based VLAN function is based on the IEEE 802.1Q standard.
The following figure shows an Ethernet frame format including a VLAN tag as specified by the IEEE 802.1Q standard.
To configure a tag-based VLAN, 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 2 3
(interface port range 1 3)
Switch to interface edit mode for the desired ports to be
configured as tag-based VLAN members.
In this example, the global interface configuration mode
is selected for ports 1 though 3.
xg(config-if)# vlan-member allowed vlan
{ <1-4094> | all }
{ egress-untagging | egress-tagging }
Register VLAN port ownership.
xg(config-if)# ingress-filter tagged-frame
xg(config-if)# ingress-filter untagged-frame
(Optional)
Define a filter for frames received (tagged and untagged
frames) at the ports, if necessary.
xg(config-if)# exit
Exit to global configuration mode.
xg(config)# exit
Exit to administrator EXEC mode.
xg# show vlan
View the port's VLAN membership state.