Cisco IOS // Firmware Upgrade

tested on Catalyst WS-C2950T-24 –> IOS Version 12.1(22)EA12

Seek for new firmware

what model?

show version | include Model number

Model number: WS-C2950T-24

MD5 hashes

8d3250ee253b81b7fe2762e281773fbc  c2950-i6k2l2q4-mz.121-22.EA14.bin
4b36c95cd7813562a2d108b2aeeaf63e  c2950-i6q4l2-mz.121-22.EA12.bin
c57104dce5aa257139d8da004aa62bad  c2950-i6q4l2-mz.121-22.EA14.bin
d41d8cd98f00b204e9800998ecf8427e ?!

Backup current firmware

you need a management ip for that

enable
configure terminal
interface vlan1
no shutdown
ip address 10.7.7.203 255.255.255.0
ip route-cache
end

check your current firmware version

show version | include Version
show version | include flash:

IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA12, RELEASE SOFTWARE (fc1)
System image file is "flash:/c2950-i6q4l2-mz.121-22.EA12.bin"

IOS (tm) C2950 Software (C2950-I6K2L2Q4-M), Version 12.1(22)EA14, RELEASE SOFTWARE (fc1)
System image file is "flash:c2950-i6k2l2q4-mz.121-22.EA14.bin"

allow uploads on your TFTP server with -v -c

vi /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-4 --secure -v -c"

mkdir -p /tftpboot/upload/
chmod 777 /tftpboot/upload/
chmod +t /tftpboot/upload/
systemctl start tftpd-hpa

make sure you do not have a system firewall blocking the interface your are playing on

#here -I not -A
iptables -I INPUT -i enp2s0 -j ACCEPT
iptables -I OUTPUT -o enp2s0 -j ACCEPT
iptables -I INPUT -i xenbr1 -j ACCEPT
iptables -I OUTPUT -o xenbr1 -j ACCEPT

validate from the host system (bypasses any system firewall) or ideally remotely already

cd ~/
ls -lF .vimrc
tftp 10.7.7.201
put .vimrc upload/.vimrc
^D
ls -alF /tftpboot/upload/
rm -f /tftpboot/upload/.vimrc
ping -c1 10.7.7.203

and upload the current firmware from the switch

ping 10.7.7.201
copy flash tftp

Source filename []? c2950-i6q4l2-mz.121-22.EA12.bin
Address or name of remote host []? 10.7.7.201
Destination filename [c2950-i6q4l2-mz.121-22.EA12.bin]? upload/c2950-i6q4l2-mz.121-22.EA12.bin

sort things out and keep them for reference

ls -alF /tftpboot/upload/
chown root:root /tftpboot/upload/c2950-i6q4l2-mz.121-22.EA12.bin
chmod 644 /tftpboot/upload/c2950-i6q4l2-mz.121-22.EA12.bin
md5sum /tftpboot/upload/c2950-i6q4l2-mz.121-22.EA12.bin > /tftpboot/upload/MD5
cat /tftpboot/upload/MD5

Upgrade

cd /tftpboot/
wget http://lab.nethence.com/elge/cisco/c2950-i6k2l2q4-mz.121-22.EA14.bin
wget http://lab.nethence.com/elge/cisco/MD5

make some room

show flash:
delete flash://c2950-i6q4l2-mz.121-22.EA12.bin
show flash:

and proceed with the upgrade

copy tftp flash

Address or name of remote host []? 10.7.7.201
Source filename []? c2950-i6k2l2q4-mz.121-22.EA14.bin
!c2950-i6q4l2-mz.121-22.EA14.bin
Destination filename [c2950-i6k2l2q4-mz.121-22.EA14.bin]? 

verify /md5 c2950-i6k2l2q4-mz.121-22.EA14.bin
!8d3250ee253b81b7fe2762e281773fbc
!verify /md5 c2950-i6q4l2-mz.121-22.EA14.bin

config terminal
boot system flash:c2950-i6k2l2q4-mz.121-22.EA14.bin
!boot system flash:c2950-i6q4l2-mz.121-22.EA14.bin
do show boot
do write erase
do reload
!System configuration has been modified. Save? [yes/no]: no

