VLAN Commands
switchport mode trunk uplink
switchport mode trunk uplink
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
Parameters
•
access—Specifies an untagged Layer 2 VLAN port.
•
trunk—Specifies a trunking Layer 2 VLAN port.
•
general—Specifies a fully 802.1q-supported VLAN port.
•
dot1q-tunnel—Specifies a 802.1q tunnel port.
Default Configuration
Trunk mode
Command Mode
Interface Configuration (Ethernet, port channel) mode
User Guidelines
•
When the port mode is changed, it receives the configuration
corresponding to the mode.
•
If the port mode is changed to access mode and the access VLAN does not
exist, then the port does not belong to any VLAN.
•
Trunk and general ports can be changed to access mode only if all VLANs
(except for an untagged PVID) are first removed.
Example
The following example configures gi 1 as an access port and assigns it to VLAN 2:
switchxxxxxx(config)# interface gi1
switchxxxxxx(config-if)# switchport mode access
switchxxxxxx(config-if)# switchport access vlan 2
To enable a trunk mode port as an uplink port, use the switchport mode trunk
uplink Interface Configuration (Ethernet, port channel) mode command.
Syntax
switchport mode trunk uplink
41
518