日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

CISCO路由器/交换机的配置文件备份及还原

發(fā)布時間:2024/1/17 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 CISCO路由器/交换机的配置文件备份及还原 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
對路由器和交換機配置文件進行備份就像對PC機系統(tǒng)備份一樣,為了以后在系統(tǒng)被破壞時,用來對路由器和交換機的還原。 由于是實驗環(huán)境,下面就規(guī)劃一個比較簡單地拓撲,如圖: 對路由器進行基本配置 Router(config)#hostname r1 r1(config)#interface f0/0 r1(config-if)#ip address 192.168.1.1 255.255.255.0 r1(config-if)#no shutdown r1(config)#line console 0 r1(config-line)#password cisco r1(config-line)#login r1(config)#line vty 0 4 r1(config-line)#password admin r1(config-line)#login r1(config)#banner motd # Enter TEXT message. End with the character '#'. THIS IS A GATEWAY ROUTER # r1#wr 對交換機進行基本配置 sw(config)#interface vlan 1 sw(config-if)#ip address 192.168.1.2 255.255.255.0 sw(config-if)#no shutdown sw(config)#banner motd # Enter TEXT message. End with the character '#'. THIS IS A SWITCH # sw#wr 對路由器配置文件備份 r1#copy startup-config tftp Address or name of remote host []? 192.168.1.10 服務器的IP Destination filename [r1-confg]? router.conf 備份文件名 .!! [OK - 404 bytes] 404 bytes copied in 3.234 secs (0 bytes/sec) 備份成功!!! 對交換機配置文件備份 sw#copy startup-config tftp Address or name of remote host []? 192.168.1.10 服務器IP Destination filename [sw-confg]? switch.conf 備份文件名 !! [OK - 967 bytes] 967 bytes copied in 0.156 secs (6000 bytes/sec) 備份成功 注:備份配置文件名沒有文件格式限制 為了驗證備份的文件是否完整,還原備份文件到路由器和交換機上 修改路由器的描述信息 原描述信息是:THIS IS A GATEWAY ROUTER 修改描述信息為:router 從TFTP服務器上還原路由器的配置文件 r1# copy tftp running-config Address or name of remote host []? 192.168.1.10 Source filename []? router.conf Destination filename [running-config]? 直接回車 默認為running-config Loading router.conf from 192.168.1.10: ! [OK - 404 bytes] 通過查看running-config和startup-config的描述信息不同,可以判定備份的配置文件是可行的 用同樣地方法對交換機還原配置文件 sw#copy tftp running-config Address or name of remote host []? 192.168.1.10 Source filename []? switch.conf Destination filename [running-config]? 直接回車 默認為running-config Loading switch.conf from 192.168.1.10: ! [OK - 967 bytes] 967 bytes copied in 0.109 secs (8871 bytes/sec) 備份文件可以存儲在其他移動設備里,既方便又安全。

轉載于:https://blog.51cto.com/124130/343609

總結

以上是生活随笔為你收集整理的CISCO路由器/交换机的配置文件备份及还原的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。