Do the following to change the switchport access VLAN type. This configuration works only when the interface is set as switchport.
Ensure that reserved VLANs are not used. Use the no switchport access vlan command to set the default VLAN as the access VLAN.
device# configure terminal
device(config)# interface ethernet 0/1
device(conf-if-eth-0/1)# switchport
device(conf-if-eth-0/1)# switchport access vlan 10
This example sets the mode of a specific port-channel interface to trunk.
device# configure terminal device(config)# interface port-channel 35 device(config-port-channel-35)# switchport mode trunk