Users Guide

Table Of Contents
Default VLAN 1
Command Mode INTERFACE
Usage
Information
This command enables L2 switching for untagged traffic and assigns a port interface to default VLAN1.
Use this command to change the assignment of the access VLAN that carries untagged traffic. You must
create the VLAN before you can assign an access interface to it. The no version of this command resets
access VLAN membership on a L2 access or trunk port to VLAN 1.
Example
OS10(conf-if-eth1/1/3)# switchport mode access
OS10(conf-if-eth1/1/3)# switchport access vlan 100
Supported
Releases
10.2.0E or later
switchport mode
Places an interface in L2 Access or Trunk mode.
Syntax
switchport mode {access | trunk}
Parameters
access Enables L2 switching of untagged frames on a single VLAN.
trunk Enables L2 switching of untagged frames on the access VLAN, and of tagged frames on
the VLANs specified with the switchport trunk allowed vlan command.
Default
access
Command Mode INTERFACE
Usage
Information
If you assign an IP address to an interface, you cannot use this command to enable L2 switching
you must first remove the IP address.
The access parameter automatically adds an interface to default VLAN1 to transmit untagged traffic.
Use the switchport access vlan command to change the access VLAN assignment.
The trunk parameter configures an interface to transmit tagged VLAN traffic. You must manually
configure VLAN membership for a trunk port with the switchport trunk allowed vlan
command.
Use the no switchport command to remove all L2 configurations when you configure an L3 mode
interface.
Use the no switchport mode command to restore a trunk port on an interface to L2 Access mode
on VLAN1.
Example
OS10(conf-if-eth1/1/7)# switchport mode access
Supported
Releases
10.2.0E or later
switchport trunk allowed vlan
Configures the tagged VLAN traffic that a L2 trunk interface can carry. An L2 trunk port has no tagged VLAN membership and
does not transmit tagged traffic.
Syntax
switchport trunk allowed vlan vlan-id-list
Parameters vlan-id-list Enter the VLAN numbers of the tagged traffic 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 configuration.
306 Interfaces