高远 2007-12-4 20:47
升级Juniper路由器的Junos
root@router> show system software (升级前先确定旧的Junos相关版本)Information for jbase:Comment:JUNOS Base OS Software Suite [5.0R3.3]Information for jcrypto:Comment:JUNOS Crypto Software Suite [5.0R3.3]Information for jdocs:Comment:JUNOS Online Documentation [5.0R3.3]Information for jkernel:Comment:JUNOS Kernel Software Suite [5.0R3.3]Information for jpfe:Comment:JUNOS Packet Forwarding Engine Support [5.0R3.3]Information for jroute:Comment:JUNOS Routing Software Suite [5.0R3.3]Information for junos:Comment:JUNOS Base OS boot [5.0R3.3]To upgrade your software, there are several simple steps (following this list, we will explain each item in more detail): [list=1][*]Download the software package(s) you need from the [url=http://www.qqread.com/keys/juniper/index.html][color=#800080]Juniper[/color][/url] Networks Web site.(下载新的Junos版本,这个...弄到手为强,据说juniper网站那个帐号比[url=http://www.qqread.com/tag/653/index.html][color=#0000ff]cisco[/color][/url]的CCO还猛,一般人搞不定)
[*]Perform a system backup on the router you wish to upgrade. (升级前,备份[url=http://www.qqread.com/z/sys/safe-seting/index.html][color=#0000ff]配置[/color][/url]文件,旧的junos)
[*]Copy the software package(s) to the router you wish to upgrade. (利用[url=http://www.qqread.com/z/server/ftp/index.html][color=#0000ff]ftp[/color][/url]把新的junos拷贝到/var/tmp目录)
[*]Add the new software package(s) to the router you wish to upgrade (this will effectively delete the old packages).(升级,加载新的junos)
[*]Reboot the router.(重启[url=http://www.qqread.com/tag/1637/index.html][color=#0000ff]路由[/color][/url]器就ok咯)
[/list]1 Downloading the SoftwareWhen you download JUNOS software from the Juniper Networks Web site at [u]www.juniper.net/support[/u] using your authorized username and password, you will notice that the packages use a standard naming convention. The format is [font=NSimsun]package-x.yZnumber.tgz[/font]: [list][*][font=NSimsun]Package[/font] is the name of the file (such as [font=NSimsun]jbundle[/font]).
[*][font=NSimsun]x.y[/font] is the software version.
[*][font=NSimsun]Z[/font] is the type of release. For most customers, this will be an R for released version. For some customers, it may be A (alpha release), B (beta release), or I (internal release).
[*][font=NSimsun]number[/font] is the software release number and build, if applicable.
[/list]2 Backing Up the SystemYou can create a recoverable snapshot of the current system, if it is stable, before proceeding. Using this command, however, will make the running and backup versions of the software identical and will mean that you cannot revert back to the original version that shipped with the router. To make the snapshot, use the following command:root@router# request system snapshot This will back up the [font=NSimsun]/root[/font] file system to [font=NSimsun]/altroot[/font] and the [font=NSimsun]/config[/font] file system to [font=NSimsun]/altconfig[/font] on the hard disk. 3 Copying the Package(s) to the RouterAfter you have backed up your system files, copy the new software bundle to the router's hard disk, using a command such as the following:root@router# file copy [url]ftp://username:prompt@ftp.hostname.net/[/url] filename/var/tmp/filenameThis will copy the file from an FTP server to the [font=NSimsun]/var/tmp[/font] directory on the router's hard disk. This is simply an example of one way to copy the file. The M40 also has an LS-120 floppy drive that can be used for the storage and transfer of files. When installing a new software version, you should do so from an out-of-band management source, such as the console. An in-band source, such as Telnet, could be lost while you are upgrading. 4 Adding the Package(s)Once the files have been copied to the hard disk, upgrade the software using the following command:root@router> request system software add package-nameChecking available free disk space...11600k available, 6076k suggested...Installing package '/var/tmp/jbundle-package-name' ...Auto-deleting old jroute...Auto-deleting old jdocs...Auto-deleting old jpfe...Auto-deleting old jkernel...Adding JUNOS base software release-number...Adding jkernel...Adding jpfe...Adding jdocs...Adding jroute...NOTICE: uncommitted changes have been saved in/var/db/config/juniper.conf.pre-installSaving package file in /var/sw/pkg/jbundle-package-name ...As you can see in the example, once you begin to install the new [font=NSimsun]jbundle[/font], the system deletes the old information and explodes (expands) the zipped files contained in the new bundle into the [font=新宋体]/var/sw/pkg/jbundle-package-name[/font] file. 5 Finishing the UpgradeOnce the software upgrade has completed, you should perform a system reboot. This is the last step in upgrading the JUNOS software package(s). Use the following command:root@router> request system reboot