12-27-2017 03:55 PM - edited 03-08-2019 01:14 PM
I'm encountering a problem getting a Cisco 2960x to accept a line of programming. I'm setting it up currently:
Switch#config t
switch(config)#hostname 3560_10
3560_10(config)#enable secret zxcvbnm
3560_10(config)#enable password cisco
3560_10(config)#line con 0
3560_10(config-line)#password cisco
3560_10(config-line)#login
3560_10(config-line)#exit
3560_10(config)#line vty 0 4
3560_10(config-line)#password cisco
3560_10(config-line)#login
3560_10(config-line)#exit
3560_10(config)#line vty 5 15
3560_10(config-line)#password cisco
3560_10(config-line)#login
3560_10(config-line)#exit
3560_10(config)#service password-encryption
3560_10(config)#vlan 10
3560_10(config-vlan)#name Surveillus
3560_10(config-vlan)#exit
3560_10(config)#interface vlan 1
3560_10(config-if)#ip address 10.20.85.20 255.255.0.0
3560_10(config-if)#no shutdown
3560_10(config-if)#exit
3560_10(config)#spanning-tree mode pvst
3560_10(config)#interface port-channel10
3560_10(config-if)#switchport mode trunk
3560_10(config-if)#exit
3560_10(config)#interface range gigabitethernet0/1 - 48
^
% Invalid input detected at '^' marker.
3560_10(config-if-range)#switchport access vlan 10
3560_10(config-if-range)#switchport mode access
3560_10(config-if-range)#spanning-tree portfast
3560_10(config-if-range)#exit
3560_10(config)#interface range gigabitethernet0/49 - 52
3560_10(config-if-range)#switchport mode trunk
3560_10(config-if-range)#exit
3560_10(config)#interface range gigabitethernet0/51 - 52
3560_10(config-if-range)#channel-group 10 mode active
3560_10(config-if-range)#end
3560_10#clock set 09:50:00 26 dec 2017
3560_10#wr mem
The line in bold is the one that won't take. The error arrow is pointing to the 0 in case formatting sets it off. Not sure why it won't take the command. Any useful advice would be much appreciated.
Thank you!
12-27-2017 04:54 PM
first thought was whether the switch was in a stack - are all the ports set with the same properties? for range to work all the ports have to have the same base config. might trigger a thought from another. watching.
12-28-2017 07:12 AM
The switch is not in a stack, but the 3750's that are next in the chain are, but I don't think that matters does it?
12-28-2017 05:56 AM
12-28-2017 06:18 AM
It looks like you might be missing some part of the interface identifier, if you do a sho int status it should give you the correct format for your interface numbers in the port column.
For the 2960x switches we have deployed interfaces are listed as X/0/1-48 with X being the switch number in the stack which starts at 1.
If you have just the one switch the correct command should be
int range gigabitEthernet 1/0/1-48
12-28-2017 10:59 AM
Ben is correct.
The command for a single switch would be...
int range gi1/0/1 - 48
Mike
12-28-2017 12:50 PM
12-29-2017 05:23 AM
The 2960X's I have configured show this as the interface
interface GigabitEthernet1/0/5
Also the above was for a 3560 I think, or at least the host name was setup that way.
If he would post the output of show run for one of the interfaces we would be able to help.
Mike
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