switchport mode
Use this command to set the switching characteristics of the Layer 2 interface.
Command Syntax
switchport mode (access|hybrid|trunk|provider-network|customer-edge
|customer-network|private-vlan)
Parameters
access
Access.
hybrid
Hybrid.
trunk
Trunk.
provider-network
Provider network.
customer-network
Customer network.
Default
By default, switchport mode hybrid is enabled.
Configuring an interface to operate in trunk mode using the CLI command switchport mode trunk will automatically permit VLAN ID 1 on the trunk ports by default.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#switchport mode access
Last modified date: 10/12/2023