当前位置:网站首页>初试为锐捷交换机跨设备型号升级版本(以RG-S2952G-E为例)
初试为锐捷交换机跨设备型号升级版本(以RG-S2952G-E为例)
2022-07-04 22:53:00 【筐瓢大师小吕】
省流,从10.x妄想升级到11.x失败了。
背景
锐捷交换机某些版本在Show Run时查看Vlan会相当麻烦,如下:
先查看版本,如下,为RGOS 10.4
Ruijie#show version
System description : Ruijie Full Gigabit Security & Intelligence Access Switch (S2952G-E) By Ruijie Networks
System start time : 2022-07-01 1:10:55
System uptime : 0:0:25:10
System hardware version : 1.01
System software version : RGOS 10.4(2b11)p1 Release(134566)
System BOOT version : 10.4(2b11) Release(112896)
System CTRL version : 10.4(2b11) Release(112896)
System serial number : 8912EH9C50635
Device information:
Device-1
Hardware version : 1.01
Software version : RGOS 10.4(2b11)p1 Release(134566)
BOOT version : 10.4(2b11) Release(112896)
CTRL version : 10.4(2b11) Release(112896)
Serial Number : 8912EH9C50635在这一版本下,Show Run时Vlan会逐行显示,查看起来非常麻烦:
Ruijie#con
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)#vlan range 2-20
Ruijie(config-vlan-range)#exi
Ruijie(config)#show run
Building configuration...
Current configuration : 2501 bytes
!
version RGOS 10.4(2b11)p1 Release(134566)(Wed Apr 25 21:08:21 CST 2012 -ngcf63)
!
!
!
nfpp
!
!
vlan 1
!
vlan 2
!
vlan 3
!
vlan 4
!
vlan 5
!
vlan 6
!
vlan 7
!
vlan 8
!
vlan 9
!
vlan 10
!
vlan 11
!
vlan 12
!
vlan 13
!
vlan 14
!
vlan 15
!
vlan 16
!
vlan 17
!
vlan 18
!
vlan 19
!
vlan 20
!在官网上找到RGOS 11版本(RG-S2900G-E V3)

都是S2900系列,四舍五入系统应该能用吧
环境准备
笔记本电脑、Console线、跳线、RG-S2952G-E交换机、官方下载的升级包(该压缩包下包含官方工具Ruijie TFTP Server)
用Console线连接交换机Console口与笔记本的Com4口连接;
用网线连接交换机Gigabitethernet 0/1口与笔记本RJ45网口。
为交换机创建管理地址(Vlanif1)
Ruijie#con
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)#int vlan 1
Ruijie(config-if-VLAN 1)#ip add 1.1.1.1 255.255.255.0
Ruijie(config-if-VLAN 1)#exi为主机配置地址
为笔记本以太网卡配置地址:1.1.1.2 /24
在CMD上输入ipconfig/all如下:
以太网适配器 以太网:
连接特定的 DNS 后缀 . . . . . . . :
描述. . . . . . . . . . . . . . . : Realtek PCIe GbE Family Controller
物理地址. . . . . . . . . . . . . : 80-FA-5B-63-49-27
DHCP 已启用 . . . . . . . . . . . : 否
自动配置已启用. . . . . . . . . . : 是
本地链接 IPv6 地址. . . . . . . . : fe80::f15d:afb9:33e5:979c%22(首选)
IPv4 地址 . . . . . . . . . . . . : 1.1.1.2(首选)
子网掩码 . . . . . . . . . . . . : 255.255.255.0
默认网关. . . . . . . . . . . . . :测试连通性
通过ping来测试交换机与主机间的连通性,如下,正常
Ruijie#ping 1.1.1.2
Sending 5, 100-byte ICMP Echoes to 1.1.1.2, timeout is 2 seconds:
< press Ctrl+C to break >
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms连通性没有问题,现在由笔者的笔记本做TFTP Server,交换机从Server上获取到RGOS11.4升级包。
传输升级包(以及排错)
dir命令:显示Flash中的文件列表
Ruijie#dir
Directory of flash:/
Mode Link Size MTime Name
-------- ---- --------- ------------------- ------------------
1 203 2022-06-28 03:23:27 config.text
<DIR> 1 0 1970-01-01 00:00:00 dev/
<DIR> 2 0 2007-01-01 15:13:50 mnt/
1 8 2022-06-28 00:32:13 priority.dat
<DIR> 0 0 1970-01-01 00:00:00 proc/
<DIR> 1 0 2022-07-01 01:10:59 ram/
1 10017120 2012-10-16 06:21:44 rgos.bin
<DIR> 2 0 2022-06-28 03:23:17 tmp/
1 2243136 2012-10-16 06:26:01 web_management_pack.upd
--------------------------------------------------------------
4 Files (Total size 12260467 Bytes), 5 Directories.
Total 132120576 bytes (126MB) in this device, 115417088 bytes (110MB) available.
如上,四个文件,目前有110MB空间可以使用。
copy命令:复制或传输文件
Ruijie#copy tftp://1.1.1.2/rgos.bin flash:S29_RGOS11.4(1)B74P2_install.bin
Accessing tftp://1.1.1.2/rgos.bin...
System is running defragment,please waitting....
Press Ctrl+C to quit
% File transmission failure
Ruijie#copy tftp://1.1.1.2/S29_RGOS11.4(1)B74P2_install.bin flash:rgos.bin
Accessing tftp://1.1.1.2/S29_RGOS11.4(1)B74P2_install.bin...
System is running defragment,please waitting....
Press Ctrl+C to quit
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!File is Too Long! Failed!
% File transmission failure报错“File is too long”,笔者觉得是如下三个问题:
不支持跨设备升级版本;不正确的语法导致升级失败;空间不足
文件太大了吗?如下图,该文件是72M,对于设备而言还是有足够空间的吧

