准备工作
从官网下载最新固件,用3CDeamon设置tftp服务器,IP地址设置为与管理口或数据口同网段,管理口默认IP为192.168.50.50,数据口默认IP为192.168.49.50,下面示例是通过管理口传输固件。
升级步骤
先升级boot-image:copy tftp boot-image
再升级OS: copy tftp image2
重启:reload
重启后检查版本:show version
image2升级完成并经过测试无问题后可升级image1:copy tftp image1
切换image1和image2的命令:boot image {image1|image2}
注意事项
有时升级前的交换机版本特殊如非常低,在 tftp 时可能失败,换其它不同的 tftp 服务器即可
一定要把两文件都上传后,再重起交换机
在从较低的版本如 VER 1.0 升级到一个很高的版本如 VER 7.6时,一定要仔细阅读升级要求说明,不能直接升到最终的版本,要先升级到一个中间的版本如 VER 6.8。
升级过程
Enter login username: admin
Enter login password:
RS G7028>en
Enable privilege granted.
RS G7028#ping 192.168.50.3
Connecting via MGT port.
[host 192.168.50.3, max tries 5, delay 1000 msec, length 0, ping source N/S, ttl 255, tos 0]
192.168.50.3: #1 ok, RTT 1 msec.
192.168.50.3: #2 ok, RTT 0 msec.
192.168.50.3: #3 ok, RTT 1 msec.
192.168.50.3: #4 ok, RTT 0 msec.
192.168.50.3: #5 ok, RTT 1 msec.
Ping finished.
RS G7028#conf t
Enter configuration commands, one per line. End with Ctrl/Z.
RS G7028(config)#copy tftp boot-image
Port type ["DATA"/"MGT"]: MGT
Address or name of remote host: 192.168.50.3
Source file name: G7028-8.4.11.0-Boot.imgs
boot kernel currently contains Software Version 8.4.6
New download will replace boot kernel with file "G7028-8.4.11.0-Boot.imgs"
from SFTP/FTP/TFTP server 192.168.50.3.
Connecting via MGT port.
Confirm download operation (y/n) ? y
Image download started to boot kernel
Download Failed
Error: File not found or access violation.
RS G7028(config)#copy tftp boot-image
Port type ["DATA"/"MGT"]: MGT
Address or name of remote host: 192.168.50.3
Source file name: G7028-8.4.11.0_Boot.imgs
boot kernel currently contains Software Version 8.4.6
New download will replace boot kernel with file "G7028-8.4.11.0_Boot.imgs"
from SFTP/FTP/TFTP server 192.168.50.3.
Connecting via MGT port.
Confirm download operation (y/n) ? y
Image download started to boot kernel
File appears valid
Download in progress
.....................................................................................................................................
Download Complete
Valid image detected.
Extracting images ... Do *NOT* power cycle the switch.
Writing to flash...Please wait
Processing RFS: 100% - done
Processing kernel: 100% - done
Processing DFT: 100% - done
Processing Boot loader: 100% - done
Boot loader updated successfully
Boot Sector now contains Software Version 8.4.11
File processed
RS G7028(config)#copy tftp image2
Port type ["DATA"/"MGT"]: MGT
Address or name of remote host: 192.168.50.3
Source file name: G7028-8.4.11.0_OS.imgs
image2 currently contains Software Version 8.4.6
New download will replace image2 with file "G7028-8.4.11.0_OS.imgs"
from SFTP/FTP/TFTP server 192.168.50.3.
Connecting via MGT port.
WARNING: This operation will overlay the currently booting image.
Confirm download operation (y/n) ? y
Image download started to image2
File appears valid
Download in progress
.........................................................................................................................................................................
Download Complete
Valid image detected.
Extracting images ... Do *NOT* power cycle the switch.
Writing to flash...Please wait
Processing Application: Installing image as image2: 100% - done
Image2 updated successfully
Verification of new image2 in FLASH successful.
image2 now contains Software Version 8.4.11
RS G7028(config)#reload
WARNING: The running-config is different to startup-config.
Confirm operation without saving running-config to startup-config (y/n) ? y
Reset will use software "image2" and the factory default config block.
>> Note that this will RESTART the Spanning Tree,
>> which will likely cause an interruption in network service.
Confirm reload (y/n) ? y
Generating the dump support file
Resetting at 09:03:32 Mon Oct 1, 2018...
**** System Reset from boot iscli ****
Disable the Mgmt Port ...
Disable the Transceivers ...
Unmount the File System ...
Unmounting filesystem
Wait for umount to finish.Done
Waiting for I2C Transactions to Finish ...
▒
U-Boot 2014.01 (May 07 2018 - 15:09:10)
CPU: P1010, Version: 2.0, (0x80f10020)
Core: e500, Version: 5.2, (0x80212152)
Clock Configuration:
CPU0:800 MHz,
CCB:400 MHz,
DDR:400 MHz (800 MT/s data rate) (Asynchronous), IFC:100 MHz
L1: D-cache 32 KiB enabled
I-cache 32 KiB enabled
Board: Rack Switch G7028, CPLD: V5, PCBA: V2
I2C: ready
DRAM: 512 MiB (DDR3, 16-bit, CL=7, ECC off)
Press shift-B for boot menu or shift-R for recovery mode: .....
Booting production mode
Flash: 32 MiB
L2: 256 KiB enabled
NAND: 256 MiB
no link, regs @ 0xffe0a000
PCIe1: Bus 00 - 00
02:00.0 - 14e4:b321 - Network controller
PCIe2: Bus 01 - 02
In: serial
Out: serial
Err: serial
Net: eTSEC1, eTSEC2 [PRIME]
Updating boot environment MAC address
Booting OS
starting version 3.1.5
Mon Oct 1 09:03:58 UTC 2018
Booting image '2'
Image signature verified.
Unpacking image: 100%
Running install script
Installing system libraries
Initializing Production Mode .....
Early Initialization Done. (3 secs)
256MB w/2048-128KB sectors
PCI unit 0: Dev 0xb321, Rev 0x12, Chip BCM56321_B1, Driver BCM56334_B0
Rebooted because of reset from console.
Oct 1 09:04:18 0.0.0.0 CRIT system: Redundant Power Supply not Installed
Oct 1 09:04:56 192.168.49.50 INFO mgmt: Telnet is disabled
Oct 1 09:04:56 192.168.49.50 INFO mgmt: HTTP is disabled
Oct 1 09:04:56 192.168.49.50 INFO mgmt: FTP is disabled
Oct 1 09:04:56 192.168.49.50 INFO mgmt: SNMP v1v2 and v3 are disabled
Booting complete 09:04:56 Mon Oct 1, 2018:
Version 8.4.11 from FLASH image2, factory default configuration.
Lenovo RackSwitch G7028.
Enter password:
Enter password:
Oct 1 09:04:56 192.168.49.50 INFO system: booted version 8.4.11 from FLASH image2, factory default configuration
Oct 1 09:04:56 192.168.49.50 INFO system: Assigned default IP 192.168.49.50 to data interface
Oct 1 09:04:56 192.168.49.50 INFO system: Assigned default IP 192.168.50.50 to mgmt interface
Oct 1 09:04:56 192.168.49.50 NOTICE mgmt: Booting up with compatibility mode.
Oct 1 09:04:56 192.168.49.50 NOTICE system: Switch is in Legacy Mode. Enable Secure Mode policy for pre-defined security configuration, if required
Oct 1 09:04:57 192.168.49.50 NOTICE system: SR_SFP+ 850nm inserted at port XGE1 is Approved.
Oct 1 09:04:57 192.168.49.50 NOTICE system: SR_SFP+ 850nm inserted at port XGE3 is Approved.
Oct 1 09:04:57 192.168.49.50 NOTICE system: SR_SFP+ 850nm inserted at port XGE4 is Approved.
Oct 1 09:04:59 192.168.49.50 NOTICE link: link up on port XGE1
Oct 1 09:04:59 192.168.49.50 ALERT stg: STG 1, topology change detected
Oct 1 09:04:59 192.168.49.50 INFO SLP: URL service:io-device.Lenovo:management-module://192.168.49.50 registered locally
Oct 1 09:04:59 192.168.49.50 INFO SLP: URL service:io-device.Lenovo:management-module://192.168.50.50 registered locally
Oct 1 09:04:59 192.168.49.50 ALERT link: link up on management port MGMT
Oct 1 09:04:59 192.168.49.50 NOTICE lldp: LLDP neighbor discovered (Chassis = 88 ae 1d d2 79 84, local port = MGMT)
Oct 1 09:05:00 192.168.49.50 NOTICE link: link up on port XGE4
Oct 1 09:05:29 192.168.49.50 NOTICE lldp: LLDP neighbor discovered (Chassis = a4 8c db b6 37 00, local port = XGE1)
Oct 1 09:05:29 192.168.49.50 ALERT stg: STG 1, topology change detected
Oct 1 09:05:30 192.168.49.50 NOTICE lldp: LLDP neighbor discovered (Chassis = a4 8c db b6 37 00, local port = XGE4)
Enter password:
WARNING: You are using the default password, please change it as soon as possible to keep system secure.
RS G7028>
Oct 1 09:05:44 192.168.49.50 WARNING mgmt: You are using the default password, please change it as soon as possible to keep system secure.
RS G7028>en
Enable privilege granted.
RS G7028#show run
Current configuration:
!
version "8.4.11"
switch-type "Lenovo RackSwitch G7028"
iscli-new
!
!
!
!
!
!
!
!
!
!
!interface ip 1
! addr <default>
! enable
!
!interface ip 128
! addr <default>
! enable
!
!
!
!
!
end