OS10 Enterprise Edition User Guide Release 10.4.1.0

PDF

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 an IP address is assigned 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 VLAN 1 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 configuration when you configure 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

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\