In network applications, file transmission is the most common application. Using the TFTP and RCP functions, files can be transmitted between computers and routers. The following describes how to use the TFTP and RCP commands to configure a CISCO router.
1. Use the TFTP service to configure a CISCO Router
The TFTP command is widely used in the parameter configuration of the CISCO router. You can use it to update the IOS version of the CISCO router, you can also save the parameter configurations of the current vro to the computer-related directory where the UNIX operating system is installed.
1,Start the tftp service on the UNIX server and specify the download directory as/tftpboot.
Take the sco unix system as an example and define it in the/etc/services file
Tftp 69/udp
Define in the/etc/inetd. conf file
Tftp tli udp wait root/usr/etc/tftpd-s/tftpboot
Start the tftp backend Service
/Etc/inetd-c
2,Create the/tftpboot directory and set the directory permissions.
Create a download directory
Mkdir/tftpboot
Change the Directory attribute to "readable and writable"
Chmod 777/tftpboot
3,Under the directory, create an empty file such as: zj-r7513-confg) and set permissions.
Enter the corresponding directory
Cd/tftpboot
Create an empty file
Touch zj-r7513-confg
Change the Directory attribute to "readable and writable"
Chmod 777 zj-r7513-confg
4,Go to the vro and download the configuration file.
Zj-r7513 # copy run tftp
Follow the on-screen prompts.
Ii. Use the RCP service to configure a CISCO Router
The rcp command can be used to conveniently transmit router configuration parameters between a UNIX host and a router.
1,Create a user such as netadmin1 on a UNIX host and enable the user to log on to the system without password verification.
2,Configure vro parameters.
Ip rcmd remote-username netadmin1
3,Enter the vro and pass the configuration parameters.
Zj-r7513 # copy run rcp
Follow the on-screen prompts.
Related Articles]
- Cisco router IOS image restoration and upgrade party
- Detailed explanation of Cisco router switch configuration commands