systemctl stop tftpd-hpa
systemctl disable tftpd-hpa

Troubleshooting

in case some config element got stuck e.g. vlan I had no other choice than to

more nvram:startup-config
more flash:config.text

copy nvram:startup-config tftp

cd /tftpboot/upload/
mv SW-config ../
cd ../
chown root:root SW-config
chmod 644 SW-config
cp SW-config SW-config.dist
vi SW-config

and push it back over to the switch

copy tftp://x.x.x.x/SW-confg nvram:startup-config
reload

Resources

CISCO 2950 и 3550 прошивка https://arny.ru/hardware/cisco-2950-proshivka/

EOL https://www.cisco.com/c/en/us/obsolete/switches/cisco-catalyst-2950-series-switches.html

support & download https://www.cisco.com/c/en/us/support/index.html

SI vs EI https://www.cisco.com/c/en/us/support/docs/switches/catalyst-2950-series-switches/41542-191.html

Cisco Catalyst 2950 Series Switches with Cisco Standard Image and Enhanced Image https://www.cisco.com/c/en/us/products/collateral/switches/catalyst-2950-series-switches/prod_qas09186a008009258e.html

hard reset Resetting the Switch from the Getting Started Manual

Cisco 2950 V.12.1 IOS Upgrade to 15.0 or Higher https://community.cisco.com/t5/switching/cisco-2950-v-12-1-ios-upgrade-to-15-0-or-higher/td-p/2609183

C2950 crypto image https://community.cisco.com/t5/other-network-architecture/c2950-crypto-image/td-p/383213

Cisco 2950 V.12.1 IOS Upgrade to 15.0 or Higher https://community.cisco.com/t5/switching/cisco-2950-v-12-1-ios-upgrade-to-15-0-or-higher/td-p/2609183

Upgrading Software Images on Catalyst 2950 and 2955 Series Switches Using the Command Line Interface https://www.cisco.com/c/en/us/support/docs/switches/catalyst-2950-series-switches/41542-191.html

Old Cisco Switches - Firmware upgrade question. https://community.cisco.com/t5/switching/old-cisco-switches-firmware-upgrade-question/td-p/2415846

Cisco Catalyst 2950 firmware update https://community.spiceworks.com/topic/1444860-cisco-catalyst-2950-firmware-update

Cisco 3900 Series, 2900 Series, and 1900 Series Software Configuration Guide https://www.cisco.com/c/en/us/td/docs/routers/access/1900/software/configuration/guide/Software_Configuration/upgrade.html

Cisco 2950 Software Download Removed? https://www.reddit.com/r/networking/comments/49eaqt/cisco_2950_software_download_removed/

broken link? ea14 release notes http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2950/software/release/12-1_22_ea14/release/notes/OL23783.html

Upgrading IOS https://janadelsbach.com/datacenter.cisco.html

How To: Upgrade IOS On A Cisco 2950 http://tuxlabs.com/?p=256

How to Update/Upgrade Cisco IOS Software https://www.cisco.com/c/en/us/products/ios-nx-os-software/networking_solutions_products_genericcontent0900aecd806ea5be.html

crypto fw image

Upgrading from non Crypto to Crypto Image https://community.cisco.com/t5/switching/upgrading-from-non-crypto-to-crypto-image/td-p/2887141

Image with /without payload encryption https://community.cisco.com/t5/other-network-architecture/image-with-without-payload-encryption/td-p/1766672

supervisor

How to Determine the Type of Supervisor Module That Is Installed in Catalyst 6500/6000 Series Switches https://www.cisco.com/c/en/us/support/docs/switches/catalyst-6000-series-switches/12035-96.html

troubles

Config.text and Startup-config Files in Cisco Switches https://learningnetwork.cisco.com/thread/98141

Edit Cisco startup-config https://ori0nx.wordpress.com/2010/12/31/edit-cisco-startup-config/

erasing a config and vlan.dat file in Catalyst 4507R Switch https://community.cisco.com/t5/switching/erasing-a-config-and-vlan-dat-file-in-catalyst-4507r-switch/td-p/2275969


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun