)
Обновление ПО на стеке коммутаторов QSW-4530 с использованием команды copy toall
ВАЖНО!
Мы не рекомендуем обновлять BOOT этим методом, это может привести к полной неработоспособности устройства.Данная статья актуальна для коммутаторов с версией 8.2.3.300 и выше.
Перед установкой при помощи FTP, SFTP или TFTP потребуется создать ip связанность между сервером и стеком.
Для этого создадим VLAN 10 на коммутаторе:
QSW-4530-54TX#config QSW-4530-54TX(config)#vlan 10 QSW-4530-54TX(config-vlan10)#exit QSW-4530-54TX(config)#interface vlan 10 QSW-4530-54TX(config-if-vlan10)#ip address 10.1.2.2 255.255.255.0 QSW-4530-54TX(config-if-vlan10)#exit QSW-4530-54TX(config)#interface ethernet 1/0/15 QSW-4530-54TX(config-if-ethernet1/0/15)#switchport access vlan 10
Настроим IP для ПК:

Проверим связанность командой ping из консоли коммутатора или сервера:
QSW-4530-54TX#ping 10.1.2.3 Type ^c to abort. Sending 5 56-byte ICMP Echos to 10.1.2.3, timeout is 2 seconds. !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/5/5 ms
1. Установка с помощью TFTP
В данном примере будем использовать ПК в качестве TFTP сервера, для этого предварительно установим утилиту Tftpd64:
Тут потребуется выставить нужный ip и выбрать папку с файлом прошивки.
Далее используем команду на коммутаторе:
copy toall tftp://<serverIP>/<NameFileOnServer>.img NameOnSwitch.img
QSW-4530-54TX#copy toall tftp://10.1.2.3/QSW-4530-X_QTECH_LLC_8.2.3.300_nos.img 8.2.3.300_nos.img---Search file result-------
01: file not found
02: file not found
03: file not found
----------------------------
Begin to receive file, please wait
TFTP server accept 1468 bytes segsize
Get Img file size success, Img file size is:19778476(bytes).
100%
---File transfer complete--- 97 sec
01: file not found 19778476(bytes)
02: file not found 19778476(bytes)
03: file not found 19778476(bytes)
----------------------------
Wait other units...
---Summary------------------ 171 sec
01: file not found 19778476(bytes) DONE
02: file not found 19778476(bytes) DONE
03: file not found 19778476(bytes) DONE
----------------------------
Begin to write local file, please wait...
Write ok.
2. Установка с помощью FTP
copy toall ftp://<username>:<password>@<serverIP>/<FileNameOnServer> nos.img
QSW-4530-54TX#copy toall ftp://admin:admin@ 10.1.2.3/QSW-4530-X_QTECH_LLC_8.2.3.300_nos.img 8.2.3.300_nos.img---Search file result-------
01: file not found
02: file not found
03: file not found
----------------------------
100%
---File transfer complete--- 80 sec
01: file not found 19784893(bytes)
02: file not found 19784893(bytes)
03: file not found 19784893(bytes)
----------------------------
Wait other units...
---Summary------------------ 154 sec
01: file not found 19784893(bytes) DONE
02: file not found 19784893(bytes) DONE
03: file not found 19784893(bytes) DONE
----------------------------
220 (vsFTPd 3.0.5)
331 Please specify the password.
230 Login successful.
200 Switching to Binary mode.
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for LLC_8.2.3.285_nos.img (19784893 bytes).
Get Img file size success, Img file size is:19784893(bytes).
Recv total 19784893 bytes
226 Transfer complete.
Begin to write local file, please wait...
Write ok.
3. Установка с помощью SFTP
copy toall sftp:// <username>:<password>@<serverIP>/<FileNameOnServer> nos.img
QSW-4530-54TX# copy toall sftp://admin:admin@ 10.1.2.3/QSW-4530-X_QTECH_LLC_8.2.3.300_nos.img 8.2.3.300_nos.imgWe are talking to an OpenSSH client version: 9.6 (90600)
---Search file result-------
01: file not found
02: file not found
03: file not found
----------------------------
SFTP server version 3
100
---File transfer complete--- 166 sec
01: file not found 19784893(bytes)
02: file not found 19784893(bytes)
03: file not found 19784893(bytes)
---------------------------
Writing
Wait other units...
---Summary------------------ 240 sec
01: file not found 19784893(bytes) DONE
02: file not found 19784893(bytes) DONE
03: file not found 19784893(bytes) DONE
----------------------------
4. Установка с помощью USB
copy toall usb0:/<NameFileOnFlashDrive> nos.img
QSW-4530-54TX#copy toall usb0:/QSW-4530-X_QTECH_LLC_8.2.3.300_nos.img 8.2.3.300_nos.img---Search file result-------
01: file not found
02: file not found
03: file not found
----------------------------
Reading file done
100%
---File transfer complete--- 95 sec
01: file not found 19778476(bytes)
02: file not found 19778476(bytes)
03: file not found 19778476(bytes)
----------------------------
Wait other units...
---Summary------------------ 169 sec
01: file not found 19778476(bytes) DONE
02: file not found 19778476(bytes) DONE
03: file not found 19778476(bytes) DONE
----------------------------
Begin to write local file, please wait...
Write ok.
По завершению установки любым из вышеописанных способов, нужно выставить приоритет прошивки, с которой будет выполняться следующая загрузка на всех юнитах:
QSW-4530-54TX-POE#boot img 8.2.3.300_nos.img primaryflash:/8.2.3.300_nos.img will be used as the primary img file on member 1, slot 1 at the next time!
QSW-4530-54TX-POE#boot img slot-2#8.2.3.300_nos.img primary
flash:/8.2.3.300_nos.img will be used as the primary img file on member 2, slot 1 at the next time!
После потребуется выполнить перезагрузку:
QSW-4530-54TX-POE# reload
К списку

