12-27-2016 04:31 AM - edited 03-08-2019 08:42 AM
When i am making a access port to trunk port in cisco 2960 x-series(24 Port Giga) unable to make the port as trunk port on the switch
When i type switchport mode trunk
i am getting unrecognized command ..
12-27-2016 05:27 AM
Can you provide a console-log where you try to set the interface to trunk? And a show run of the interface that you are trying to configure.
It really should work:
Switch#sh run int Gi1/0/25
Building configuration...
Current configuration : 39 bytes
!
interface GigabitEthernet1/0/25
end
Switch#
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#int Gi1/0/25
Switch(config-if)#
Switch(config-if)#do sh interf Gi1/0/25 switchport | i Administrative Mode
Administrative Mode: dynamic auto
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#switchport mode trunk
Switch(config-if)#
Switch(config-if)#do sh interf Gi1/0/25 switchport | i Administrative Mode
Administrative Mode: trunk
12-27-2016 05:35 AM
Please find the log..
blrcore00#sh run int gi1/0/22
Building configuration...
Current configuration : 141 bytes
!
interface GigabitEthernet1/0/22
description lacp netapp1
switchport access vlan 100
switchport mode access
spanning-tree portfast
end
blrcore00#conf t
Enter configuration commands, one per line. End with CNTL/Z.
blrcore00(config)#int gi1/0/22
blrcore00(config-if)#
blrcore00(config-if)#do sh int
blrcore00(config-if)#do sh interf Gi1/0/25 switchport | i Administrative Mode
^
% Invalid input detected at '^' marker.
blrcore00(config-if)#end
blrcore00#do sh interf Gi1/0/25 switchport | i Administrative Mode
^
% Invalid input detected at '^' marker.
blrcore00#sh interf Gi1/0/25 switchport | i Administrative Mode
Administrative Mode: dynamic auto
blrcore00#
blrcore00#
blrcore00#
blrcore00#int gi1/0/22
^
% Invalid input detected at '^' marker.
blrcore00#int gi1/0/22
blrcore00#int gi1/0/22
^
% Invalid input detected at '^' marker.
blrcore00#conf t
Enter configuration commands, one per line. End with CNTL/Z.
blrcore00(config)#int gi1/0/22
blrcore00(config-if)#
blrcore00(config-if)#swi
blrcore00(config-if)#switchport mo
blrcore00(config-if)#switchport mode trunk
^
% Invalid input detected at '^' marker.
blrcore00(config-if)#
12-29-2016 02:50 AM
Does this port belong to an etherchannel?
12-29-2016 03:04 AM
Please find the below current port config
interface GigabitEthernet1/0/22
description lacp netapp1
switchport access vlan 100
switchport mode access
spanning-tree portfast
12-29-2016 03:21 AM
I'm not aware of any situation that could cause this problem. Is this switch already in production? If not, I would completely erase the device and try it again to make sure that there is no dependency of configuration (although I have no idea what this could be).
Try updating the switch to a different/newer IOS-version. Never heard of a bug like this, but who knows.
If all doesn't help, open a TAC-case with Cisco.
Edit: Is it a general problem on this switch or only on particular ports?
12-29-2016 05:48 AM
In addition to what Karsten said,, before you erase the whole config, I'd try defaulting the interface itself first by issuing the command below.
default interface GigabitEthernet1/0/22
12-28-2016 09:58 AM
Please refer Catalyst 2960 and 2960-S Software Configuration Guide, 12.2(55)SE, I have also posted the link.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide