Use the tftp feature of Linux to configure cisco

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.