提问:如何使用TFTP来加载路由器的配置文件
回答:
Router1#copy tftp://172.25.1.1/CONFIGNAMErunning-config
注释:
1.3. 使用远端配置文件启动路由器提问:使用一个另外的配置文件来启动路由器
回答:
Router1(config)#service config
Router1(config)#boot network tftpCONFIGNAME1172.25.1.1
Router1(config)#boot host tftpCONFIGNAME2172.25.1.1
注释:
1.4. 保存大于NVRAM大小的配置文件提问:配置文件过大,超过了可用的NVRAM大小
回答:
Router1(config)#service compress-config
注释:
1.6. 加载一个新的IOS镜像提问:升级路由器的IOS
回答:
Router1#copy tftp://172.25.1.1/c2600-ik9o3s-mz.122-12a.bin flash:
Destination filename [c2600-ik9o3s-mz.122-12a.bin]? <enter>
Accessing tftp://172.25.1.1/c2600-ik9o3s-mz.122-12a.bin...
Erase flash: before copying? [confirm] <enter>
Erasing the flash filesystem will remove all files! Continue? [confirm] <enter>
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased
Erase of flash: complete
Loading c2600-ik9o3s-mz.122-12a.bin from 172.25.1.1 (via FastEthernet0/0.1):!!!!!!!!!!!!!!
[OK - 11135588 bytes]
Verifying checksum... OK (0xE643)
11135588 bytes copied in 82.236 secs (135410 bytes/sec)
Router1# reload
Proceed with reload? [confirm] <enter>
注释:
1.7. 以另一个IOS镜像文件启动提问:使用另外的IOS镜像启动
回答:
Router1(config)#boot system flash:c3620-jk9o3s-mz.122-7a.bin
Router1(config)#boot system flash:c3620-jos56i-l.120-11.bin
Router1(config)#boot system slot0:c3620-ik9s-mz.122-13.bin
Router1(config)#boot system rom
注释:
1.8. 通过网络启动提问:IOS太大本地Flash无法保存,使用保存在网络上的IOS启动
回答:
Router1(config)#boot system tftp c2500-io-l.122-7a.bin 172.25.1.1
Router1(config)#boot system flash
注释:
1.14. 在路由器上使用FTP提问:在路由器上使用FTP来进行文件的下载
回答:
Router1(config)#ip ftp usernameusername
Router1(config)#ip ftp passwordpassword
Router1#copy ftp: running-config
Address or name of remote host [172.25.1.1]? 172.25.1.1
Source filename []? test
Destination filename [running-config]? <enter>
Accessing ftp://172.25.1.1/test...
Loading /test
[OK - 24/4096 bytes]
24 bytes copied in 0.276 secs (87 bytes/sec)
注释:
以上都是使用perl脚本来进行批量化操作,暂时现不修改了
1.19. 热重启提问:重启路由器而对业务产生最小的影响
回答:
Router1(config)#warm-reboot
注释:
1.20. 热升级提问:升级路由器IOS而对业务影响最小
回答:
Router1(config)#warm-reboot
Router1#reload warm file slot0:c3745-ipbasek9-mz.124-7.bin
注释:
1.21. 配置存档特性提问:自动对路由器配置进行存档
回答:
Router1(config)#archive
Router1(config-archive)#path slot0:/configs/$h
Router1(config-archive)#time-period 1440 //每1440分钟保存一次,若不设置则不自动保存
Router1(config-archive)#write-memory //启用存档特性
Router1(config-archive)#end
Router1#
注释:
1.22. 路由器配置锁定提问:防止多个用户同时对路由器配置文件进行修改
回答:
自动进行配置锁定
Router1(config)#configuration mode exclusive auto
按需进行配置锁定
Router1(config)#configuration mode exclusive manual
注释:
本文出自 “陈胜纲的博客” 博客,,请务必保留此出处