Virtual Local Area Network (VLAN) Commands
78-21075-01 Command Line Interface Reference Guide
customer) of a port. Use the no form of this command to restore the default
configuration.
Syntax
{access | trunk | general | customer}
switchport mode
no switchport mode
Parameters
•
access—Specifies an untagged layer 2 VLAN port.
•
trunk—Specifies a trunking layer 2 VLAN port.
•
general—Specifies a full 802-1q-supported VLAN port.
•
customer—Specifies that the port is connected to customer equipment.
Used when the switch is in a provider network.
Default Configuration
Trunk mode.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
•
When the port's mode is changed, it receives the configuration
corresponding to the mode.
•
If the port mode is changed to access and the access VLAN does not exist,
then the port does not belong to any VLAN.
•
Trunk and general mode ports can be changed to access mode only if all
VLANs (except for an untagged PVID are first removed.
Example
The following example configures gi1 as an access port (untagged layer 2) VLAN
port.
switchxxxxxx(config)#
switchxxxxxx(config-if)#
interface gi1
switchport mode access
32
497