Here are steps to set port to trunk mode:
1. After connected to switch with console
2. Enter configuration mode
Switch> enable
Switch# Configure terminal
3. Clear the port to default
Switch(config)# default interface gigabitEthernet 1/0/24
4. Set the port to trunk
Switch(config)# interface gigabitEthernet 1/0/24
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk native vlan 1
Switch(config-if)# exit
5. Save settings
Switch# copy running-config startup-config