Juniper SRX Junos升級(自己做的升級)


在拿到設備后,初次使用輸入用戶名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查看版本


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM