WCTA网络工程知识网 -- 网络技术基础

Cisco IOS Cookbook 中文精简版第一章路由器配置和文件管理(1)

相关标签:

  第一章 N>路由器配置和文件管理

  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. 使用远端配置文件启动路由器

相关文章:

<< PRE NEXT>>

好文随机推荐: