当遇到路由器配置大于NVRAM的大小时,通常的建议是将配置保存在外部的TFTP服务器上,然后在路由器上使用命令boot networkboot host来调取配置文件。

我们这里介绍一个方法可以避免借助于外部主机:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

1 配置路由器,在配置中,配置两条从网络上调用配置的命令:

ervice config

oot network tftp://10.10.10.10/host-config

oot host tftp://10.10.10.10/startup-config

10.10.10.10
是路由器LAN口的地址

2 再在配置中增加下面两条alias命令,这样路由器感觉是到网络上的外接服务器去下载配置,实际上还是在本地的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