SSH on Cisco 2950

gizbuggizbug Member Posts: 14 ■□□□□□□□□□
Seems like the switch I bought off ebay doesn't have the latest software, that supports SSH.
There is no Crypto command.

Is it possible, to update the software on the switch somehow so I can get SSH?

Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Wed 23-Mar-05 15:33 by yenanh
Image text-base: 0x80010000, data-base: 0x80562000


ROM: Bootstrap program is C2950 boot loader

System image file is "flash:/c2950-i6q4l2-mz.121-22.EA4.bin"

I noticed on ciscos page for my 2950-24 the latest is 12.1.22-EA14(ED)

Comments

  • OfWolfAndManOfWolfAndMan Member Posts: 923 ■■■■□□□□□□
    Absolutely.

    1. Download an updated IOS from Cisco's website (Just create an account for access)
    2. Set up a TFTP server with an IP that's on your local network that the switch has reachability to
    3. Run the command #copy tftp flash:[filename]. Input remote host, source filename and destination filename

    It'll copy over. To verify, run #dir flash. Make sure you delete the old image afterwards. In certain situations, you may have to delete the old image first. In this situation, make sure the switch doesn't restart otherwise it'll have no boot image (Meaning plug it into an UPS or some kind of redundant power method).
    :study:Reading: Lab Books, Ansible Documentation, Python Cookbook 2018 Goals: More Ansible/Python work for Automation, IPSpace Automation Course [X], Build Jenkins Framework for Network Automation []
  • gizbuggizbug Member Posts: 14 ■□□□□□□□□□
    Thanks,looks like i need to find a way to delete the image first, as I may not have enough flash memory?

    Switch2>show flash


    Directory of flash:/


    2 -rwx 109 Mar 01 1993 00:01:51 +00:00 info
    3 -rwx 269 Jan 01 1970 00:01:48 +00:00 env_vars
    4 -rwx 1589 Mar 01 1993 00:54:37 +00:00 config.text
    5 -rwx 5 Mar 01 1993 00:54:37 +00:00 private-config.text
    7 -rwx 3097872 Mar 01 1993 00:03:22 +00:00 c2950-i6q4l2-mz.121-22.EA4.bin
    8 drwx 4032 Mar 01 1993 00:03:52 +00:00 html
    362 -rwx 109 Mar 01 1993 00:04:23 +00:00 info.ver


    7741440 bytes total (3079168 bytes free)

    DRAM 16 / Flash 8 is needed for the updated IOS
  • OfWolfAndManOfWolfAndMan Member Posts: 923 ■■■■□□□□□□
    Yeah you would. Pretty straightforward to delete. Again, make sure you have reachability before doing this. Easiest way is to put your switch's SVI in the same subnet as your computer. Also, before rebooting, type in (config)#boot system flash:c2950-i6q4l2-mz.121-22.EA4.bin
    and verify afterwards the switch will boot from the image by doing the #show boot command. Usually, you would only do this when there is multiple images though.


    #delete /force /recursive flash:c2950-i6q4l2-mz.121-22.EA4.bin

    Do a #write erase as well before rebooting after upgrade.
    :study:Reading: Lab Books, Ansible Documentation, Python Cookbook 2018 Goals: More Ansible/Python work for Automation, IPSpace Automation Course [X], Build Jenkins Framework for Network Automation []
  • gizbuggizbug Member Posts: 14 ■□□□□□□□□□
    I am wondering why tftp doesn't ask me to erase your flash before copy? The copy times out due to not enough space ?


    CBTSwitch2#copy tftp flash:
    Address or name of remote host []? 192.168.1.120
    Source filename []? c2950-i6k2l2q4-mz.121-22.EA14.bin
    Destination filename [c2950-i6k2l2q4-mz.121-22.EA14.bin]?
    Accessing tftp://192.168.1.120/c2950-i6k2l2q4-mz.121-22.EA14.bin...
    Loading c2950-i6k2l2q4-mz.121-22.EA14.bin from 192.168.1.120 (via Vlan1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!O!!!!!!!!O!!!!!!!O!!!O!!O!!!!O!!O!!O!!!!O!!O!!!O!!!O!!!O!!O!!!O!!!O!!!O!!O!!!O!!!O!!O!!!!O!!O!!!O!!!O!!!O!!O!!!O!!!O!!O!!!O!!O!!O!!!O!!O!!O!!O!!!O!O!!O!OO!OO!OO!OO!OOOO!OO!OO!OO!OOOO
    %Error reading tftp://192.168.1.120/c2950-i6k2l2q4-mz.121-22.EA14.bin (Transfer aborted)
  • OfWolfAndManOfWolfAndMan Member Posts: 923 ■■■■□□□□□□
    In that situation, delete the old IOS first.
    :study:Reading: Lab Books, Ansible Documentation, Python Cookbook 2018 Goals: More Ansible/Python work for Automation, IPSpace Automation Course [X], Build Jenkins Framework for Network Automation []
  • gizbuggizbug Member Posts: 14 ■□□□□□□□□□
    Thanks, worked perfectly and back up and running (and saved my config so didn't have to redo it all). On to enabling SSH now.
  • clarsonclarson Member Posts: 903 ■■■■□□□□□□
    gizbug wrote: »
    I am wondering why tftp doesn't ask me to erase your flash before copy? The copy times out due to not enough space ?

    from your show flash, there are quite a few files in flash. information about the switch, it's configuration, the vlan.dat file goes there (contains your vlan information). You probably don't want to have that information deleted. I guess you could save all the files and then restore them. But, who wants to do that.
Sign In or Register to comment.