- 论坛徽章:
- 0
|
CISCO路由器与交换机的TFTP备份问题
希望下面的资料对你有用
Backing up your router IOS
1. Log in to Router and go into privileged mode by typing enable (or en).
2. Make sure you can connect to the TFTP host
Type ping 192.168.10.254
Router#ping 192.168.10.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.254, timeout is 2 seconds:
!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/41/68 ms
3. Type show flash to see the contents of flash memory. Since there is only one file in flash, you see the
same file as the show version command displays.
4. Type show version at the router privilege mode prompt to get the name of the IOS currently running on
the router. Notice the file name is c2500-d-l_113-5.bin.
Router#show version
ROM: System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
BOOTFLASH: 3000 Bootstrap Software (IGS-RXBOOT), Version 10.2(8a), RELEASE SOFTW
ARE (fc1)
Router uptime is 20 minutes
System restarted by power-on
System image file is "flash:c2500-d-l_113-5.bin", booted via flash
Processor board ID 03240944, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
1 Serial network interface(s)
32K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash (Read ONLY)
Configuration register is 0x2102
5. Once you know you have good Ethernet connectivity to the TFTP host and you also know the IOS
file name, backup your IOS by typing copy flash tftp. This command tells the router to
copy the contents of flash (this is where the IOS is stored by default) to a TFTP host.
Router#copy flash tftp
System flash directory:
File Length Name/status
1 6078548 c2500-d-l_113-5.bin
[6078612 bytes used, 2309996 available, 8388608 total]
Address or name of remote host [255.255.255.255]? type 192.168.10.254
Source file name? type c2500-d-l_113-5.bin
Destination file name [c2500-d-l_113-5.bin]? press enter
Verifying checksum for 'c2500-d-l_113-5.bin' (file # 1)... OK
Copy 'c2500-d-l_113-5.bin' from Flash to server
as 'c2500-d-l_113-5.bin'? [yes/no] type y
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!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 0:01:53 [hh]
That's it! The file is now stored in the TFTP hosts default directory.
Backing up the router configuration
1. From Router, ping the TFTP host to make sure you have IP connectivity:
Router#ping 192.168.10.254
2. From Router, type copy run tftp:
Router#copy run tftp
Remote host [ ]?
3. Type the ip address of the tftp host (192.168.10.254):
Remote host [ ] ? 192.168.10.254
Name of configuration file to write [Router-confg)? Press enter to accept the default name
Write file Router-confg on host 192.168.10.254? [confirm] Press enter
. |
|