Virtual Local Area Network (VLAN) Commands
1061
OL-32830-01 Command Line Interface Reference Guide
56
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
The command is relevant only when the port is defined as a protected port. Use
the
switchport protected-port
Interface Configuration command to define a port
as a protected port.
Example
switchxxxxxx(config)#
interface
gi11
switchxxxxxx(config-if)#
switchport community
1
56.12 switchport mode
Use the switchport mode Interface Configuration mode command to configure the
VLAN membership mode. Use the no form of this command to restore the default
configuration.
Syntax
switchport mode
{access | trunk | general | private-vlan {promiscuous | host} |
customer}
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.
•
private-vlan promiscuous—Private-VLAN promiscuous port.
•
private-vlan host—Private-VLAN host port.
Default Configuration
Trunk mode.
Summary of Contents for 300 Series
Page 2: ......