雅那安

拥有正确的价值观,实现自己的人生价值:所作所为有益于人类社会发展。

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

在拿到设备后,初次使用输入用户名root,回车就直接进入了,然后cli进入>模式;

原来的软件版本是12.1X。。的要升级的文件为junos-srxsme-12.3X48-D101-domestic.tgz
做之前需要把ftp服务器搭好,并把物理机防火墙关掉,我是使用3cd做的;
[edit]
root# set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.238/24

 [edit]

root# set routing-options static route 0.0.0.0/0 next-hop 192.168.1.253

 [edit]

root# commit
commit complete

 [edit]

root# exit
Exiting configuration mode

root> ping 192.168.1.253
PING 192.168.1.253 (192.168.1.253): 56 data bytes
64 bytes from 192.168.1.253: icmp_seq=0 ttl=64 time=2.762 ms
64 bytes from 192.168.1.253: icmp_seq=1 ttl=64 time=2.678 ms
^C
--- 192.168.1.253 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.678/2.720/2.762/0.042 ms

 

root> ftp 192.168.1.253
Connected to 192.168.1.253.
220 3Com 3CDaemon FTP Server Version 2.0
Name (192.168.1.253:root): admin
331 User name ok, need password
Password:
230 User logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Type set to I.
ftp> lcd /var/tmp
Local directory now /cf/var/tmp
ftp> get junos-srxsme-12.3X48-D101-domestic.tgz
local: junos-srxsme-12.3X48-D101-domestic.tgz remote: junos-srxsme-12.3X48-D101-domestic.tgz
200 PORT command successful.
150 File status OK ; about to open data connection
100% |**************************************************| 176 MB 00:00 ETA
226 Closing data connection; File transfer successful.
184670919 bytes received in 73.91 seconds (2.38 MB/s)
ftp> !ls
cleanup-pkgs.log krt_gencfg_filter.txt
eedebug_bin_file pics
gksdchk.log policy_status
gres-tp rtsdb
idp_license_info sec-download
install spu_kmd_init
junos-srxsme-12.3X48-D101-domestic.tgz vi.recover
kmdchk.log vpn_tunnel_orig.id
ftp> !ls -l
total 360884
-rw-r--r-- 1 root wheel 3871 Jul 27 14:35 cleanup-pkgs.log
-rw-r--r-- 1 root wheel 0 Jul 27 14:34 eedebug_bin_file
-rw-r--r-- 1 root wheel 34 Jul 27 14:34 gksdchk.log
drwxr-xr-x 2 root wheel 512 Oct 21 2015 gres-tp
-rw-r--r-- 1 root wheel 4 Jul 27 14:36 idp_license_info
drwxrwxrwx 2 root wheel 512 Oct 21 2015 install
-rw-r--r-- 1 root wheel 184670919 Jul 27 07:42 junos-srxsme-12.3X48-D101-domestic.tgz
-rw-r--r-- 1 root wheel 33 Jul 27 14:40 kmdchk.log
-rw-r--r-- 1 root wheel 155 Jul 27 14:36 krt_gencfg_filter.txt
drwxrwxrwx 2 root wheel 512 Oct 21 2015 pics
-rw-r--r-- 1 root wheel 30 Jul 27 14:40 policy_status
drwxr-xr-x 2 root wheel 512 Oct 21 2015 rtsdb
drwxr-xr-x 3 root wheel 512 Oct 21 2015 sec-download
-rw-r--r-- 1 root wheel 0 Oct 21 2015 spu_kmd_init
drwxrwxrwt 2 root wheel 512 Oct 21 2015 vi.recover
-rw-r--r-- 1 root wheel 0 Jul 27 14:40 vpn_tunnel_orig.id
ftp> bye
221 Service closing control connection

 

root> request system software add no-copy /var/tmp/junos-srxsme-12.3X48-D101-domestic.tgz no-validate reboot

Formatting alternate root (/dev/da0s2a)...
/dev/da0s2a: 627.4MB (1284940 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 156.86MB, 10039 blks, 20096 inodes.
super-block backups (for fsck -b #) at:
32, 321280, 642528, 963776
Extracting /var/tmp/junos-srxsme-12.3X48-D101-domestic.tgz ...
Installing package '/altroot/cf/packages/install-tmp/junos-12.3X48-D101-domestic' ...
Verified junos-boot-srxsme-12.3X48-D101.tgz signed by PackageProductionSHA1RSA_2020
Verified junos-srxsme-12.3X48-D101-domestic signed by PackageProductionSHA1RSA_2020
JUNOS 12.3X48-D101 will become active at next reboot
Saving state for rollback ...
Rebooting ...
shutdown: [pid 2463]
Shutdown NOW!

*** FINAL System shutdown message from root@ ***
至此,升级完成,可以在>下show version查看版本

posted on 2020-07-30 14:56  雅那安  阅读(2381)  评论(4编辑  收藏  举报