28 switchport forbidden vlan, 28 switchport forbidden vlan -48 – PLANET WGSW-52040 User Manual
Page 279
![background image](https://www.manualsdir.com/files/865180/content/doc279.png)
17-48
Example:
Add some Access port to VLAN100.
Switch(config)#interface ethernet 1/8
Switch(Config-If-Ethernet1/8)#switchport mode access
Switch(Config-If-Ethernet1/8)#switchport access vlan 100
Switch(Config-If-Ethernet1/8)#exit
17.1.28 switchport forbidden vlan
Command:
switchport forbidden vlan {WORD | all | add WORD | except WORD | remove WORD}
no switchport forbidden vlan
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.
Parameters:
WORD, add the vlanList as forbidden vlan and cover the previous configuration
all, set all VLANs as forbidden vlan
add WORD, add vlanList to the current forbidden vlanList
except WORD, set all VLANs as forbidden vlan except vlanList
remove WORD, remove vlan specified by vlanList from current forbidden 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 leaves these
VLANs if it joins them statically, and it sends message to GVRP module to enable corresponding registered machine
of the port to enter forbidden mode.
Example: