Switchport Mode - Cisco 300 Series Cli Manual

Stackable managed switches
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

56
1061
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
as a protected port.
Example
switchxxxxxx(config)#
switchxxxxxx(config-if)#

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.
Virtual Local Area Network (VLAN) Commands
Interface Configuration command to define a port
interface gi11
switchport community 1
OL-32830-01 Command Line Interface Reference Guide

Advertisement

Table of Contents
loading

Table of Contents