EasyManuals Logo
Home>Cisco>Switch>300 Series

Cisco 300 Series User Manual

Cisco 300 Series
1117 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1062 background imageLoading...
Page #1062 background image
Virtual Local Area Network (VLAN) Commands
OL-32830-01 Command Line Interface Reference Guide 1062
56
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
Trunk and general mode ports can be changed to access mode only if all VLANs
(except for an untagged PVID are first removed
If the port mode is changed to access and the access VLAN does not exist, then
the port does not belong to any VLAN.
Examples
Example 1 - The following example configures gi11 as an access port (untagged
layer 2) VLAN port.
switchxxxxxx(config)#
interface
gi1
1
switchxxxxxx(config-if)#
switchport mode access
switchxxxxxx(config-if)#
switchport access vlan
2
Example 2 - The following example puts the port gi12 into private-vlan host mode.
switchxxxxxx(config)#
interface
gi1
2
switchxxxxxx(config-if)#
switchport mode private-vlan host
56.13 switchport access vlan
An interface in access mode can belong to only one VLAN. The switchport access
vlan Interface Configuration command reassigns an interface to a different VLAN
than it currently belongs to.
Use the no form of this command to restore the default configuration.
Syntax
switchport access vlan
vlan-id
no switchport access vlan
Parameters
•
vlan-id
—Specifies the VLAN ID to which the port is configured.

Table of Contents

Other manuals for Cisco 300 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco 300 Series and is the answer not in the manual?

Cisco 300 Series Specifications

General IconGeneral
BrandCisco
Model300 Series
CategorySwitch
LanguageEnglish

Related product manuals