XG700 User's Guide
42/266
All Rights Reserved, Copyright (C) PFU LIMITED 2005-2006
4.7.2 Tag-Based (IEEE802.1Q) VLAN
Tag-based VLAN is a method to configure VLANs so that the frame forwarding decision is based on the extra tag in the MAC
header which identifies the VLAN membership. It adds 4 bytes of information called a VLAN tag to a frame, and identifies the
VLAN to which the frame belongs. Using VLAN tag enables a configuration that allows a single physical link to be shared by
multiple VLANs.
XG700'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 that is specified by the IEEE 802.1Q.
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> [ name VLAN_NAME ]
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 port for which you
want to configure the tag-based VLAN.
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 a VLAN to which the port belongs.
xg(config-if)# ingress-filter tagged-frame
xg(config-if)# ingress-filter untagged-frame
(Optional)
Define a filter on frames received (tagged and untagged
frames) for the port, 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.