Configuration Notes for Cisco IOS Release 11.1---Cisco CPA1600 and Cisco CPA3600 Series Routers
November 4, 1996
This document provides additional information about Cisco Internetwork Operating System (Cisco IOS) support of Cisco CPA1600 series routers and Cisco CPA3600 series routers. Use this document to complement the information contained in the following two documents:
These configuration notes contain the following sections:
Cisco IOS Release 11.1(7)AA supports the following routers and access servers:
Table 1 lists the interfaces supported in Cisco IOS Release 11.1(7)AA:
Table 1 : Interfaces Supported
Interface | Cisco 1600 | Cisco 3600 |
---|---|---|
Ethernet (AUI) | Yes | Yes |
Ethernet (10BaseT) | Yes | Yes |
Synchronous serial | Yes | Yes |
Asynchronous serial | Yes | Yes |
Token Ring | No | Yes |
ISDN BRI S/T | Yes | Yes |
ISDN BRI U | Yes | Yes |
ISDN PRI | No | Yes |
Channelized T1 and E1 | No | Yes |
Switched 56 Kbps | Yes | No |
Switched Digital Data Service (DDS) | Yes | No |
New Software Features in Cisco IOS Release 11.1(7)AA
Cisco IOS Release 11.1(7)AA adds support for the following new platforms and features:
The documentation in the sections below supplements the Configuring Fundamentals Configuration Guide. Included are configuration tasks and command reference documentation for the new features available on supported platforms. Pointers to chapter titles and sections are included so that you can update your printed manual.
On page 1-68 in the Configuration Fundamentals Configuration Guide, update the "Display System Image and Configuration Information" section with the corresponding new sections:
Display System Image and Configuration Information
Perform the following tasks in EXEC mode to display information about system software, system image files, and configuration files:
Task | Command |
---|---|
List information about Flash memory, including system image filenames, amounts of memory used and remaining, and Flash partitions.
The device: argument for the Cisco 1600 series and Cisco 3600 series specifies a Flash device. For the Cisco 3600 series, your choice of devices are internal Flash memory (flash) or a Flash memory PC card inserted one of two PCMCIA slots (slot0 or slot1). For the Cisco 1600 series, a PC card inserted in a PCMCIA slot is the only supported device, which is specified using the flash keyword. |
Enter one of the following commands:
|
Refer to the Configuration Fundamentals Command Reference publication for examples of these commands.
Task | Command |
---|---|
Recompute and verify the image checksum when the image has been copied into a Flash memory device. | Enter the following command:
|
Router# verify slot0: PCMCIA Slot0 flash Partition Size Used Free Bank-Size State Copy Mode 1 4096K 3069K 1026K 4096K Read/Write Direct 2 4096K 3069K 1026K 4096K Read/Write Direct 3 4096K 0K 4096K 4096K Read/Write Direct 4 4096K 3826K 269K 4096K Read/Write Direct [Type ?<no> for partition directory; ? for full directory; q to abort] Which partition? [default = 1] 4 PCMCIA Slot0 flash directory, partition 4: File Length Name/status 1 2205860 dirt/images/c3600-d-mz 2 1711128 c3600-i-mz.test 3 850 alz [3918032 bytes used, 276272 available, 4194304 total] Name of file to verify? c3600-i-mz.test Verifying checksum for 'c3600-i-mz.test' (file # 2)... OK
On page 1-105 of the Configuration Fundamentals Configuration Guide, update the "Partition Flash Memory" section with the following new section:
To partition Flash memory, perform the following task in global configuration mode:
Task | Command |
---|---|
Partition Flash memory. | Enter one of the following commands:
|
The device argument enables you to specify which Flash memory device you want to partition. For the Cisco 3600 series, your choices are internal Flash memory (flash) or Flash memory PC cards inserted in one of two PCMCIA slots (slot0 or slot1). On the Cisco 1600 series, partitions can be made only on a Flash memory PC card inserted in a PCMCIA slot, which is specified using the flash device keyword.
For the Cisco 1600 series and Cisco 3600 series, the number of partitions that you create in a single Flash device is equal to the number of banks present in the same device. Enter the show flash: all command to view the number of banks on the Flash memory device. The number of partition size entries you set is equivalent to the number of specified partitions. For example, the partition slot0: 2 8 8 command configures two partitions to be 8 MB large each. The first 8 corresponds to the first partition; the second 8 corresponds to the second partition. For all other platforms, the partition-size argument is equal to 1 or 2.
This task succeeds only if the system has at least two banks of Flash and the partitioning does not split an existing file in Flash memory across two or more partitions.
Update the "Copy a File into a Flash Partition" section on page I-106 of the Configuration Fundamentals Configuration Guide with the following section:
Copy a File into a Flash Partition
To download a file into a partition in internal Flash memory, perform one of the following tasks in EXEC mode:
Task | Command |
---|---|
Download a file from a TFTP server into a Flash memory partition. | Enter one of the following commands:
|
Download a file from a MOP server into a Flash memory partition. | Enter one of the following commands:
|
Download a file from an rcp server into a Flash memory partition. | Enter one of the following commands:
|
Use the device argument on the Cisco 3600 series to specify which Flash memory device you want to serve as the copy destination. Your choices are internal Flash memory (flash) or a Flash memory PC card inserted in one of two PCMCIA slots (slot0 or slot1).
Flash memory on a Cisco 1600 series router runs from a Flash memory PC card, which is inserted in a PCMCIA slot. This card is the only Flash memory that exists on the Cisco 1600 series. You can write Cisco IOS images to the PC card by specifying the flash device. For example, use the copy tftp flash:, copy mop flash:, or copy rcp flash: commands.
The prompts displayed after you execute these tasks indicate the method by which the file can be downloaded into each partition. The possible methods are as follows:
If the image can be downloaded into more than one partition, you are prompted for the partition number. Enter any of the following at the partition number prompt to obtain help:
Cisco 1600 and Cisco 3600 Copy TFTP Examples
A Cisco IOS image can be copied with or without its destination partition and filename specified in the initial command line. Both methods are described in this example section.
To copy a Cisco IOS image from a TFTP server to a Flash memory location that is specified in the initial command line, perform the following steps:
To copy a Cisco IOS image from a TFTP server to a Flash memory location that is not specified in the initial command line, unlike the previous example, perform the following steps:
To copy a Cisco IOS image from a remote rcp server to a Flash memory PC card inserted in PCMCIA slot 0, perform the following steps:
To copy a Cisco IOS image from a remote rcp server to a Flash partition, which is specified in the initial command line, perform the following steps:
On page 1-68 of the Configuration Fundamentals Configuration Guide, update the "Clear the Configuration Information" section with the following new section:
Erase the Configuration Information
To erase a saved configuration from a specific Flash memory device on a Cisco 1600 or Cisco 3600 series router, complete the following task in EXEC mode:
For the device: argument on the Cisco 3600 series router, specify which Flash memory device you want to serve as the copy destination. Your choices are internal Flash memory (flash:) or a Flash memory PC card inserted in one of two PCMCIA slots (slot0: or slot1:). The Cisco 1600 series routers support erasing files in the PC card only, which is specied with the flash device keyword. You must include a colon (:) after the device type that you specify, regardless of which platform you are using.
If you attempt to erase or delete the configuration file specified by the CONFIG_FILE or BOOTLDR environment variable, the system prompts you to confirm the deletion. Also, if you attempt to erase or delete the last valid system image specified in the BOOT environment variable, the system prompts you to confirm the deletion.
The following example erases all the file contents in the second partition in internal Flash memory:
On page 1-73 in the "Loading System Images, Microcode, and Configuration Files" chapter in the Configuration Fundamentals Configuration Guide, update the "Copy a Configuration File Directly to the Startup Configuration" section with the following new section:
Copy a Configuration File Directly to the Startup Configuration
You can copy a configuration file directly to your startup configuration without affecting the running configuration. System images are copied from TFTP servers, rcp servers, MOP servers, or Flash memory devices (such as on the Cisco 3600 series).
To copy a configuration file directly to the startup configuration, perform the following task in EXEC mode:
For the device argument, specify the Flash device from which you are copying the system image to the startup configuration. Possible copy destinations for the Cisco 3600 series router include the internal Flash memory (flash) or a Flash memory PC card inserted in one of two PCMCIA slots (slot0 or slot1). The Cisco 1600 series routers support copying files from the Flash memory PC card inserted in the PCMCIA slot, which is specified using the flash keyword. A colon (:) must be entered immediately following the specified device type, regardless of which platform you are using. If a filename follows the partition number, you must also enter a colon after the partition number.
The following Cisco 3600 series example copies the file IOS-UPGRADE-1 from the Flash memory PC card inserted in PCMCIA slot 0 to the router's startup configuration.
The following Cisco 3600 series example copies the file new-ios from the fourth partition in the Flash memory PC card inserted in PCMCIA slot 0 to the router's startup configuration:
On page 1-94 of the Configuration Fundamentals Configuration Guide, add the "Copy System Images Between Flash Memory Devices" section:
Copy System Images Between Flash Memory Devices
System images on Flash memory devices, such as internal Flash memory and Flash memory PC cards inserted in PCMCIA slots, can be copied between devices on Cisco 3600 series routers. Images are copied to create backup copies of working configurations and easily duplicate configurations for other routers. (See Figure 1.)
Figure 1 : Copying Cisco IOS Images Between Flash Memory Devices on Cisco 3600 Series Routers
To copy a configuration file between Flash memory devices on a Cisco 3600 series router, perform the following task in EXEC mode:
Use the copy device:[partition-number:][filename] device:[partition-number:][filename] command to copy system images between Flash memory devices on a Cisco 3600 series router. Optional Flash devices include internal Flash memory (flash) and Flash memory PC cards inserted in one of two PCMCIA slots (slot0 or slot1). In place of the device arguments for the Cisco 3600 series, specify the source Flash memory device and the destination Flash memory device. The first occurrence of the device argument in the copy command is the source file identifier. The second occurrence of the device argument is the destination file identifier. You must enter a colon (:) after each specified device type. If a filename follows the partition number, you must also enter a colon after the partition number.
Copy Images Between Flash Devices Examples
To copy a Cisco IOS image between Flash devices that are resident on the same router, perform the following steps:
To copy a file from internal Flash memory to a PC card without specifying a partition number or filename in the initial command line, perform the following steps:
On page 1-58 in the Configuration Fundamentals Configuration Guide, update the "Copy from a TFTP Server to Flash Memory" section with the following new section:
Copy from a TFTP Server to Flash Memory
To copy a system image from a TFTP server to Flash memory, complete the following tasks:
For the copy tftp flash, copy tftp device:, and copy tftp file_id commands, the router gives you the option of erasing the existing Flash memory before writing to it. If there is no free Flash memory available, or if the Flash memory has never been written to, the erase routine is required before new files can be copied. The system will inform you of these conditions and prompt you for a response. When you issue the copy tftp flash command, the system prompts you for the IP address or domain name of the TFTP server. This server can be another router serving ROM or Flash system software images. The system then prompts you for the filename of the software image to copy.
The device argument on the copy tftp device:[partition-number:][filename] command specifies a Flash device to serve as the destination of the copy operation. On the Cisco 3600 series, you can choose flash, slot0, or slot1 as the specified Flash memory device. The options slot0 and slot1 correspond to PCMCIA slots 0 and 1. Bootflash memory is not supported on the Cisco 3600 series routers. On the Cisco 1600 series, only the PC card is supported. This card is specified with the flash device keyword, and it's the only Flash memory that exists on the Cisco 1600 series. A colon (:) must be entered immediately following the specified device type, regardless of which platform you are using. If a filename follows the partition number, you must also enter a colon after the partition number.
The file_id argument of the copy tftp file_id command specifies a device and filename as the destination of the copy operation. You can omit the device, entering only copy tftp filename. When you omit the device, the system uses the default device specified by the cd command.
If you attempt to copy a file into Flash memory that is already there, a prompt informs you that a file with the same name already exists. This file is "deleted" when you copy the new file into Flash. The first copy of the file still resides within Flash memory, but it is rendered unusable in favor of the newest version, and is listed with the "deleted" tag when you use the show flash command. If you terminate the copy process, the newer file is marked "deleted" because the entire file was not copied and is not valid. In this case, the original file in Flash memory is valid and available to the system.
To copy a Cisco IOS system image from a TFTP server to a Cisco 3600 series or Cisco 1600 series router, which does not have partitioned Flash memory, perform the following steps:
The following example shows how to copy a system image named gs7-k into the current Flash configuration in which a file named gs7-k already exists:
On page 1-61 of the Configuring Fundamentals Configuration Guide, replace the "Copy from an rcp Server to Flash Memory" section with the following new section:
Copy from an rcp Server to Flash Memory
To copy a system image from an rcp server to Flash memory, complete the following tasks:
When you issue the copy rcp flash, copy rcp device:[partition-number:][filename], or copy rcp file_id command, the system prompts you for the IP address or domain name of the server. This server can be another router serving Flash system software images. The system then prompts you for the filename of the software image to copy. With the copy rcp flash command, the system also prompts you to name the system image file that will reside in Flash memory once the copy is complete. You can use the filename of the source file, or you can choose another name. For the device argument on the Cisco 3600 series, you can specify internal Flash memory (flash) or a Flash memory PC card inserted in one of two PCMCIA slots (slot0 or slot1). On the Cisco 1600 series, the only supported device type is the Flash memory PC card, which is specified by the flash keyword. This card is the only Flash memory that exists on the Cisco 1600 series. A colon (:) must be entered immediately following the specified device type, regardless of which platform you are using.
When free space is available in Flash memory, you are given the option of erasing the existing Flash memory before writing onto it. If no free Flash memory space is available, or if the Flash memory has never been written to, the erase routine is required before new files can be copied. The system informs you of these conditions and prompts you for a response. If you accept the erasure, the system prompts you again to confirm before erasing. Note that the Flash memory is erased at the factory before shipment.
If you attempt to copy a file into Flash memory that is already there, a prompt informs you that a file with the same name already exists. The older file is "deleted" when you copy the new file into Flash. The first copy of the file still resides within Flash memory, but it is rendered unusable in favor of the newest version, and is listed with the "deleted" tag when you use the show flash command. If you terminate the copy process, the newer file is marked "deleted" because the entire file was not copied. In this case, the original file in Flash memory is valid and available to the system.
To copy a Cisco IOS image from a rcp server to a Flash memory device on a Cisco 1600 series or Cisco 3600 series router, perform the following steps:
In this next Cisco 3600 series example, the destination partition number and filename in PCMCIA slot 0 are specified in the initial command line. In the previous example, the partition number and filename was provided during the copy operation.
The exclamation point (!) indicates that the copy process is taking place. Each exclamation point (!) indicates that ten packets have been transferred successfully.
On page 1-63 in the Configuration Fundamentals Configuration Guide, update the "Copy from a MOP Server to Flash Memory" section with the following new section:
Copy from a MOP Server to Flash Memory
You can copy a system image from a Maintenance Operation Protocol (MOP) server to Flash memory. To do so, perform the following task in EXEC mode:
In place of the device argument, specify the destination Flash device. On the Cisco 3600 series routers, you can specify the internal Flash memory (flash) or a Flash memory PC card inserted in one of two PCMCIA slots (slot0 or slot1). For the Cisco 1600 series, only the Flash memory PC card (flash) is supported. This card is the only Flash memory device that exists on the Cisco 1600 series routers. You must enter a colon (:) after the specified device type, regardless of the platform you are using. If a filename follows the partition number, you must also enter a colon after the partition number.
The following example shows sample output from the copy mop flash command. In this example, the system image routerimage, which already exists in Flash memory, is copied to Flash memory, and there is enough memory to copy the file without erasing any existing files.
On page 1-88 in the Configuration Fundamentals Configuration Guide, update the "Copy from Flash Memory to a TFTP Server" section with the following new section:
Copy from Flash Memory to a TFTP Server
You can copy a system image to a TFTP network server. In some implementations of TFTP, you must first create a "dummy" file on the TFTP server and give it read, write, and execute permissions before copying a file over it. Refer to your TFTP documentation for more information.
To copy a system image to a TFTP network server, perform the following task in EXEC mode:
In place of the device argument, specify the Flash device that contains the source file. On the Cisco 3600 series routers, you can specify copying from internal Flash memory (flash) or a Flash memory PC card inserted in one of two PCMCIA slots (slot0 or slot1). For the Cisco 1600 series routers, only a PC card is supported, which is specified using the flash device keyword. This card is the only Flash memory that exists on the Cisco 1600 series. For each platform, you must enter a colon (:) after the specified device type. If a filename follows the partition number, you must also enter a colon after the partition number.
Copy Flash to TFTP Server Examples
To copy a system image from a PC card, which is inserted in a Cisco 3600 series router, to a remote TFTP server, perform the following steps:
In this next Cisco 3600 series example, the partition number is specified at the initial command line. Use you own partition numbers and filenames where appropriate.
The exclamation point (!) indicates that the copy process is taking place. Each exclamation point (!) indicates that ten packets have been transferred successfully. To stop the copy process, press Ctrl-^. Refer to the Troubleshooting Internetworking Systems publication for procedures on how to resolve Flash memory problems.
The following example uses the show flash [device:] command on a Cisco 7500 series to display the name of the system image file to copy. In the example, the Flash memory device containing the system image is the second PCMCIA slot. The file to copy is test. The example uses the copy file_id tftp command, to copy test to a TFTP server.
The exclamation point (!) indicates that the copy process is taking place. Each exclamation point (!) indicates that ten packets have been transferred successfully.
On page 1-90 in the Configuration Fundamentals Configuration Guide, update the "Copy from Flash Memory to an rcp Server" section with the following new section:
Copy from Flash Memory to an rcp Server
You can also copy a system image from Flash memory to an rcp network server.
The rcp protocol requires that a client send the remote username on each rcp request to the server. When you copy an image from Flash memory to a network server using rcp, the Cisco IOS software sends the remote username associated with the current terminal process, if that name is valid. If the remote username is invalid, the software uses the router host name as both the remote and local usernames.
You can configure a different remote username to be sent to the server. If the network server has a directory structure, as do UNIX systems, the rcp protocol implementation writes the system image relative to the directory associated with the remote username on the network server.
For the rcp command to execute properly, an account must be defined on the destination server for the remote username.
To stop the copy process, press Ctrl-^. Refer to the Troubleshooting Internetworking Systems publication for procedures on how to resolve Flash memory problems.
If you copy the system image to a personal computer used as a file server, the computer must support the rcp protocol.
To copy the system image from Flash memory to a network server, perform the following tasks:
In place of the device argument, specify the Flash device that contains the source image file. For the Cisco 3600 series, you can specify copying a file from internal Flash memory (flash) or a Flash memory PC card inserted in one of two PCMCIA slots (slot0 or slot1). For the Cisco 1600 series, only a PC card is supported, which is specified with the flash device keyword. This card is the only Flash memory that exists on the Cisco 1600 series. You must enter a colon (:) after the specified device type, regardless of which platform you are using. If a filename follows the partition number, you must also enter a colon after the partition number.
To copy a file from a PC card inserted in the PCMCIA slot 1 on a Cisco 3600 series router, perform the following steps:
To copy a system image from a Cisco 3600 series Flash PC card to a remote rcp server, by specifying the source partition number and filename in the initial command line, perform the following steps:
On page I-107of the Configuration Fundamentals Configuration Guide, replace the "Configure a Flash Partition as a TFTP Server" section with the following section:
Configure a Flash Partition as a TFTP Server
To configure a Flash partition as a TFTP server, perform one of the following tasks in global configuration mode:
In place of the device argument specify the Flash device that will be used as a TFTP server. On the Cisco 3600 series, your options include internal Flash memory (flash) or a Flash memory PC card inserted in one of two PCMCIA slots (slot0 or slot1). On the Cisco 1600 series, only a PC card is supported, which is specified by the flash device keyword. This card is the only Flash memory that exists on the Cisco 1600 series. A colon (:) must be entered immediately following the specified device type, regardless of which platform you are using. If a filename follows the partition number, you must also enter a colon after the partition number.
Once you have specified TFTP server operation, exit configuration mode and save the configuration information to your startup configuration.
On page 1-76 of the Configuration Fundamentals Configuration Guide, update the "Load from Flash Memory" section with the following new section:
In the Cisco 3600 series, you can load a system image from internal Flash memory or a Flash memory PC card inserted in one of two PCMCIA slots.
In the Cisco 1600 series, system images are loaded from a Flash memory PC card, which is inserted in a PCMCIA slot. This card is the only Flash memory that exists on the Cisco 1600 series.
Manually Load a System Image from the ROM Monitor
If your router does not find a valid system image or if its configuration file is corrupted at startup, the configuration register is set to enter ROM monitor mode and the system enters ROM monitor mode. Depending on which platform you are using, you can use the ROM monitor to manually load a system image from the following devices:
Cisco 3600 series routers do not use a dedicated boot helper image such as rxboot to assist with the boot process. Instead the first system image in Flash memory is identified as the default boot helper. However, this default can be overriden by setting the BOOTLDR ROM monitor environment variable to point to another system image. The boot helper image is invoked any time the ROM monitor does not recognize a valid Flash memory device (for example, flash:, slot0:, and slot1:) specified by the boot command, whether the boot process is performed manually or automatically.
In Cisco 3600 series, no autobooting occurs and your configuration session is passed over to ROM monitor mode if the bootbits are set to 0 in the configuration register. If the bootbits are set to 1, the ROM monitor automatically boots the default boothelper image, which is the first file in Flash memory. In this case, the BOOTLDR setting is ignored. If this boot attempt fails, the system attempts to boot the first file in the Flash memory PCMCIA card inserted in slot 0. Finally, if the bootbits are set within the range of 2 to 15, the ROM monitor executes the boot commands set by the boot environment variable. This environment variable is set by the boot system command in the Cisco IOS software. If a boot attempt fails, the ROM monitor tries to boot the images in the order they are presented in the environment variable. If all attempts to boot images specified in the boot process fail, the ROM monitor resorts to booting the first image sequentially from the following Flash memory devices: internal Flash memory, slot 0, and slot 1.
To manually boot from Flash memory, complete the following tasks:
Replace the device argument on the Cisco 3600 series with Flash device that you want to boot from. Your choices are internal Flash memory (flash) or a Flash memory PC card inserted in a PCMCIA slot (slot0 or slot1). A colon (:) must be entered immediately following the specified device type, regardless of which platform you are using. If a filename follows the partition number, you must also enter a colon after the partition number.
The following example enables the ROM monitor to boot the first file in the first partition of internal Flash memory:
The following example enables the ROM monitor to boot the first file in the first partition of a Flash memory PC card inserted in the PCMCIA slot 0:
The following example enables the ROM monitor to boot the first file in the second partition of a Flash memory PC card inserted in the PCMCIA slot 0:
In this example, the ROM monitor boots the file called imagename from the third partition of a Flash memory PC card inserted in the PCMCIA slot 0:
The following command normally boots the first image in Flash memory. However, because a valid device type is not specified for the ROM monitor (for example, flash:, slot0:, or slot1:), the boothelper is incurred to boot the system image.
Manually Boot from a Network File
To manually boot from a network file, complete the following tasks in EXEC mode:
In the following example, a router is manually booted from the network file network1:
In the following Cisco 3600 series example, the router netboots the file imagename. To netboot this file, the router invokes the boot helper.
Configure the Router to Automatically Boot from an Image in Flash Memory
To configure a router to automatically boot from an image in Flash memory, perform the following tasks:
If you enter more than one image filename, the router tries them in the order entered.
If a filename already appears in the configuration file and you want to specify a new filename, remove the existing filename with the no boot system flash filename command.
Cisco 3600 series routers do not support booting a Cisco IOS system image from boot flash memory. The possible boot variables correspond to internal Flash memory and Flash memory PC cards inserted in PCMCIA slots 0 or slot 1.
On page 1-111 of the Configuration Fundamentals Configuration Guide, add the following new section:
Download a System Image Using Xmodem or Ymodem
If each system image loaded in the router is somehow damaged or erased and you do not have access to a TFTP server, copy a new Cisco IOS image from a local or remote computer (such as a PC, UNIX, or Macintosh) using the Xmodem or Ymodem protocols. The Cisco 3600 series routers do not support XBOOT functionality, which is a disaster recovery technique for the Cisco IOS software.The Xmodem and Ymodem protocols are used for transferring files and included in the following applications: Windows 3.1 (TERMINAL.EXE), Windows 95 (HyperTerminal), Windows NT 3.5x (TERMINAL.EXE), Windows NT 4.0 (HyperTerminal), and Linux UNIX freeware (minicom).
Perform this file transfer using the Cisco IOS software or the ROM monitor software. The Cisco 1600 series routers support transferring files from the ROM monitor only. If all system images on the router are damaged or erased, you must download a new image using the ROM monitor software. From the Cisco IOS software, the AUX port is recommended for image transfers from a remote or local PC. From the ROM monitor, the console port is used for image transfers from a remote or local PC. With the Cisco IOS software, the Xmodem or Ymodem file transfer occurs on the same port (AUX or console) from which you issue the copy xmodem or copy ymodem command. For example, issuing the copy xmodem command on the console port can not initiate a file transfer through the AUX port. The command must be entered on the AUX port to initiate a transfer through the AUX port. See Figure 2.
Figure 2 : Copy a System Image to a Router with Xmodem or Ymodem
Xmodem and Ymodem downloads occur very slowly. Because of this, the preferred method for downloading images quickly over the network is with the copy tftp device: command. If the erase option is specified, all existing files in the Flash memory are replaced with the newer Flash memory image at the successful completion of the download operation.
To copy a Cisco IOS image from a PC to a router using the Xmodem protocol, perform one of the following EXEC or ROM monitor commands:
Use the copy xmodem flash EXEC command and xmodem ROM monitor command to copy an image if you do not have access to a TFTP or rcp server. Otherwise, use the copy tftp flash command to download a new Cisco IOS software image to your router.
The PC from which you will transfer the Cisco IOS image must be running terminal emulation software and the Xmodem or Ymodem protocol.
Refer to the "Cisco IOS Xmodem Example" and the "ROM Monitor Xmodem Example" in the section "I/O Memory Example" for an example configuration.
To transfer a Cisco IOS image from a remote PC running terminal emulation software and Xmodem software, perform the following steps:
To transfer a Cisco IOS image from a local PC, repeat the previous configuration using the AUX port. No modems are used in this file transfer. The AUX speed configured on the router must match the transfer speed configured on the local PC, which is configured within the terminal emulation software.
From within the ROM monitor mode, you can copy a new Cisco IOS image from a remote PC to a Cisco 3600 series or Cisco 1600 series router by performing these steps.
In addition to downloading an image from a remote PC, you can download an image from a local PC by following these steps:
On page I-327 of the Configuration Fundamentals Configuration Guide, add the following new section:
Reallocate Packet Memory and Processor Memory
Depending on the number of network interfaces and the size of the Cisco IOS image you are running on a Cisco 3600 series router, you may need adjust the percentage of DRAM allocated to processor memory or packet memory.
The memory-size iomem command performs this function. If more buffers are needed, the packet memory must be increased. To accomodate larger Cisco IOS images, the processor memory must be increased.
To allocate different percentages of DRAM to the packet memory and processor memory, perform the following task in global configuration mode:
Display your current memory level by entering the show memory command. If the value appearing in the Free(b) column in the I/O row is low, you probably need to allocate more packet memory. To display statistics for the buffers pool, use the show buffers command. If you are dropping packets because you have too few buffers and you already adjusted the buffers using the buffers configuration command, increase the packet memory percentage if you still need more memory.
The memory-size iomem command does not take effect until you save it to NVRAM, using the copy running-config startup-config EXEC command, and reload the router. However, when the command is initially entered at the command line, the Cisco IOS software checks whether the new memory redistribution will cause the currently running image to have insufficient memory. If this is the case, the following message appears:
When you enter the reload command to run a new image, the system recalculates the new processor and packet memory split. If the I/O memory percentage is configured too high and leaves insufficient processor DRAM for loading the image, the system automatically changes the percentages to one of the two alternative settings or to the default setting to load the image.
If the default, which has the smallest percentage of I/O memory, is still not sufficient for the image to run, this means you do not have enough DRAM to run that particular subset image. The system will not repartition the memory if you do not configure the percentages to something other than the default.
Take the following steps to allocate 40 percent of the available DRAM to packet memory and the remaining 60 to processor memory. These values can fluctuate according to your configuration needs.
For service and support for a product purchased from a reseller, contact the reseller. Resellers offer a wide variety of Cisco service and support programs, which are described in the section "Service and Support" in the information packet that shipped with your chassis.
For service and support for a product purchased directly from Cisco, use CCO.
CCO is Cisco Systems' primary, real-time support channel. SMARTnet customers and partners can self-register on CCO to obtain additional content and services.
Available 24 hours a day, 7 days a week, CCO provides a wealth of standard and value-added services to Cisco's customers and business partners. CCO services include product information, software updates, release notes, technical tips, the Bug Navigator, configuration notes, brochures, descriptions of service offerings, and download access to public and authorized files.
CCO serves a wide variety of users through two interfaces that are updated and enhanced simultaneously---a character-based version and a multimedia version that resides on the World Wide Web (WWW). The character-based CCO supports Zmodem, Kermit, Xmodem, FTP, and Internet e-mail, and is excellent for quick access to information over lower bandwidths. The WWW version of CCO provides richly formatted documents with photographs, figures, graphics, and video, as well as hyperlinks to related information.
You can access CCO in the following ways:
For a copy of CCO's Frequently Asked Questions (FAQ), contact ccohelp@cisco.com. For additional information, contact ccoteam@cisco.com.
Please use CCO to obtain general information about Cisco Systems, Cisco products, or upgrades. If CCO is not accessible, contact 800 553-6387, 408 526-7208, or csrep@cisco.com.
Router#
copy tftp flash:1:c3600-i-mz
System flash directory, partition 1:
File Length Name/status
1 1711088 current-ios
[1711152 bytes used, 2483152 available, 4194304 total]
The destination filename must be an alphanumeric expression. For example, the filename 1 is invalid.
Address or name of remote host [171.69.1.129]?
Source file name [c3600-i-mz]?
Accessing file 'c3600-i-mz' on 171.69.1.129...
Loading c3600-i-mz from 171.69.1.129 (via Ethernet1/0): ! [OK]
Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]
Copy 'c3600-i-mz' from server
as 'c3600-i-mz' into Flash WITH erase? [yes/no]
yes
Erasing device... eeeeeeeeeeeeeeee ...erased
Loading c3600-i-mz from 171.69.1.129 (via Ethernet1/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 1711088/4194304 bytes]
Verifying checksum... OK (0xF89A)
Flash device copy took 00:00:17 [hh:mm:ss]
Router#
copy tftp flash:
System flash
Partition Size Used Free Bank-Size State Copy Mode
1 4096K 1671K 2424K 4096K Read/Write Direct
2 16384K 1671K 14712K 8192K Read/Write Direct
[Type ?<no> for partition directory; ? for full directory; q to abort]
Which partition? [default = 1]
System flash directory, partition 1:
File Length Name/status
1 1711088 c3600-i-mz
[1711152 bytes used, 2483152 available, 4194304 total]
Address or name of remote host [171.69.1.129]?
Source file name?
images/3600/c3600-i-mz
Destination file name [
images/3600/c3600-i-mz]?
Accessing file 'images/3600/c3600-i-mz' on 171.69.1.129...
Loading images/3600/c3600-i-mz from 171.69.1.129 (via Ethernet1/0): ! [OK]
Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]
Copy 'images/3600/c3600-i-mz' from server
as 'images/3600/c3600-i-mz' into Flash WITH erase? [yes/no]
yes
Erasing device... eeeeeeeeeeeeeeee ...erased
Loading images/3600/c3600-i-mz from 171.69.1.129 (via Ethernet1/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 1711088/4194304 bytes]
Verifying checksum... OK (0xF89A)
Flash device copy took 00:00:17 [hh:mm:ss]
Router#
copy rcp slot0:
PCMCIA Slot0 flash
Partition Size Used Free Bank-Size State Copy Mode
1 4096K 3068K 1027K 4096K Read/Write Direct
2 4096K 1671K 2424K 4096K Read/Write Direct
3 4096K 0K 4095K 4096K Read/Write Direct
4 4096K 3825K 270K 4096K Read/Write Direct
[Type ?<no> for partition directory; ? for full directory; q to abort]
Which partition? [default = 1]
PCMCIA Slot0 flash directory, partition 1:
File Length Name/status
1 3142288 c3600-j-mz
[3142352 bytes used, 1051952 available, 4194304 total]
Address or name of remote host [171.69.1.129]?
Source file name?
/tftpboot/gate/c3600-i-mz
Destination file name [/tftpboot/gate/c3600-i-mz]?
Accessing file '/tftpboot/gate/c3600-i-mz' on 171.69.1.129...
Connected to 171.69.1.129
Loading 1711088 byte file c3600-i-mz: ! [OK]
Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]
Copy '/tftpboot/gate/c3600-i-mz' from server
as '/tftpboot/gate/c3600-i-mz' into Flash WITH erase? [yes/no]
yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Connected to 171.69.1.129
Loading 1711088 byte file c3600-i-mz: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Verifying checksum... OK (0xF89A)
Flash device copy took 00:00:18 [hh:mm:ss]
Router#
copy rcp slot0:3
Because the partition number is identified in the initial command line, the system software does not show a higher level display of the partition structure, unlike the previous copy rcp example.
PCMCIA Slot0 flash directory, partition 3:
File Length Name/status
1 426 running-config
[492 bytes used, 4193812 available, 4194304 total]
Address or name of remote host [171.69.1.129]?
Source file name?
/tftpboot/gate/c3600-i-mz
Destination file name [/tftpboot/gate/c3600-i-mz]?
Accessing file '/tftpboot/gate/c3600-i-mz' on 171.69.1.129...
Connected to 171.69.1.129
Loading 1711088 byte file c3600-i-mz: ! [OK]
Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]
Copy '/tftpboot/gate/c3600-i-mz' from server
as '/tftpboot/gate/c3600-i-mz' into Flash WITH erase? [yes/no]
yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Connected to 171.69.1.129
Loading 1711088 byte file c3600-i-mz: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK]
Verifying checksum... OK (0xF89A)
Flash device copy took 00:00:16 [hh:mm:ss]
Task
Command
Erase or delete a specified configuration file on a specified Flash memory device.
erase device:[partition-number]
Router# erase flash:2
System flash directory, partition 2:
File Length Name/status
1 1711088 dirt/amsingh/c3600-i-mz
[1711152 bytes used, 15066064 available, 16777216 total]
Erase flash device, partition 2? [confirm]
Are you sure? [yes/no]: yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
...erased
Task
Command
Load a configuration file directly into NVRAM or directly into the location specified by the CONFIG_FILE environment variable.
copy device:[partition-number:][filename] startup-config
Router# copy slot0:4:IOS-UPGRADE-1 startup-config
Copy 'IOS-UPGRADE-1' from flash device
as 'startup-config' ? [yes/no] yes
[OK]
Router# copy slot0:4:new-ios startup-config
Copy 'new-ios' from flash device
as 'startup-config' ? [yes/no] yes
[OK]
Task
Command
show device: [all | chips | detailed | err | partition number | summary]
copy device:[partition-number:][filename] device:[partition-number:][filename]
verify device: [partition-number:][filename]
Router#
copy flash:1 slot0:
System flash directory, partition 1:
File Length Name/status
1 3142748 dirt/admin/images/new-ios-1
[3142812 bytes used, 1051492 available, 4194304 total]
PCMCIA Slot0 flash
Partition Size Used Free Bank-Size State Copy Mode
1 4096K 1671K 2424K 4096K Read/Write Direct
2 4096K 3069K 1026K 4096K Read/Write Direct
3 4096K 1671K 2424K 4096K Read/Write Direct
4 4096K 3826K 269K 4096K Read/Write Direct
[Type ?<no> for partition directory; ? for full directory; q to abort]
Which partition? [default = 1]
PCMCIA Slot0 flash directory, partition 1:
File Length Name/status
1 1711088 /tftpboot/gate/c3600-i-mz
[1711152 bytes used, 2483152 available, 4194304 total]
Source file name?
dirt/admin/images/new-ios
Destination file name [dirt/admin/images/new-ios]?
Verifying checksum for 'dirt/admin/images/new-ios' (file # 1)... OK
Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]
Copy 'dirt/admin/images/new-ios' from flash: device
as 'dirt/admin/images/new-ios' into slot0: device WITH erase? [yes/no]
yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 3142748/4194304 bytes]
Flash device copy took 00:00:50 [hh:mm:ss]
Verifying checksum... OK (0xB732)
Router#
copy flash: slot1:
System flash
Partition Size Used Free Bank-Size State Copy Mode
1 4096K 3070K 1025K 4096K Read/Write Direct
2 16384K 1671K 14712K 8192K Read/Write Direct
[Type ?<no> for partition directory; ? for full directory; q to abort]
Which partition? [default = 1]
System flash directory, partition 1:
File Length Name/status
1 3142748 dirt/network/mars-test/c3600-j-mz.latest
2 850 running-config
[3143728 bytes used, 1050576 available, 4194304 total]
PCMCIA Slot1 flash directory:
File Length Name/status
1 1711088 dirt/gate/c3600-i-mz
2 850 running-config
[1712068 bytes used, 2482236 available, 4194304 total]
Source file name?
running-config
Destination file name [running-config]?
Verifying checksum for 'running-config' (file # 2)... OK
Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]
Copy 'running-config' from flash: device
as 'running-config' into slot1: device WITH erase? [yes/no]
yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
!
[OK - 850/4194304 bytes]
Flash device copy took 00:00:30 [hh:mm:ss]
Verifying checksum... OK (0x16)
Task
Command
Enter one of the following commands. Choose the command that corresponds to your router.
ip-address or name
filename
device
env-chassis# copy tftp flash
IP address or name of remote host [255.255.255.255]? dirt
Translating "DIRT"...domain server (255.255.255.255) [OK]
Name of file to copy ? gs7-k
Copy gs7-k from 131.108.13.111 into flash memory? [confirm]
Flash is filled to capacity.
Erasure is needed before flash may be written.
Erase flash before writing? [confirm]
Erasing flash EPROMs bank 0
Zeroing bank...zzzzzzzzzzzzzzzz
Verify zeroed...vvvvvvvvvvvvvvvv
Erasing bank...eeeeeeeeeeeeeeee
Erasing flash EPROMs bank 1
Zeroing bank...zzzzzzzzzzzzzzzz
Verify zeroed...vvvvvvvvvvvvvvvv
Erasing bank...eeeeeeeeeeeeeeee
Erasing flash EPROMs bank 2
Zeroing bank...zzzzzzzzzzzzzzzz
Verify zeroed...vvvvvvvvvvvvvvvv
Erasing bank...eeeeeeeeeeeeeeee
Erasing flash EPROMs bank 3
Zeroing bank...zzzzzzzzzzzzzzzz
Verify zeroed...vvvvvvvvvvvvvvvv
Erasing bank...eeeeeeeeeeeeeeee
Loading from 131.108.1.111: !!!!...
[OK - 1906676/4194240 bytes]
Verifying via checksum...
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Flash verification successful. Length = 1906676, checksum = 0x12AD
Router#
copy tftp flash:my-new-ios
System flash directory:
File Length Name/status
1 1711088 c3600-j-mz
[1711152 bytes used, 2483152 available, 4194304 total]
Address or name of remote host [171.69.1.129]?
Source file name [my-new-ios]?
dirt/images/ios-image
Accessing file 'dirt/images/ios-image' on 171.69.1.129...
Loading dirt/images/ios-image from 171.69.1.129 (via Ethernet1/0): ! [OK]
Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]
Copy 'dirt/gate/ios-image' from server
as 'my-new-ios' into Flash WITH erase? [yes/no]
yes
Erasing device... eeeeeeeeeeeeeeee ...erased
Loading dirt/images/ios-image from 171.69.1.129 (via Ethernet1/0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 1711088/4194304 bytes]
Verifying checksum... OK (0xF89A)
Flash device copy took 00:00:17 [hh:mm:ss]
env-chassis# copy tftp flash
IP address or name of remote host [131.108.13.111]?
Name of file to copy ? gs7-k
File gs7-k already exists; it will be invalidated!
Copy gs7-k from 131.108.13.111 into flash memory? [confirm]
2287500 bytes available for writing without erasure.
Erase flash before writing? [confirm]n
Loading from 131.108.1.111: !!!!...
[OK - 1906676/2287500 bytes]
Verifying via checksum...
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Flash verification successful. Length = 1902192, checksum = 0x12AD
Router# copy tftp flash
Flash: embedded flash security jumper(12V)
must be strapped to modify flash memory
Tasks
Command
configure terminal
ip rcmd remote-username username
^Z
Enter one of the following commands. Choose the command that corresponds to your router.
ip-address or name
filename
Router#
copy rcp flash:
System flash directory:
File Length Name/status
1 426 running-config
[492 bytes used, 4193812 available, 4194304 total]
Address or name of remote host [171.69.1.129]?
Source file name?
/images/new-ios
Destination file name [images/new-ios]?
my-ios
Accessing file '/images/new-ios' on 171.69.1.129...
Connected to 171.69.1.129
Loading 1711088 byte file new-ios: ! [OK]
Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]
Copy '/images/new-ios' from server
as 'my-ios' into Flash WITH erase? [yes/no]
yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Connected to 171.69.1.129
Loading 1711088 byte file new-ios: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK]
Verifying checksum... OK (0xF89A)
Flash device copy took 00:00:16 [hh:mm:ss]
Router#
copy rcp slot0:2:c3600-j-mz
PCMCIA Slot0 flash directory, partition 2:
File Length Name/status
1 1711128 c3600-i-mz.test
2 426 running-config
[1711684 bytes used, 2482620 available, 4194304 total]
Address or name of remote host [171.69.1.129]?
Source file name? [c3600-j-mz]?
/tftpboot/gate/c3600-j-mz
Accessing file '/tftpboot/gate/c3600-j-mz' on 171.69.1.129...
Connected to 171.69.1.129
Loading 3141700 byte file c3600-j-mz: ! [OK]
Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]
Copy '/tftpboot/gate/c3600-j-mz' from server
as 'c3600-j-mz' into Flash WITH erase? [yes/no]
yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Connected to 171.69.1.129
Loading 3141700 byte file c3600-j-mz: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK]
Verifying checksum... OK (0x84E)
Flash device copy took 00:00:30 [hh:mm:ss]
Router1# configure terminal
Router1(config)# ip rcmd remote-username netadmin1
^Z
Router# copy rcp flash
System flash directory:
File name/status
1 mysysim1
[2076072 bytes used, 21080 bytes available]
Address or name of remote host[UNKNOWN]? 131.108.101.101
Name of file to copy? mysysim1
Copy mysysim1 from SERVER1.CISCO.COM?[confirm]
Checking for file `mysysim1' on SERVER1.CISCO.COM...[OK]
Erase Flash device before writing?[confirm]
Are you sure?[confirm]
Erasing device...ezeeze...erased.
Connected to 131.108.101.101
Loading 2076007 byte file mysysim1: !!!!...
[OK]
Verifying checksum... (0x87FD)...[OK]
Router#
Router1# configure terminal
Router1(config)# ip rcmd remote-username netadmin1
^Z
Router1# copy rcp slot0:router-image
Task
Command
Copy a boot image from a MOP server.
copy mop flash
or
copy mop device:[partition-number:][filename] (Cisco 1600 series and Cisco 3600 series only)
Router# copy mop flash
System flash directory:
File Length Name/status
1 984 router image[deleted]
2 984 router image
[2096 bytes used, 8386512 available, 8388608 total]
Source file name? routerimage
Destination file name [routerimage]?
Erase flash device before writing? [confirm]
Flash contains files. Are you sure you want to erase? [confirm]
Copy 'routerimage' from server
as 'routerimage' into Flash WITH erase? [yes/no]yes
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Loading routerimage from 1234.5678.9abc via Ethernet0: !
[OK - 984/8388608 bytes]
Verifying checksum... OK (0x14B3)
Flash copy took 0:00:01 [hh:mm:ss]
Task
Command
show device:all
ip-address or name
filename
copy slot0: tftp
PCMCIA Slot0 flash
Partition Size Used Free Bank-Size State Copy Mode
1 4096K 1671K 2424K 4096K Read/Write Direct
2 4096K 3068K 1027K 4096K Read/Write Direct
3 4096K 1671K 2424K 4096K Read/Write Direct
4 4096K 3825K 270K 4096K Read/Write Direct
[Type ?<no> for partition directory; ? for full directory; q to abort]
Which partition? [default = 1] 1
PCMCIA Slot0 flash directory, partition 1:
File Length Name/status
1 1711088 your-ios
[1711152 bytes used, 2483152 available, 4194304 total]
Address or name of remote host [171.69.1.129]?
Source file name?
your-ios
Destination file name [your-ios]?
dirt/sysadmin/your-ios
Verifying checksum for '/tftpboot/images/ios-1' (file # 1)... OK
Copy '/tftpboot/images/ios-1' from Flash to server
as 'dirt/sysadmin/ios-2'? [yes/no]
yes
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Upload to server done
Flash device copy took 00:00:23 [hh:mm:ss]
Enter the Router#
copy slot0:2 tftp
PCMCIA Slot0 flash directory, partition 2:
File Length Name/status
1 3141700 your-ios
[3141764 bytes used, 1052540 available, 4194304 total]
Address or name of remote host [171.69.1.129]?
Source file name?
your-ios
Destination file name [your-ios]?
/sysadmin/images/server-ios
Verifying checksum for 'your-ios' (file # 1)... OK
Copy 'your-ios' from Flash to server
as '/sysadmin/images/server-ios'? [yes/no]
yes
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Upload to server done
Flash device copy took 00:00:41 [hh:mm:ss]
In this next Cisco 3600 series example, the source device type, source partition number, and source
filename are specified in the initial command line.
Router#
copy slot0:4:your-ios tftp
Address or name of remote host [171.69.1.129]?
Destination file name [dirt/images/c3640-i-mz.test]?
dirt/images/c3640-j-mz
Verifying checksum for 'dirt/images/c3640-i-mz.test' (file # 2)... OK
Copy 'dirt/images/c3640-i-mz.test' from Flash to server
as 'dirt/images/c3640-j-mz'? [yes/no]
yes
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Upload to server done
Flash device copy took 00:00:20 [hh:mm:ss]
Router# show flash all
2048K bytes of flash memory on embedded flash (in XX).
ROM socket code bytes name
0 U42 89BD 0x40000 INTEL 28F020
1 U44 89BD 0x40000 INTEL 28F020
2 U46 89BD 0x40000 INTEL 28F020
3 U48 89BD 0x40000 INTEL 28F020
4 U41 89BD 0x40000 INTEL 28F020
5 U43 89BD 0x40000 INTEL 28F020
6 U45 89BD 0x40000 INTEL 28F020
7 U47 89BD 0x40000 INTEL 28F020
security jumper(12V) is installed,
flash memory is programmable.
file offset length name
0 0x40 1204637 xk09140z
[903848/2097152 bytes free]
Router# copy flash tftp
IP address of remote host [255.255.255.255]? 101.2.13.110
filename to write on tftp host? xk09140z
writing xk09140z !!!!...
successful tftp write.
Router#
Router#show flash slot1:
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .. 1 46A11866 2036C 4 746 May 16 1995 16:24:37 test
Router#copy slot1:test tftp
IP address of remote host [255.255.255.255]? 101.2.13.110
filename to write on tftp host? [test]y
writing test !!!!...
successful tftp write.
Router#
Task
Command
configure terminal
ip rcmd remote-username username
^Z
ip-address or name
filename
Router#
copy slot1: rcp
PCMCIA Slot1 flash directory:
File Length Name/status
1 1711088 your-ios
[1711152 bytes used, 2483152 available, 4194304 total]
Address or name of remote host [171.69.1.129]?
Source file name?
your-ios
Destination file name [your-ios]?
/sysadmin/images/your-ios
Verifying checksum for 'your-ios' (file # 1)... OK
Copy 'your-ios' from Flash to server
as '/sysadmin/images/your-ios'? [yes/no]
yes
Writing /sysadmin/images/your-iosj !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Upload to server done
Flash device copy took 00:00:08 [hh:mm:ss]
router#
copy slot1:1:your-ios
Address or name of remote host [171.69.1.129]?
Destination file name [your-ios]?
/sysadmin/images/your-ios
Verifying checksum for 'your-ios' (file # 1)... OK
Copy 'your-ios' from Flash to server
as '/sysadmin/images/your-ios'? [yes/no]
yes
Writing /sysadmin/images/your-ios !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Upload to server done
Flash device copy took 00:00:08 [hh:mm:ss]
Task
Command
Specify a file.
tftp-server flash filename1
Specify a file in the first partition of Flash memory.
tftp-server flash filename1
Specify a file in the specified partition of Flash memory.
tftp-server flash [device:][partition-number:]filename
Task
Command
reload
Break
config-register 0
reset
Enter the following commands:
(Cisco 3600 series only)
>boot flash:
>boot slot0:
>boot slot0:2:
>boot slot0:3:imagename
>boot flash
Task
Command
reload
Break
boot filename [ip-address]
>boot network1
>boot imagename
Task
Command
configure terminal
Enter one of the following commands as appropriate for your router:
config-registervalue2
^Z
copy running-config startup-config3
show startup-config
reload
1 Boot flash memory is not included in Cisco 3600 series routers. Booting from internal Flash memory or a Flash memory PC card inserted in one of two PCMCIA slots is supported.
2 Refer to the "Modify the Configuration Register Boot Field" section (of the Configuration Fundamentals Configuration Guide) for more information on systems that can use this command to modify the software configuration register.
3 The write memory command also copies the running configuration to the startup configuration.
Router# configure terminal
Router (config)# boot system flash gsnew-image
Router (config)# config-register 0x102
^Z
Router# copy running-config startup-config
[ok]
Router# reload
[confirm]
%SYS-5-RELOAD: Reload requested
System Bootstrap, Version 4.6(0.16), BETA SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
RP1 processor with 16384 Kbytes of memory
F3: 1871404+45476+167028 at 0x1000
Booting gsnew-image from flash memory RRRRRRRRRRRRRRRRRRRRRRRRRR
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR [OK - 1916912/13767448 bytes]
F3: 1871404+45476+167028 at 0x1000
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134
GS Software (GS7), Version 10.2,
Copyright (c) 1986-1995 by cisco Systems, Inc.
Compiled Thu 05-Nov-94 14:16 by mlw
Task
Command
Copy a system image from a PC to Flash memory in EXEC mode.
copy xmodem flash
or
copy ymodem flash
Copy a system image from a PC to Flash memory in ROM monitor mode.
xmodem {-c | -y | -r | -x} [filename]
(Cisco 3600 series only)
or
xmodem {-y | -c | -e | -f | -r | -x } [-s baud-rate] [filename]
(Cisco 1600 series only)
Router#
copy xmodem flash
**** WARNING ****
x/ymodem is a slow transfer protocol limited to the current speed
settings of the auxiliary/console ports. The use of the auxilary
port for this download is strongly recommended.
During the course of the download no exec input/output will be
available.
---- ******* ----
Proceed? [confirm]
Use crc block checksumming? [confirm]
no
Max Retry Count [10]:
7
Perform image validation checks? [confirm]
Xmodem download using simple checksumming with image validation
Continue? [confirm]
System flash directory:
File Length Name/status
1 1738244 images/c3600-i-mz
[1738308 bytes used, 2455996 available, 4194304 total]
Destination file name ?
new-IOS-image
Erase flash device before writing? [confirm]
n
Copy '' from server
as 'new-IOS-image' into Flash WITHOUT erase? [yes/no]
yes
Ready to receive file...........
rommon >
xmodem -c new-IOS-image
Do not start the sending program yet...
File size Checksum File name
1738244 bytes (0x1a8604) 0xdd25 george-admin/c3600-i-mz
WARNING: All existing data in flash will be lost!
Invoke this application only for disaster recovery.
Do you wish to continue? y/n [n]:
yes
Ready to receive file new-IOS-image ...
Router#
configure terminal
Router-conf #
line 0
Router-conf-line #
speed xxxx
rommon 1 >
rommon 1 >
xmodem -c <filename>
Do not start the sending program yet...
File size Checksum File name
1738244 bytes (0x1a8604) 0xdd25 george-admin/c3600-i-mz
WARNING: All existing data in flash will be lost!
Invoke this application only for disaster recovery.
Do you wish to continue? y/n [n]:
yes
Ready to receive file new-IOS-image...
rommon 1 >
xmodem -s 115200 -c <filename>
Task
Command
Set the packet memory and processor memory percentages.
memory-size iomem {packet-memory-percentage}1
1 The default is 25% for packet memory and 75% for processor memory.
Warning: Attempting a memory partition that does not provide enough Processor memory for
the current image.If you write memory now, this version of software may not be able to run.
Router# show memory
Head Total(b) Used(b) Free(b) Lowest(b) Largest(b)
Processor 604DDEE0 7479584 1247232 6232352 6227568 6230244
I/O C00000 4194304 3442316 51988 751988 743636
--More--
Router#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
memory-size iomem 40
Router(config)#
exit
Router#
Router#
copy running-config startup-config
Building configuration...
[OK]
Router#
reload
rommon 1 >
b
program load complete, entry point: 0x80008000, size: 0x32ea24
Self decompressing the image : ###################################################################################################################################################################################################################################################### [OK]
Configured I/O memory percentage was too large; using 30 percent