Sie sind auf Seite 1von 16

Managing Cisco

Devices

Network Environment Management

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-1

Backup Cisco IOS Images

Before copying the IOS from flash to the Network server, you should follow
these steps:

TFTP (Trivial File Transfer Protocol, UDP, port 69)

Make sure there is access to the network server.


Verify that server has sufficient disk space to store IOS.
Check the filename and path

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-2

Verifying Memory and Deciphering Image


Filenames
RouterX#sh flash
-#- --length-- -----date/time-----1
14951648 Feb 22 2007 21:38:56
2
1823 Dec 14 2006 08:24:54
3
4734464 Dec 14 2006 08:25:24
4
833024 Dec 14 2006 08:25:38
5
1052160 Dec 14 2006 08:25:54
6
1038 Dec 14 2006 08:26:08
7
102400 Dec 14 2006 08:26:22
8
491213 Dec 14 2006 08:26:40

path
+00:00
+00:00
+00:00
+00:00
+00:00
+00:00
+00:00
+00:00

c2800nm-ipbase-mz.124-5a.bin
sdmconfig-2811.cfg
sdm.tar
es.tar
common.tar
home.shtml
home.tar
128MB.sdf

41836544 bytes available (22179840 bytes used)

Verify that flash memory has room for the


Cisco IOS image.
2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-3

Creating a Software Image Backup

copy flash: tftp:

RouterX#copy flash tftp:


Source filename []? c2800nm-ipbase-mz.124-5a.bin
Address or name of remote host []? 10.1.1.1
Destination filename [c2800nm-ipbase-mz.124-5a.bin]
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<output omitted>
12094416 bytes copied in 98.858 secs (122341 bytes/sec)
RouterX#

Back up file will be save to TFTP Server


2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-4

Upgrading the Image from the Network

RouterX#copy tftp flash:


Address or name of remote host [10.1.1.1]?
Source filename []? c2800nm-ipbase-mz.124-5a.bin
Destination filename [c2800nm-ipbase-mz.124-5a.bin]
Accessing tftp://10.1.1.1/c2600-js-mz.122-21a.bin...
Erase flash: before copying? [confirm]
Erasing the flash filesystem will remove all files! Continue? [confirm]
Erasing device... eeeeeeeeee (output omitted) ...erased
Erase of flash: complete
Loading c2800nm-ipbase-mz.124-5a.bin from 10.1.1.1 (via Ethernet0/0): !!!!!!!!!!!!!!!
(output omited)
[OK - 12094416 bytes]
Verifying checksum... OK (0x45E2)
12094416 bytes copied in 120.465 secs (100398 bytes/sec)
RouterX
2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-5

Device Configuration Files

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-6

Cisco IOS copy Command

NVRAM
Terminal
TFTP server
Erase start
2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-7

Cisco IOS copy Command Example

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-8

copy run tftp and copy tftp run Commands


RouterX#copy running-config: tftp:
Address or name of remote host []? 10.1.1.1
Destination filename [running-config]? wgroa.cfg
.!!
1684 bytes copied in 13.300 secs (129 bytes/sec)
RouterX#copy tftp: running-config:
Address or name of remote host []? 10.1.1.1
Source filename []? wgroa.cfg
Destination filename [running-config]?
Accessing tftp://10.1.1.1/wgroa.cfg...
Loading wgroa.cfg from 10.1.1.1 (via Ethernet0): !
[OK - 1684/3072 bytes]
1684 bytes copied in 17.692 secs (99 bytes/sec)

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-9

Load IOS from TFTP Server


1. Load from TFTP Server faster than Xmodem
2. xem cac gia tr hin hnh ca cac bin mi trng ny, dung lnh set
rommon 3 > set
IP_ADDRESS=192.168.1.2
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=192.168.1.1
TFTP_SERVER=192.168.1.1
TFTP_FILE=c2600-is-mz.113-2.0.2.Q

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-10

Load IOS from TFTP Server


3. t lai cac bin ny bng cach gan gia tr trc tip trn dong lnh:
rommon 16 > IP_ADDRESS=172.16.1.2 (a chi IP cho port)
rommon 17 > IP_SUBNET_MASK=255.255.255.0 (subnet mask)
rommon 18 > DEFAULT_GATEWAY=172.16.1.1 (default gateway)
rommon 19 > TFTP_SERVER=172.16.1.1 (a chi TFTP server)
rommon 20 > TFTP_FILE=c2600-is-mz.113-2.0.2.Q (tn file cn nap)
rommon 21 > FE_PORT=1
4. Sau khi t cac bin dung lnh sync lu gia tr vo NVRAM
rommon 21 > sync

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-11

Load IOS from TFTP Server


5.

Bt u qua trinh nap bng lnh tftpdnld


rommon 22 > tftpdnld
IP_ADDRESS=172.16.1.2
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=172.16.1.1
TFTP_SERVER=172.16.1.1
TFTP_FILE=c2600-is-mz.113-2.0.2.Q
Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n: [n]: y
Receiving c2600-is-mz.113-2.0.3.Q from 10.10.3.1
!!!!!.!!!!!!!!!!!!!!!!!!!.!!
File reception completed.
Copying file c2600-is-mz.113-2.0.3.Q to flash.
Erasing flash at 0x607c0000

6.

Rommon 23 > reset

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-12

Recovery password
1. Tt v bt lai router
2. i khong 15 giy, nhn CTRL + Break
3. Vo Rommon>confreg 0x2142,
Rommon>reset
4. Copy start run, edit password
5. Thay i thanh ghi :
R(config)#config-register 0x2102
R# write memory
R#reload
* Router 2500 : Bc 3. > o/r 0x2142
>i
2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-13

Summary
As a network grows, storage of the Cisco IOS Software and
configuration files on a central server enables control of the
number and revision level of software images and configuration
files that must be maintained.
Having proper backup of the current device configuration stored
in a TFTP server can help reduce device downtime.
The Cisco IOS Software copy commands can be used to move
configurations from one component or device to another, such as
RAM, NVRAM, or a file server.

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-14

Summary (cont)
Recovery password, we are need remember two value register
are 0x2102 and 0x2142 (inorgor startup-config in NVRAM, enter
setup mode)
Config values for load IOS from TFTP Server
IP_ADDRESS: The IP address for this router
IP_SUBNET_MASK: The subnet mask for this router
DEFAULT_GATEWAY: The default gateway for this router
TFTP_SERVER: The IP address of the server to path from
TFTP_FILE: The filename to path
Using tftpdnld commmand to load IOS from TFTP server

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-15

2007 Cisco Systems, Inc. All rights reserved.

ICND1 v1.06-16

Das könnte Ihnen auch gefallen