XG700 User's Guide
146/266
All Rights Reserved, Copyright (C) PFU LIMITED 2005-2006
5.11.3 port-vlan-id
Function
The port VLAN system allows you to set a port to explicitly belong to a VLAN and configure the VLAN by grouping each port.
However, when a frame with VLAN tags is received, the VLAN tag information precedes.
This command sets the default port VID (default PVID) of the switch port. Also, the command registers it as the VLAN member
port (without a tag) which specifies the port.
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
vlan <1-4094>
Specifies the default VLAN ID (VID) to which the switch port belongs. The VID can be an integer of 1 to 4094.
Command type
Configuration command
Default
1
Message
% VLAN %1$ not configured. %2$
Explanation
The specified VLAN has not been created.
[[Inserted string]]%1$: VID
[[Inserted string]]%2$: Port number
Solution
Create a VLAN first, then reissue the command.
Note
When this command is issued, the port is registered as a membership of the specified VLAN (having no tag). The frame having
no tag is sent during egressing. To change the rule during egressing to “transfer frames having tags,” issue “vlan-member
allowed vlan <1-4094> egress-tagging”.
Example
Set the default PVID of switch port 2 to 3.
Then, display the VLAN information using the “show” command and make sure that VID 3 has been registered as a
membership of port 2 (it is transferred as a frame having no tag during egressing).
xg(config)# interface port 2
xg(config-if)# port-vlan-id vlan 3
xg(config)# exit
xg# show vlan
Vlan Information 2005/08/22-16:20:15
=========================================================================
Vlan Vlan-name Port-Membership
1 2 3 4 5 6 7 8 9 10 11 12
---- ------------ -- -- -- -- -- -- -- -- -- -- --
1 default U U U U U U U U U U U U
3 VLAN0003 - U - - - - - - - - - -
=========================================================================