VLAN Commands 459User Guidelines• There are no user guidelines for this command.ExampleThe following example configures g8 to discard untagged frames at ingress.switchport forbidden vlanThe switchport forbidden vlan Interface Configuration mode command forbids adding specific VLANsto a port. This may be used to prevent GVRP from automatically making these VLANs active on theselected ports. To revert to allowing the addition of specific VLANs to the port, use the removeparameter for this command.Syntax• switchport forbidden vlan {add vlan-list | remove vlan-list}• add vlan-list — List of VLAN IDs to add to the "forbidden" list. Separate non consecutive VLANIDs with a comma and no spaces. A hyphen designates a range of IDs.• remove vlan-list — List of VLAN IDs to remove from the "forbidden" list. Separate nonconsecutive VLAN IDs with a comma and no spaces. A hyphen designates a range of IDs.Default ConfigurationAll VLANs allowed.Command ModeInterface Configuration (Ethernet, port-channel) mode.User Guidelines• There are no user guidelines for this command.ExampleThe following example forbids adding VLANs number 234 till 256, to g8.Console (config)# interface ethernet g8Console (config-if)# switchport general acceptable-frame-typetagged-onlyConsole (config)# interface ethernet g8Console (config-if)# switchport forbidden vlan add 234-2565400_CLI.book Page 459 Wednesday, December 17, 2008 4:33 PM