mac

159
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: Port quits the corresponding VLAN and the corresponding registered machine
of GVRP to enter forbidden mode.
Switch(config-if-ethernet1/1)#switchport forbidden vlan all
4.1.30 switchport hybrid allowed vlan
Command: switchport hybrid allowed vlan {WORD | all | add WORD | except WORD
| remove WORD} {tag | untag}
no switchport hybrid allowed vlan
Function: Set hybrid port which allow the VLAN to pass with tag or untag method; the no
switchport hybrid allowed vlan‖ command restores the default setting.
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;
tag: Join the specific VLAN with tag mode;
untag: Join the specific VLAN with untag mode.
Command mode: Port Mode.
Default: Deny all VLAN traffic to pass.