startup-config、running-config备份试验

  • A+
所属分类:Route

阅读本章前,请先阅读《startup-config、running-config文件备份还原》,图片说明非常重要。
Router>
Router>enable
Router#conf t
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#logging synchronous
Router(config)#interface s1/0
Router(config-if)#ip add 10.10.10.2 255.0.0.0
Router(config-if)#no sh
Router(config-if)#interface fastethernet 0/0
Router(config-if)#ip add 192.168.0.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#interface f3/0
Router(config-if)#ip add 172.28.12.205 255.255.248.0
Router(config-if)#no sh
Router#copy running-config startup-config
Router#copy running-config tftp:
Address or name of remote host []? 172.28.12.204
Destination filename [router-confg]? R1_running-config
.!!
1273 bytes copied in 5.996 secs (212 bytes/sec)

R1_running-config的配置为:

Serial 1/0 :10.10.10.2/8
Fastethernet 0/0:192.168.0.1/24
Fastethernet 3/0:172.28.12.205/16

Router(config)#interface f0/0
Router(config-if)#ip add 100.100.100.100 255.255.0.0
Router(config-if)#router rip
Router(config-router)#net 100.100.0.0
Router#copy running-config startup-config

配置后running-config为:

Serial 1/0:10.10.10.2/8
Fastethernet 0/0:100.100.100.100/16
Fastethernet 3/0:172.28.12.205/16
Router:RIP

Router#copy tftp: running-config
Address or name of remote host []? 172.28.12.204
Source filename []? R1_running-config
Destination filename [running-config]?
Accessing tftp://172.28.12.204/R1_running-config...
[OK - 1273 bytes]

复制tftp:到running-config的结果:

Serial 1/0 :10.10.10.2/8
Fastethernet 0/0:192.168.0.1/24
Fastethernet 3/0:172.28.12.205/16
Router:RIP

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:2   其中:访客  0   博主  0   引用   2

    来自外部的引用: 2

    • startup-config、running-config文件备份还原 – Byrd's Weblog
    • 思科路由器密码破解 – Byrd's Weblog