tftp刷路由器 linux,路由器TFTP配置的四个步骤

编程入门 行业动态 更新时间:2024-10-24 10:23:04

TFTP服务器的使用也是非常广泛的,那么对于路由器TFTP配置的具体操作,我们在文中进行一下具体讲解。在局域网环境中,如果有Cisco 路由器和Linux服务器。也许你需要利用Linux的TFTP服务去下载Cisco router配置文件 startup-config,在服务器上编辑后再上载到路由器,在实现中有一些特别注意的地方。

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

路由器TFTP配置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启动它。

路由器TFTP配置2. 设定/tmp权限,让其他人有写权限(chmod 777 /tmp)。

[jephe@sh89 /]$ ls -l | grep tmp

drwxrwxrwx 5 root root 2048 Jun 16 07:44 tmp

路由器TFTP配置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

路由器TFTP配置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]

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

【责任编辑:佟媛微 TEL:(010)68476606】

点赞 0

更多推荐

tftp刷路由器 linux,路由器TFTP配置的四个步骤

本文发布于:2023-06-14 02:40:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1428609.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路由器   步骤   tftp   TFTP   linux

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!