Configuring static VLAN per-port settings
Syntax:
no vlan vid
This command, used with the options listed below, changes the name of an existing static VLAN and the per-port VLAN membership settings.
vlan vid
, or from the context level of the specific VLAN by just entering the command option.
tagged port-list
Configures the indicated port as Tagged for the specified VLAN. The
no
version sets the port to either
No or (if GVRP is enabled) to
Auto.
untagged port-list
Configures the indicated port as Untagged for the specified VLAN. The
no
version sets the port to either
No or (if GVRP is enabled) to
Auto.
forbid port-list
Used in port-based VLANs configures
port-list
as forbidden, to become a member of the specified VLAN, and other actions. Does not operate with option not allowed protocol VLANs. The
no
version sets the port to either
No
or (if GVRP is enabled) to
Auto
.
auto port-list
Available if GVRP is enabled on the switch. Returns the per-port settings for the specified VLAN to
Auto
operation.
Auto
is the default per-port setting for a static VLAN if GVRP is running on the switch.
Changing the VLAN name and set ports to tagged
Suppose that there is a VLAN named VLAN100 with a VID of 100, and all ports are set to
No for this VLAN. To change the VLAN name to
Blue_Team
and set ports A1 - A5 to Tagged, use the following commands:
switch(config)# vlan 100 name Blue_Team switch(config)# vlan 100 tagged a1-a5
Moving the context level
To move to the
vlan 100
context level and execute the same commands:
switch(config)# vlan 100 switch(vlan-100)# name Blue_Team switch(vlan-100)# tagged a1-a5
Changing tagged ports
To change the tagged ports in the above examples to
No
(or
Auto
, if GVRP is enabled), use either of the following commands.
At the global configuration level, use:
switch(config)# no vlan 100 tagged a1-a5
or
At the VLAN 100 context level, use:
switch(vlan-100)# no tagged a1-a5
You cannot use these commands with dynamic VLANs. Attempting to do so results in the message
VLAN already exists
and no change occurs.