《Cisco IOS 命令手册》中文精简版
第一章、路由器配置和文件管理1.1. 通过TFTP 来配置路由器
提问使用TFTP 来加载路由器的配置文件
回答
Router1#copy tftp://172.25.1.1/NEWCONFIG running-config
Destination filename ? <enter>
Accessing tftp://172.25.1.1/NEWCONFIG...
Loading NEWCONFIG from 172.25.1.1 (via FastEthernet0/0.1): !
24 bytes copied in 0.192 secs (125 bytes/sec)
Router1#
注释IOS12.0 版本以前使用configure network 命令,另外拷贝至路由器的配置文件应该以End 结尾,
否则会出现下面的错误提示信息:%PARSER-4-BADCFG: Unexpected end of configuration file.
1.2. 保存路由器配置到服务器
提问保存路由器当前配置文件到TFTP 服务器作为备份
回答
Freebsd% touch /tftpboot/router1-confg
Freebsd% chmod 666 /tftpboot/router1-confg
Freebsd% telnet Router1
Trying 172.25.1.5...
Connected to Router1.
Escape character is '^]'.
User Access Verification
Password: <vtypassword>
Router1>enable
Password: <enablepassword>
Router1#copy running-config tftp://172.25.1.1/router1-confg
Address or name of remote host ? <enter>
Destination filename ? <enter>
!!!
9640 bytes copied in 3.956 secs (2437 bytes/sec)
Router1#
注释确保TFTP 服务器上的目录和文件可写
**** Hidden Message *****
http://bbs.hh010.com/xwb/images/bgimg/icon_logo.png 该贴已经同步到 小乔的微博 haohaohaohaohaohaoah {:6_267:}{:6_267:} {:6_267:}不错 不错 学习 {:6_267:} {:6_267:}{:6_267:} 顶顶顶顶顶顶顶顶顶顶顶顶顶顶 必须要! 看看。。。。。。。。。。。。。 {:6_267:}{:6_266:}{:6_266:} {:6_267:}{:6_267:}{:6_267:}{:6_267:} {:6_267:} {:6_263:}顶 感谢分享。。。 多谢分享{:6_267:}