Cisco ios 备份、升级、灾难恢复

实验环境:
Cisco 2950
Cisco 2950 vlan1 ip:192.168.1.200/24  tftp server:192.168.1.100/24
 
Cisco 2950 上配置:
 
 
C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950T-24 starting...
Base ethernet MAC Address: 00:12:d9:05:b3:80
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 86 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 6510080
flashfs[0]: Bytes available: 1231360
flashfs[0]: flashfs fsck took 8 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
Loading "flash:/c2950-i6q 4l 2-mz.121-22.EA1.bin"...###########################################################################################################################################################################################
 
File "flash:/c2950-i6q 4l 2-mz.121-22.EA1.bin" uncompressed and installed, entry point: 0x80010000
executing...
 
              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-1706
 
 
 
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q 4L 2-M), Version 12.1(22)EA1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 12-Jul-04 08:18 by madison
Image text-base: 0x80010000, data-base: 0x 8055C 000
 
 
Initializing flashfs...
flashfs[1]: 86 files, 3 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 7741440
flashfs[1]: Bytes used: 6510080
flashfs[1]: Bytes available: 1231360
flashfs[1]: flashfs fsck took 8 seconds.
flashfs[1]: Initialization complete.
Done initializing flashfs.
POST: System Board Test : Passed
POST: Ethernet Controller Test : Passed
ASIC Initialization Passed
 
POST: FRONT-END LOOPBACK TEST : Passed
cisco WS-C2950T-24 (RC32300) processor (revision Q0) with 20873K bytes of memory.
Processor board ID FOC0848Z15Y
Last reset from system-reset
Running Enhanced Image
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
 
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:12:D9:05:B3:80
Motherboard assembly number: 73-6114-10
Power supply part number: 34-0965-01
Motherboard serial number: FOC08480XQL
Power supply serial number: DAB0846LEPZ
Model revision number: Q0
Motherboard revision number: A0
Model number: WS-C2950T-24
System serial number: FOC0848Z15Y
 
 
Press RETURN to get started!
 
 
00:00:16: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
00:00:18: %SYS-5-CONFIG_I: Configured from memory by console
00:00:18: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q 4L 2-M), Version 12.1(22)EA1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 12-Jul-04 08:18 by madison
00:00:18: %SNMP-5-COLDSTART: SNMP agent on host Switch is undergoing a cold start
00:00:22: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
00:00:22: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up
00:00:23: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
00:00:23: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
Switch>en
00:00:54: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch#show flash
 
Directory of flash:/
 
    2  -rwx         109  Mar 01 1993 00:01:48 +00:00  info
    3  -rwx         270  Jan 01 1970 00:01:39 +00:00  env_vars
    4  -rwx           5  Mar 01 1993 00:11:12 +00:00  private-config.text
    6  -rwx        1175  Mar 01 1993 00:11:12 +00:00  config.text
    7  -rwx     3081999  Mar 01 1993 00:03:30 +00: 00   c 2950-i6q 4l 2-mz.121-22.EA1.bin
    8  drwx        2688  Mar 01 1993 00:05:31 +00:00  html
   90  -rwx         109  Mar 01 1993 00:05:33 +00:00  info.ver
 
