设计 工具 系统 开发 安全 办公 陶吧 IT教育 Vista频道|Google Chrome 参与WS-AT全局事务
您现在的位置: 天极网 > 软件频道 > IT教育频道 > 思科CCNA辅导:路由器配置和文件管理
全文

思科CCNA辅导:路由器配置和文件管理

2007-03-12 15:08作者:出处:天极yesky责任编辑:罗可龙

  路由器配置和文件管理

  1.1. 通过TFTP来配置路由器

  提问 使用TFTP来加载路由器的配置文件

  回答

  Router1#copy tftp://172.25.1.1/NEWCONFIG running-config

  Destination filename [running-config]?

  Accessing tftp://172.25.1.1/NEWCONFIG...

  Loading NEWCONFIG from 172.25.1.1 (via FastEthernet0/0.1): !

  [OK - 24 bytes]

  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:

  Router1>enable

  Password:

  Router1#copy running-config tftp://172.25.1.1/router1-confg

  Address or name of remote host [172.25.1.1]?

  Destination filename [router1-confg]?

  !!!

  9640 bytes copied in 3.956 secs (2437 bytes/sec)

  Router1#

  注释 确保TFTP服务器上的目录和文件可写

  1.3. 使用远端配置文件启动路由器

  提问 使用另外的配置文件来启动路由器

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#service config

  Router1(config)#boot network tftp Network-auto 172.25.1.1

  Router1(config)#boot host tftp Router8-auto 172.25.1.1

  Router1(config)#end

  Router1#

  注释 service config缺省是关闭的,如果打开缺省会去查找的文件名为network-config, cisconet.cfg, router1-confg, router1.cfg等

  1.4. 保存大于NVRAM大小的配置文件

  提问 配置文件过大,超过了可用的NVRAM大小

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#service compress-config

  Router1(config)#end

  Router1#

  注释 可以使用show startup-config来验证

  Router1#show startup-config

  Using 5068 out of 29688 bytes, uncompressed size = 9969 bytes

  Uncompressed configuration from 5068 bytes to 9969 bytes

  

共5页。 1 2 3 4 5 下一页 末页
相关搜索:
关注此文读者还看过
文章排行
本周
本月
最近更新
关于我们|About us|网站律师|天极服务|电子杂志|RSS订阅|加入我们|网站地图
TMG
Copyright (C) 1999-2009 Chinabyte.com, All Rights Reserved 版权所有 天极网络
商务联系、网站内容、合作建议:010-82657868
版权声明 在线提交意见反馈 渝ICP证B2-20030003号
经营性网站备案信息 网警备案 中国网站排名
天极传媒:天极网|比特网|IT专家网|IT商网|52PK游戏网|IT分众