switchport mode
This command configures the VLAN Trunking mode.
Syntax
switchport mode access switchport mode trunk switchport mode transparent
Command |
Description |
---|---|
access |
Sets the port to access mode. |
trunk |
Sets the port to trunk mode. |
transparent |
Set the port to transparent mode (Q-in-Q) |
Default
Switchport mode is set to trunk.
Command Mode
Privileged User
Example
This example sets the switchport mode to static access on GigabitEthernet 4/2:
(config-data)# interface gigabitethernet 0/1 (conf-if-GE 0/1)# switchport mode access