Software Packaging on the Router
Software Package Modes
The router can be booted using any of the following:
-
Consolidated—A single software image containing a full collection of software packages. This mode provides a simplified installation and can be stored in the bootflash, a TFTP server, or a network server.
-
Sub-package—One or more sub-images that are extracted from the consolidated image. This mode provides optimized memory usage and requires that you store files in the bootflash directory.
Upgrade IOS Image in Sub-packages Mode
To upgrade IOS image in sub-packages mode for the Cisco NCS 4202 routers:
request platform software package expand file source-URL [to destination-URL] [force] [verbose] [wipe]
configure terminal
config-register 0x2
boot system flash [flash-fs:] [partition-number:] [filename]
exit
copy running-configuration startup-configuration
reload
Description of Commands
Command |
Description |
---|---|
config-register 0x2 |
Use the command to boot the router using a specified image in NVRAM. |
request platform software package expand file source-URL [to destination-URL] [force] [verbose] [wipe] |
Use the command to expand the consolidated image file on the router. |
boot system flash [flash-fs:] [partition-number:] [filename] |
Use the command to set the router to boot using the packages.conf file. |
Configuration Example for Upgrading IOS Image in Sub-packages Mode
The following example shows the upgrade of IOS image in sub-packages mode:
Router#request platform software package expand file bootflash:ncs4202-universalk9_npe.17.03.01.SPA.bin
Verifying parameters
Expanding superpackage bootflash:ncs4202-universalk9_npe.17.03.01.SPA.bin
Validating package type
*Jul 16 14:41:05.881 IST: %INSTALL-5-OPERATION_START_INFO: R0/0: packtool:Started expand package bootflash:ncs4202-universalk9_npe.17.03.01.SPA.bin
Copying package files
WARNING: packages.conf will replace the identical file that already exists in bootflash:
SUCCESS: Finished expanding all-in-one software package.
Router#
*Jul 16 14:45:30.606 IST: %INSTALL-5-OPERATION_COMPLETED_INFO: R0/0: packtool:Completed expand package bootflash:ncs4202-universalk9_npe.17.03.01.SPA.bin
Router#config t
Router(config)#config-reg 0x2
Router(config)#no boot sys
Router(config)#boot system bootflash:packages.conf
Router(config)#exit
Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router#reload
Understanding Software Packages
Sub-Package |
Purpose |
||
---|---|---|---|
RPBase |
Route Switch Processor (RSP) operating system |
||
RPControl |
Control plane processes between IOS process and the rest of the platform. |
||
RPAccess |
Handles security features including Secure Socket Layer (SSL) and Secure Shell (SSH) |
||
RPIOS |
Cisco IOS kernel, which is where IOS features are stored and run.
|
||
SIPSPA Base |
Controls interface module daemons. |