My FAQ,最新最全的IT技术FAQ
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 未整理篇 | 技术讨论
  当前位置: > 操作系统 > Linux > Linux综合
如何使用Linux的tftp功能上下载cisco router的配置
作者:未知 时间:2005-09-13 22:05 出处:Blog.ChinaUnix.net 责编:My FAQ
              摘要:如何使用Linux的tftp功能上下载cisco router的配置
如何使用Linux的tftp功能上下载cisco router的配置

如何使用Linux的tftp功能上下载cisco router的配置

作者:吴阿亭 [北京Linux俱乐部]

在局域网环境中,如果有Cisco 路由器和Linux服务器。也许你需要利用Linux的TFTP服务去下载Cisco router配置文件 startup-config,在服务器上编辑后再上载到路由器,在实现中有一些特别注意的地方。

所用软硬件:Redhat Linux 5.2 ,Cisco 2501 路由器

1. 开启 Redhat Linux 服务器上的tftp服务,并指明下载目录/tmp。

[jephe@sh89 /etc]$ more inetd.conf | grep tftp
tftp dgram udp wait root /usr/sbin/tcpd in.tftpd /tmp
然后用命令killall -HUP inetd启动它。

2. 设定/tmp权限,让其他人有写权限(chmod 777 /tmp)。
[jephe@sh89 /]$ ls -l | grep tmp
drwxrwxrwx 5 root root 2048 Jun 16 07:44 tmp


3. 在/tmp目录建立一个空文件(如isdn),并设定权限(chmod 777 /tmp/isdn)
[root@shopu /tmp]# touch isdn
[root@shopu /tmp]# chmod 777 isdn
[root@shopu /tmp]# ls -l isdn
-rwxrwxrwx 1 root root 0 Jun 16 11:24 isdn

4. 进入路由器,下载配置文件。
Shanghai-ISDN#copy run tftp
Remote host [192.168.13.2]?
Name of configuration file to write [shanghai-isdn-confg]? isdn
Write file isdn on host 192.168.13.2? [confirm]
Building configuration...

Writing isdn !! [OK]

 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 myfaq.com.cn All rights reserved. www.myfaq.com.cn 版权所有