26 switchport forbidden vlan, 26 switchport forbidden vlan -63 – PLANET XGS3-24042 User Manual
Page 217

12-63
deletes the current port from the specified VLAN, and the port will be partitioned to VLAN1.
Parameter:
<vlan-id> is the VID for the VLAN to be added the current port, valid range is 1 to 4094.
Command mode:
Port Mode.
Default:
All ports belong to VLAN1 by default.
Usage Guide:
Only ports in Access mode can join specified VLANs, and an Access port can only join one VLAN at
a time.
Example:
Add some Access port to VLAN100.
Switch(config)#interface ethernet 1/0/8
Switch(Config-If-Ethernet1/0/8)#switchport mode access
Switch(Config-If-Ethernet1/0/8)#switchport access vlan 100
Switch(Config-If-Ethernet1/0/8)#exit
12.1.26 switchport forbidden vlan
Command:
switchport forbidden vlan {WORD | all | add WORD | except WORD | remove WORD}
Function:
Configure the forbidden vlan for a port. Note that this command can only be used to configure on
trunk or hybrid ports and the port with GVRP not enabled. No command cancels the forbidden
vlanlist for a port.
Parameter:
WORD: Set vlan List to allowed vlan, and the late configuration will cover the previous configuration;
all: Set all VLANs to allowed vlan;
add WORD: Add vlanList to the existent allowed vlanList;
except WORD: Set all VLANs to allowed vlan except the configured vlanList;
remove WORD: Delete the specific VLAN of vlanList from the existent allow vlanList;
Command mode:
Port Mode.
Default:
Forbidden vlanList is empty
Usage Guide:
Tag the corresponding position for forbidden vlanList and clear allow vlanList flags in ports. A port