关于这条命令:
Ruijie#copy tftp://1.1.1.2/S29_RGOS11.4(1)B74P2_install.bin flash:rgos.bin笔者参照了两篇文章,一篇是锐捷官方的《锐捷交换机从10.X升级到10.K升级指南》,另一篇是网上博主的博文锐捷(七)设备软件版本升级更新_iCdo_X.的博客-CSDN博客_锐捷交换机升级,前者是写10.x到10.k的升级,后者是由11.4(1)B12P8到11.4(1)B74P1,设备为RG-S2900G-E V3。
第一篇文章中,对于TFTP获取获取升级包的命令是
Ruijie#copy tftp://192.168.1.2/rgos.bin flash:rgos.bin
//文档中第一个rgos.bin为本机文件夹中的文件名(新版本),另一个rgos.bin为原主程序的名称(老版本)在第二篇博文中,作者的命令是:
Ruijie#copy tftp://192.168.1.2/S29_RGOS11.4(1)B74P1_install.bin flash:S29_RGOS11.4(1)B74P1_install.bin
//格式为 copy tftp://ip地址/软件包名 flash:软件包名即前后两个文件名都是要升级的新版本包。
笔者尝试了两种写法,均报错(还是File is Too Long! Failed!)。遂百度大法:
【S86】S86升级10.4(3)软件,提示File is Too Long! Failed 或者The binary file crc was not correct - 锐捷网络

【S86】S86交换机从RGNOS 10.1 升级到RGOS 10.4推荐采用的软件及升级步骤 - 锐捷网络

说白了就是:
RGOS10.4(3)之前的版本中,TFTP协议无法传输超过35MB的文件,建议先升级到S8600_V10.4(3) _R118208_NOEC_CMII.bin,笔者没有找到这个版本,在官方找的10.4(3b18)版本,先试试再说

笔者想起之前学习CentOS基本语法时,cd命令是将前者文件名复制到后者文件夹或替代后者文件,故笔者语法如下:
Ruijie#copy tftp://1.1.1.2/10.4(3b18)_R205507.bin flash:rgos.bin
Accessing tftp://1.1.1.2/10.4(3b18)_R205507.bin...
System is running defragment,please waitting....
Press Ctrl+C to quit
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Transmission finished, file length 12892544 bytes.
Verify the image ...[ok]
CURRENT PRODUCT INFORMATION :
PRODUCT ID: 0x20140060
PRODUCT DESCRIPTION: Ruijie Full Gigabit Security & Intelligence Access Switch (S2952G-E) By Ruijie Networks
ERROR: THE BINARY FILE CANNOT BE USED IN CURRENT PRODUCT !!!恁娘,合着还是型号不支持呗。写这么多感觉白写了我急了
边栏推荐
- 字体设计符号组合多功能微信小程序源码
- 数据库基础知识
- Analysis of the self increasing and self decreasing of C language function parameters
- Redis入门完整教程:键管理
- Redis入门完整教程:Redis Shell
- P2181 diagonal and p1030 [noip2001 popularization group] arrange in order
- 企业如何跨越数字化鸿沟?尽在云原生2.0
- A complete tutorial for getting started with redis: transactions and Lua
- Sword finger offer 68 - I. nearest common ancestor of binary search tree
- PS style JS webpage graffiti board plug-in
猜你喜欢

Editplus-- usage -- shortcut key / configuration / background color / font size

Redis introduction complete tutorial: Collection details

PS style JS webpage graffiti board plug-in

Advanced area a of attack and defense world misc Masters_ good_ idea

【机器学习】手写数字识别

Redis getting started complete tutorial: Key Management

Redis:Redis消息的发布与订阅(了解)

cout/cerr/clog的区别

Advanced area of attack and defense world misc 3-11
How to send a reliable request before closing the page
随机推荐
Install the gold warehouse database of NPC
【剑指offer】1-5题
UML diagram memory skills
头文件重复定义问题解决“C1014错误“
[sword finger offer] questions 1-5
Redis démarrer le tutoriel complet: Pipeline
【ODX Studio編輯PDX】-0.2-如何對比Compare兩個PDX/ODX文件
Redis入门完整教程:哈希说明
[odx Studio Edit pdx] - 0.2 - Comment comparer deux fichiers pdx / odx
Attack and defense world misc master advanced zone 001 normal_ png
剑指 Offer 68 - I. 二叉搜索树的最近公共祖先
OSEK标准ISO_17356汇总介绍
微信小程序显示样式知识点总结
A complete tutorial for getting started with redis: understanding and using APIs
Analysis of environmental encryption technology
[ODX studio edit PDX] - 0.2-how to compare two pdx/odx files of compare
【机器学习】手写数字识别
Qt加法计算器(简单案例)
[machine learning] handwritten digit recognition
A complete tutorial for getting started with redis: redis shell