Fujitsu XG2000 Switch User Manual


 
XG2000 series User's Guide
175/315
All Rights Reserved, Copyright (C) PFU LIMITED 2009
5.12.5 port-vlan-id
Function
The port-vlan-id command allows assigning a port to explicitly belong to a VLAN and configure the VLAN as a group of ports.
However, when a frame with VLAN tags is received, the VLAN tag information has precedent over the port VID.
This command sets the default port VID (PVID) of the switch port. Also, the command registers it as a VLAN member port
(without a tag).
Use the no form to return to the default value.
Prompt
xg(config-if)# or xg(config-agg)#
Command syntax
port-vlan-id vlan <1-4094>
no port-vlan-id
Parameter
z vlan <1-4094>
Specifies the default port VLAN ID (PVID). The PVID can be an integer of 1 to 4094.
Command type
Configuration command
Default
1
Message
% VLAN %1$ not configured. %2$
Explanation
The specified VLAN was not created.
[[Inserted string]]%1$: VID
[[Inserted string]]%2$: Port number
Solution
Create the VLAN first then reissue the command.
Note
When this command is issued, the port is registered as a member of the specified VLAN (having no tag). The frame having no
tag is sent during egressing. To change the rule during egressing to “transfer tagged frames,” issue “vlan-member allowed vlan
<1-4094> egress-tagging”.
Example
Set the default PVID of switch ports 2 and assign it to “vlan-floor2”, VID=3.
Then, display the VLAN information using the “show vlan” command and make sure that VID 3 was registered with port 2 as a
member (untagged frames during egressing).
xg(config)# interface port 2
xg(config-if)# port-vlan-id vlan 3
xg(config-if)# exit
xg(config)# exit
xg# show vlan
Vlan Information 2007/01/22-16:20:15
==================================================================================
VID Vlan-Description Tag Ports-Membership
---- ------------------- ----- ----------------------------------------------------
1 default UNTAG port 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20
2 vlan-floor1 --- None
3 vlan-floor2 UNTAG port 2
==================================================================================