2019-12-2企业实训—路由器配置备份和ios的备份
实验二、路由器配置和ios的备份
- 实验拓扑图
- 实验代码
R1#copy flash: tftp: //备份ios配置
Source filename []? c2800nm-advipservicesk9-mz.124-15.T1.bin //IOS的名字
Address or name of remote host []? 192.168.1.100 //服务器IP地址
Destination filename [c2800nm-advipservicesk9-mz.124-15.T1.bin]? 2019-12-2-R1-IOS //备份文件名
R1#copy startup-config tftp: //备份startup-config
Address or name of remote host []? 192.168.1.100 //服务器ip地
Destination filename [R1-confg]? 2019-12-2-R1-CFG //备份的名字
R1#erase startup-config //删除启动配置
R1#delete flash: //删除ios
Delete filename []?c2800nm-advipservicesk9-mz.124-15.T1.bin //IOS的名字
Delete flash:/c2800nm-advipservicesk9-mz.124-15.T1.bin? [confirm]y
rommon 5 > IP_ADDRESS=192.168.1.1 //监控模式下的路由器的ip地址
rommon 6 > IP_SUBNET_MASK=255.255.255.0 //子网掩码
rommon 7 > DEFAULT_GATEWAY=192.168.1.254 //网关
rommon 8 > TFTP_SERVER=192.168.1.100 //tftp对端IP地址
rommon 9 > TFTP_FILE=2019-12-2-R1-IOS //tftp要下载的文件名
rommon 10 > tftpdnld //tftp开始下载文件
Router(config)#int fastEthernet 0/0 //重新设置IP地址
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router#copy tftp: running-config //复制服务器上的备份文件Address or name of remote host []? 192.168.1.100 //目标IP地址
Source filename []? 2019-12-2-R1-CFG //下载的文件名
Destination filename [running-config]?
- 实验截图
(1)ping通,修改路由器名
(2)备份路由器ios
(3)保存成功
(4)保存路由器配置
(5)备份启动配置
(6)删除启动配置
(7)删除ios文件
(8)保存
(9)查看服务器上备份的文件
(10)控制模式下tftp需要设置的东西
(11)下载备份的ios
(12)重启,设置路由器IP地址
(13)复制服务器的2019-12-2-R1-CFG文件,并且自动更新,文件名自动由ROUTER变为R1
(14)保存