SW65-reserved#archive download-sw /overwrite tftp://10.0.32.201/c2960x-universalk9-tar.152-6.E.tar
Loading c2960x-universalk9-tar.152-6.E.tar from 10.0.32.201 (via Vlan777): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 36003840 bytes]
Loading c2960x-universalk9-tar.152-6.E.tar from 10.0.32.201 (via Vlan777): !!!!!!!!!!!!O!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
examining image...
extracting info (109 bytes)
extracting c2960x-universalk9-mz.152-6.E/info (685 bytes)
extracting info (109 bytes)
Stacking Version Number: 1.119
System Type: 0x00000000
Ios Image File Size: 0x01950200
Total Image File Size: 0x02253A00
Minimum Dram required: 0x08000000
Image Suffix: universalk9-152-6.E
Image Directory: c2960x-universalk9-mz.152-6.E
Image Name: c2960x-universalk9-mz.152-6.E.bin
Image Feature: IP|LAYER_2|SSH|3DES|MIN_DRAM_MEG=128
FRU Module Version: No FRU Version Specified
Old image for switch 1: flash:/c2960x-universalk9-mz.152-2.E7
Old image will be deleted before download.
Deleting `flash:/c2960x-universalk9-mz.152-2.E7' to create required space
Extracting images from archive into flash...
Warning: Unable to allocate memory to display the tar extraction of files,
however upgrade process is still continuing. If you would like to
see the tar extraction output, try upgrading one switch at a time.
Installing (renaming): `flash:update/c2960x-universalk9-mz.152-6.E' ->
`flash:/c2960x-universalk9-mz.152-6.E'
EDS file download on SKU match in progress...
New software image installed in flash:/c2960x-universalk9-mz.152-6.E
Deleting old files from dc profile dir "flash:/dc_profile_dir"
extracting dc profile file from "flash:/c2960x-universalk9-mz.152-6.E/dc_default_profiles.txt" to "flash:/dc_profile_dir/dc_default_profiles.txt"
All software images installed.
SW65-reserved#
Sau đó check lại xem boot file đã ăn chưa rồi reload
SW65-reserved#show boot
BOOT path-list : flash:/c2960x-universalk9-mz.152-6.E/c2960x-universalk9-mz.152-6.E.bin
Config file : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break : yes
Manual Boot : no
Allow Dev Key : yes
HELPER path-list :
Auto upgrade : yes
Auto upgrade path :
NVRAM/Config file
buffer size: 524288
Timeout for Config
Download: 0 seconds
Config Download
via DHCP: disabled (next boot: disabled)
SW65-reserved#
SW65-reserved#reload
System configuration has been modified. Save? [yes/no]: yes
Building configuration...
[OK]
Proceed with reload? [confirm]
OK, Vậy nếu up xong, IOS không lên thì sao. Chúng ta phải revert sang backup IOS bằng file .bin
Thủ tục như sau:
B1: Rút điện của switch
B2: Cắm điện của switch đồng thời giữ nút MODE khoảng 30-40s khi nó hiện
USB Console INIT
thì nhả tay ra
tiếp tục gõ
flash_int
Chúng ta biết dòng các dòng dòng switch sẽ có công ethernet OOB = Out of Band để quản lý. Chúng ta sẽ set IP cho cổng này và copy tftp vào flash và set lại boot của nó là xong 😀
switch: set IP_ADDR 192.168.100.100/255.255.255.0 set DEFAULT_ROUTER 192.168.100.1
Và ping máy tính của chúng ta từ switch (từ máy tính sẽ không ping được switch nhé)
switch: ping 192.168.100.240 ping 192.168.100.240 with 32 bytes of data … Host 192.168.100.240 is alive.
copy tftp://192.168.100.240/file.bin flash:file.bin
gõ set để list ra config đang như thế nào, các bạn sẽ thấy tham số boot
BOOT='XXX'
then
boot
Và nó sẽ boot vào file bin của OS đó.
That’s all 😉
Các bạn không sợ up mà fail các thể loại nữa.