lql007 2008-7-14 09:23
在思科路由器上保存超大的配置文件
当遇到[url=http://product.it168.com/files/0409search.shtml]路由器[/url]配置大于NVRAM的大小时,通常的建议是将配置保存在外部的TFTP[url=http://product.it168.com/files/0402search.shtml]服务器[/url]上,然后在路由器上使用命令boot network或boot host来调取配置文件。
我们这里介绍一个方法可以避免借助于外部主机:
1 配置路由器,在配置中,配置两条从[url=http://net.it168.com/]网络[/url]上调用配置的命令:
ervice config
oot network t[url]ftp://10.10.10.10/host-config[/url]
oot host t[url]ftp://10.10.10.10/startup-config[/url]
10.10.10.10是路由器LAN口的地址
2 再在配置中增加下面两条alias命令,这样路由器感觉是到网络上的外接[url=http://server.it168.com/]服务器[/url]去下载配置,实际上还是在本地的flash中下载配置:
tftp-server flash:/startup-config alias startup-config
tftp-server flash:/host-config alias host-config
3 保存配置
4 将配置文件传到flash中
配置好了以后,路由器重起。就可以从本地的TFTP 服务器上读取配置了,如果想保存running configuration:
copy running-config flash:startup-config