DELL 8132 ユーザーズマニュアル

ページ / 1818
806
VLAN Commands
Command Mode
Interface Configuration (gigabitethernet, port-channel, tengigabitethernet, 
fortygigabitethernet) mode
User Guidelines
This command removes the port from the previous VLAN membership and 
adds it to the specified VLAN. The no form of the command sets the port 
VLAN membership to VLAN 1.
Example
The following example configures interface gi1/0/8 to operate in access mode 
with a VLAN membership of 23. Received untagged packets are processed on 
VLAN 23. Received packets tagged with VLAN 23 are also accepted. Other 
received tagged packets are discarded.
console(config)#interface gigabitethernet 1/0/8
console(config-if-1/0/8)#switchport access vlan 23
switchport general forbidden vlan
Use the switchport general forbidden vlan command in Interface 
Configuration mode to forbid adding specific VLANs to a general mode port. 
To revert to allowing the addition of specific VLANs to the port, use the 
remove parameter of this command.
Syntax
switchport general forbidden vlan {add 
vlan-list | remove vlan-list}
• add 
vlan-list — List of valid VLAN IDs to add to the forbidden list. 
Separate nonconsecutive VLAN IDs with a comma and no spaces. Use a 
hyphen to designate a range of IDs.
remove
 vlan-list — List of valid VLAN IDs to remove from the forbidden 
list. Separate nonconsecutive VLAN IDs with a comma and no spaces. Use 
a hyphen to designate a range of IDs.
Default Configuration
All VLANs allowed.
2CSPC4.X8100-SWUM102.book  Page 806  Friday, March 15, 2013  8:56 AM