Specifications

Configuring VLANs
March 15, 2011 Page 12 of 20
Configuring Static VLANs
Procedure 1describeshowtocreateandconfigureastaticVLAN.Unspecifiedparametersuse
theirdefaultvalues.
Procedure 1 Static VLAN Configuration
Step Task Command(s)
1. Show existing VLANs. show vlan
2. (Applies to X-Series only.) Define the ports to be
used for switched traffic.
set port mode port-string switched
3. Create VLAN.
Refer to Configurable Range on page 6 for valid
id values. Each vlan-id must be unique. If an
existing vlan-id is entered, the existing VLAN is
modified.
set vlan create vlan-id
4. Optionally, assign a name to the VLAN.
Valid strings are from 1 to 32 characters.
set vlan name vlan-id string
5. Assign switched ports to the VLAN.
This sets the port VLAN ID (PVID). The PVID
determines the VLAN to which all untagged
frames received on the port will be classified.
set port vlan port-string vlan-id
Note: If the VLAN specified has not already been created, the set port vlan command will create
it. It will also add the VLAN to the port’s egress list as untagged, and remove the default VLAN from
the port’s egress list. This automatically changes the existing untagged VLAN egress permission to
match the new PVID value.
6. Configure VLAN egress, which determines
which ports a frame belonging to the VLAN may
be forwarded out on.
Static configuration:
Add the port to the VLAN egress list for the
device.
The default setting, tagged, allows the port to
transmit frames for a particular VLAN.
The untagged setting allows the port to
transmit frames without a VLAN tag. This
setting is usually used to configure a port
connected to an end user device.
The forbidden setting prevents the port from
participating in the specified VLAN and
ensures that any dynamic requests for the
port to join the VLAN will be ignored.
If necessary, remove ports from the VLAN
egress list.
If specified, the forbidden setting will be
cleared from the designated ports and the
ports will be reset as allowed to egress
frames, if so configured by either static or
dynamic means.
set vlan egress vlan-id port-
string forbidden | tagged |
untagged
clear vlan egress vlan-list port-
string [forbidden]