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

来源:爱站网时间:2020-12-16编辑:网友分享
在局域网环境中有Cisco 路由器和Linux服务器的话一般我们都需要利用Linux的TFTP服务去下载Cisco router配置文件 startup-config,但是你知道如何使用Linux的tftp功能配置cisco router吗?

在局域网环境中有Cisco 路由器和Linux服务器的话一般我们都需要利用Linux的TFTP服务去下载Cisco router配置文件 startup-config,但是你知道如何使用Linux的tftp功能配置cisco router吗?
所用软硬件: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]

注释:你必须正确地设置权限,而且必须在下载前创建一个空文件,否则会提示出错。linux

上文就是小编介绍如何使用Linux的tftp功能配置cisco router的内容,简单的过程中其实暗藏玄机,还是要细心学习,喜欢还请记得收藏哦!

上一篇:如何在apachekafka中通过ksql分析twitter数据

下一篇:ubuntu下用proftpd来构建ftp服务器的方法

您可能感兴趣的文章

相关阅读

热门软件源码

最新软件源码下载