Use the tftp function of Linux to configure a cisco Router

Source: Internet
Author: User
Use the tftp function of Linux to configure information about cisco router-Linux Enterprise Application-Linux server application. The following is a detailed description. In a LAN environment, if there are Cisco routers and Linux servers. Maybe you need to use Linux
The TFTP service downloads the Cisco router configuration file startup-config, edits it on the server, and then uploads
To the vro, there are some special considerations in 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 tftp
Tftp 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 tmp
Drwxrwxrwx 5 root 2048 Jun 16 07:44 tmp
3. Create an empty file (such as isdn) in the/tmp directory and set the permission (chmod 777/tmp/isdn)
[Root @ shopu/tmp] # touch isdn
[Root @ shopu/tmp] # chmod 777 isdn
[Root @ shopu/tmp] # ls-l isdn
-Rwxrwxrwx 1 root 0 Jun 16 :24 isdn
4. Enter the vro and download the configuration file.
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]

Note: You must set the permission correctly and create an empty file before downloading. Otherwise, an error is prompted.
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.