官方文档www.junipers.cn
To upgrade your software, there are several simple steps (following this list, we will explain each item in more detail):
1.Download the software package(s) you need from the Juniper Networks Web site.
2.Perform a system backup on the router you wish to upgrade.
3.Copy the software package(s) to the router you wish to upgrade.
4.Add the new software package(s) to the router you wish to upgrade (this will effectively delete the old packages).
5.Reboot the router.
一、准备工作
1、
备份原有JUNOS
2、
准备高版本JUNOS
3、
FTP服务器
4、
升级失败的心理准备
二、升级过程
1、
查看原有版本
config@Olive> show version
2、
备份原有JUNOS
config@Olive# request system snapshot
文档上的说法是:This will back up the /root file system to /altroot and the /config file system to /altconfig on the hard disk.
3、将8.1 JUNOS升级为 8.3 JUNOS
将ftp服务器目录下的jinstall-8.3R2.8-export-signed.tgz用binary模式下载到/var目录后,开始安装
config@Olive> request system software add jinstall-8.3R2.8-export-signed.tgz
将ftp服务器目录下的jinstall-8.3R2.8-export-signed.tgz用binary模式下载到/var目录后,开始安装
config@Olive> request system software add jinstall-8.3R2.8-export-signed.tgz
忽视所有的警告,安装后重启设备,如果升级过程中提示空间不够,可以rm删除/var/tmp目录,/var/sw/pkg目录下旧版本的junos,这个害得我没有一次删掉,折腾了好多次!
config@Olive> request system reboot
Reboot the system ? [yes,no] (no) yes
config@Olive>
重启,重新登录……
--- JUNOS 8.3R2.8 built 2007-07-07 02:29:55 UTC
8.3 JUNOS升级成功!
现在开始升级JWEB,步骤还是和升级JUNOS一样
config@Olive> request system reboot
Reboot the system ? [yes,no] (no) yes
config@Olive>
重启,重新登录……
--- JUNOS 8.3R2.8 built 2007-07-07 02:29:55 UTC
8.3 JUNOS升级成功!
现在开始升级JWEB,步骤还是和升级JUNOS一样
将ftp服务器目录下的jweb-8.2R1.7-signed.tgz用binary模式下载到/var目录后,开始安装
开始安装JWEB升级包
config@Olive> request system software add jweb-8.2R1.7-signed.tgz
config@Olive> request system reboot
Reboot the system ? [yes,no] (no) yes
config@Olive>
show version多了条JUNOS Web Management [8.2R1.7],呵呵,成功了。
开始安装JWEB升级包
config@Olive> request system software add jweb-8.2R1.7-signed.tgz
config@Olive> request system reboot
Reboot the system ? [yes,no] (no) yes
config@Olive>
show version多了条JUNOS Web Management [8.2R1.7],呵呵,成功了。
还要配置如下:
config@Olive# set system services web-management http port 80
config@Olive# set system login user config class super-user authentication plain-text-password
config@Olive# commit
如果设备本来没有配置IP地址的,还需要配置IP地址
config@Olive# set interface fxp0 unit 0 family inet address YY.YY.XX.XX/32
打开IE,就可以通过WEB方式配置、管理设备了。
附:如果在升级不成功或需要中断升级的情况下可以退回到原先的版本
config@Olive# set system services web-management http port 80
config@Olive# set system login user config class super-user authentication plain-text-password
config@Olive# commit
如果设备本来没有配置IP地址的,还需要配置IP地址
config@Olive# set interface fxp0 unit 0 family inet address YY.YY.XX.XX/32
打开IE,就可以通过WEB方式配置、管理设备了。
附:如果在升级不成功或需要中断升级的情况下可以退回到原先的版本
如果因为新版本工作不正常或者是在升级过程中遇到其它问题,需要退回到原先的版本,则你可以重新安装自动保存在/var/sw/pkg 目录下的原先的版本。命令格式与升级操作是一样的,只是文件名不一样。
config@Olive> request system software add /var/sw/pkg/jinstall-8.1R1.5-export-signed.tgz
config@Olive> request system reboot
config@Olive> request system reboot
注意:如果你升级的是Juniper路由器实体,最好的做法是只在紧急情况下使用这些措施。如果在升级过程中出现问题,请立即联系代理工程师或JUNIPER工程师。这些措施列在这里仅供在紧急情况下使用。 不然后果不得了啦