7741440 bytes total (1231360 bytes free)
Switch#copy flash tftp
Source filename []? c2950-i6q 4l 2-mz.121-22.EA1.bin
Address or name of remote host []? 192.168.1.100
Destination filename [c2950-i6q 4l 2-mz.121-22.EA1.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3081999 bytes copied in 32.744 secs (94124 bytes/sec)
Switch#
 
Switch#show flash
 
Directory of flash:/
 
    2  -rwx         109  Mar 01 1993 00:01:48 +00:00  info
    3  -rwx         270  Jan 01 1970 00:01:39 +00:00  env_vars
    4  -rwx           5  Mar 01 1993 00:11:12 +00:00  private-config.text
    6  -rwx        1175  Mar 01 1993 00:11:12 +00:00  config.text
    7  -rwx     3081999  Mar 01 1993 00:03:30 +00: 00   c 2950-i6q 4l 2-mz.121-22.EA1.bin
    8  drwx        2688  Mar 01 1993 00:05:31 +00:00  html
   90  -rwx         109  Mar 01 1993 00:05:33 +00:00  info.ver
 
7741440 bytes total (1231360 bytes free)
Switch# del flash:c2950-i6q 4l 2-mz.121-22.EA1.bin
Delete filename [c2950-i6q 4l 2-mz.121-22.EA1.bin]?
Delete flash:c2950-i6q 4l 2-mz.121-22.EA1.bin? [confirm]
Switch#copy tftp flash
Address or name of remote host [192.168.1.100]?                                 
Source filename [c2950-i6k 2l 2q4-mz.121-22.EA12.bin]?
Destination filename [c2950-i6k 2l 2q4-mz.121-22.EA12.bin]?
Accessing tftp://192.168.1.100/c2950-i6k 2l 2q4-mz.121-22.EA12.bin...
Loading c2950-i6k 2l 2q4-mz.121-22.EA12.bin from 192.168.1.100 (via Vlan1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 3722038 bytes]
 
3722038 bytes copied in 97.576 secs (38145 bytes/sec)
Switch#reload
Proceed with reload? [confirm]
 
00:33:36: %SYS-5-RELOAD: Reload requested
 
C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950T-24 starting...
Base ethernet MAC Address: 00:12:d9:05:b3:80
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 86 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 7150080
flashfs[0]: Bytes available: 591360
flashfs[0]: flashfs fsck took 10 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
Loading "flash:/c2950-i6k 2l 2q4-mz.121-22.EA12.bin"...#######################################################################################################################################################################################################################################
 
File "flash:/c2950-i6k 2l 2q4-mz.121-22.EA12.bin" uncompressed and installed, entry point: 0x80010000
executing...
 
              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-1706
 
 
 
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6K 2L 2Q4-M), Version 12.1(22)EA12, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2008 by cisco Systems, Inc.
Compiled Tue 08-Jul-08 00:03 by amvarma
Image text-base: 0x80010000, data-base: 0x80680000
 
 
Initializing flashfs...
flashfs[1]: 86 files, 3 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 7741440
flashfs[1]: Bytes used: 7150080
flashfs[1]: Bytes available: 591360
flashfs[1]: flashfs fsck took 10 seconds.
flashfs[1]: Initialization complete.
Done initializing flashfs.
POST: System Board Test : Passed
POST: Ethernet Controller Test : Passed
ASIC Initialization Passed
 
POST: FRONT-END LOOPBACK TEST : Passed
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
 
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
 
If you require further assistance please contact us by sending email to
 
cisco WS-C2950T-24 (RC32300) processor (revision Q0) with 19912K bytes of memory.
Processor board ID FOC0848Z15Y
Last reset from system-reset
Running Enhanced Image
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
 
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:12:D9:05:B3:80
Motherboard assembly number: 73-6114-10
Power supply part number: 34-0965-01
Motherboard serial number: FOC08480XQL
Power supply serial number: DAB0846LEPZ
Model revision number: Q0
Motherboard revision number: A0
Model number: WS-C2950T-24
System serial number: FOC0848Z15Y
 
 
Press RETURN to get started!
 
 
00:00:18: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
00:00:21: %SYS-5-CONFIG_I: Configured from memory by console
00:00:21: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6K 2L 2Q4-M), Version 12.1(22)EA12, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2008 by cisco Systems, Inc.
Compiled Tue 08-Jul-08 00:03 by amvarma
00:00:21: %SNMP-5-COLDSTART: SNMP agent on host Switch is undergoing a cold start
00:00:25: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
00:00:25: %LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to up
00:00:27: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
00:00:27: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
00:00:57: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch>show ver
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6K 2L 2Q4-M), Version 12.1(22)EA12, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2008 by cisco Systems, Inc.
Compiled Tue 08-Jul-08 00:03 by amvarma
Image text-base: 0x80010000, data-base: 0x80680000
 
ROM: Bootstrap program is C2950 boot loader
 
Switch uptime is 1 minute
System returned to ROM by power-on
System image file is "flash:/c2950-i6k 2l 2q4-mz.121-22.EA12.bin"
 
 
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
 
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
 
