In a LAN environment, if there are Cisco routers and Linux servers. You may need to use the Linux TFTP service to download the Cisco router configuration file startup-config, edit it on the server, and upload it to the vro. There are some special considerations in the implementation.
Software and Hardware used: Redhat Linux 5.2, Cisco 2501 Router
1. Enable the tftp service on the Redhat Linux server and specify the download directory/tmp.
[jephe@sh89 /etc]$ more inetd.conf | grep tftptftp dgram udp wait root /usr/sbin/tcpd in.tftpd /tmp |
Run the command killall-HUP inetd to start it.
2. Set the/tmp permission so that others have the write permission chmod 777/tmp ).
[jephe@sh89 /]$ ls -l | grep tmpdrwxrwxrwx 5 root root 2048 Jun 16 07:44 tmp |
3. Create an empty file (such as isdn) in the/tmp directory and set the chmod 777/tmp/isdn permission)
[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. Enter the vro and download the configuration file.
Shanghai-ISDN#copy run tftpRemote host [192.168.13.2]?Name of configuration file to write [shanghai-isdn-confg]? isdnWrite file isdn on host 192.168.13.2? [confirm]Building configuration...Writing isdn !! [OK] |
Note: You must set the permission correctly and create an empty file before downloading. Otherwise, an error is prompted.
Related Articles]
- Network Management dictionary: Linux terminology-TFTP
- Configuration file of the router backed up by the TFTP Server
- Configure DHCP, Todd, and TFTP service in Cisco cmts: integrated configuration