Reference Guide

Table Of Contents
The access parameter automatically adds an interface to default VLAN 1 to transmit untagged trac. Use the
switchport access vlan command to change the access VLAN assignment.
The trunk parameter congures an interface to transmit tagged VLAN trac. You must manually congure
VLAN membership for a trunk port with the switchport trunk allowed vlan command.
Use the no switchport command to remove all L2 conguration when you congure an interface in L3
mode.
Use the no switchport mode command to restore a trunk port on an interface to L2 access mode on
VLAN 1.
Example
OS10(conf-if-eth1/1/7)# switchport mode access
Supported Releases 10.2.0E or later
switchport trunk allowed vlan
Congures the tagged VLAN trac that a L2 trunk interface can carry. An L2 trunk port has no tagged VLAN membership and does not
transmit tagged trac.
Syntax
switchport trunk allowed vlan vlan-id-list
Parameters vlan-id-list — Enter the VLAN numbers of the tagged trac that the L2 trunk port can carry. Comma-
separated and hyphenated VLAN number ranges are supported.
Default None
Command Mode INTERFACE
Usage Information Use the no version of this command to remove the conguration.
Example
OS10(conf-if-ma-1/1/1)# switchport trunk allowed vlan 1000
OS10(conf-if-ma-1/1/1)# no switchport trunk allowed vlan 1000
Supported Releases 10.2.0E or later
Interfaces 113