If you require further assistance please contact us by sending email to
 
cisco WS-C2950T-24 (RC32300) processor (revision Q0) with 19912K bytes of memory.
Processor board ID FOC0848Z15Y
Last reset from system-reset
Running Enhanced Image
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
 
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:12:D9:05:B3:80
Motherboard assembly number: 73-6114-10
Power supply part number: 34-0965-01
Motherboard serial number: FOC08480XQL
Power supply serial number: DAB0846LEPZ
Model revision number: Q0
Motherboard revision number: A0
Model number: WS-C2950T-24
System serial number: FOC0848Z15Y
Configuration register is 0xF
 
 
 
 
C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950T-24 starting...
Base ethernet MAC Address: 00:12:d9:05:b3:80
Xmodem file system is available.
 
The system has been interrupted prior to initializing the
flash filesystem.  The following commands will initialize
the flash filesystem, and finish loading the operating
system software:
 
    flash_init
    load_helper
    boot
 
switch: flash_init
Initializing Flash...
flashfs[0]: 85 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 3427328
flashfs[0]: Bytes available: 4314112
flashfs[0]: flashfs fsck took 8 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch: load_helper
switch: copy xmodem: flash:c2950-i6q 4l 2-mz.121-22.EA1.bin
Begin the Xmodem or Xmodem-1K transfer now...
CCCCCCCCCC......................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
...........................................
File "xmodem:" successfully copied to "flash:c2950-i6q 4l 2-mz.121-22.EA1.bin"
switch: boot
Loading "flash:/c2950-i6q 4l 2-mz.121-22.EA1.bin"...##############################
################################################################################
#############################################################################
 
File "flash:/c2950-i6q 4l 2-mz.121-22.EA1.bin" uncompressed and installed, entry p
oint: 0x80010000
executing...
 
              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-1706
 
 
 
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q 4L 2-M), Version 12.1(22)EA1, RELEASE SOFTWARE
(fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 12-Jul-04 08:18 by madison
Image text-base: 0x80010000, data-base: 0x 8055C 000
 
 
Initializing flashfs...
flashfs[1]: 86 files, 3 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 7741440
flashfs[1]: Bytes used: 6510080
flashfs[1]: Bytes available: 1231360
flashfs[1]: flashfs fsck took 9 seconds.
flashfs[1]: Initialization complete.
Done initializing flashfs.
POST: System Board Test : Passed
POST: Ethernet Controller Test : Passed
ASIC Initialization Passed
 
POST: FRONT-END LOOPBACK TEST : Passed
cisco WS-C2950T-24 (RC32300) processor (revision Q0) with 20873K bytes of memory
.
Processor board ID FOC0848Z15Y
Last reset from system-reset
Running Enhanced Image
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)
 
32K bytes of flash-simulated non-volatile configuration memory.
32K bytes of flash-simulated non-volatile configuration memory.
Motherboard assembly number: 73-6114-10
Power supply part number: 34-0965-01
Motherboard serial number: FOC08480XQL
Power supply serial number: DAB0846LEPZ
Model revision number: Q0
Motherboard revision number: A0
Model number: WS-C2950T-24
System serial number: FOC0848Z15Y
 
 
Press RETURN to get started!
 
 
00:00:16: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
00:00:18: %SYS-5-CONFIG_I: Configured from memory by console
00:00:18: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q 4L 2-M), Version 12.1(22)EA1, RELEASE SOFTWARE
(fc1)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 12-Jul-04 08:18 by madison
00:00:18: %SNMP-5-COLDSTART: SNMP agent on host Switch is undergoing a cold star
t
Switch>
 
 
 
注意: ios 灾难恢复时,按住交换机面板左侧的 mode 键,给交换机加电,初始化 flash ,系统提示不断出现 C 这个字母就可以开始传文件了,在协议选项中选择 Xmodem 或者 Xmodem-1K 协议,然后选择 IOS 文件,开始传送,传送得很慢,大概传送 60 分钟左右,文件传送结束后,启用新的 IOS 系统即可。

你可能感兴趣的:(ios,备份,升级,Cisco,灾难恢复)