Résumé du contenu de la page N° 1
Configuring Additional File Transfer Functions
This chapter describes how to configure a router as a server, change MOP parameters, configure the
router to forward extended BOOTP requests over asynchronous interfaces, and configure rcp, rsh, and
FTP.
For a complete description of the file transfer function commands mentioned in this chapter, refer to the
“Additional File Transfer Functions Commands” chapter in the Configuration Fundamentals Command
Reference. To locate documentation of ot
Résumé du contenu de la page N° 2
Configuring Additional File Transfer Functions Configuring a Router as a Server In addition, you can configure the Cisco IOS software to forward extended BOOTP requests over asynchronous interfaces. Refer to the “Configuring SLIP and PPP” chapter of the Dial Solutions Configuration Guide for more information. Configuring a Router as a TFTP Server As a TFTP server host, the router responds to TFTP Read Request messages by sending a copy of the system image contained in ROM or one of the sys
Résumé du contenu de la page N° 3
Configuring Additional File Transfer Functions Configuring a Router as a Server Caution For full functionality, the software image sent to the client must be the same type as the ROM software installed on the client router. For example, if the server has X.25 software, and the client does not have X.25 software in ROM, the client will not have X.25 capabilities after booting from the server’s image in Flash memory. Configuring the Server To specify TFTP server operation, use the following c
Résumé du contenu de la page N° 4
Configuring Additional File Transfer Functions Configuring a Router as a Server The following example a router to send a copy of the file gs7-k.9.17 in Flash memory in response to a TFTP Read Request. The client router must reside on a network specified by access list 1. Thus, in the example, the any clients on network 172.16.101.0 are permitted access to the file. Server# configure terminal Enter configuration commands, one per line. End with CTRL/Z Server(config)# tftp-server flash gs7-k.
Résumé du contenu de la page N° 5
Configuring Additional File Transfer Functions Configuring a Router as a Server The following example shows how to configure a router to use a TFTP server: Client# configure terminal Enter configuration commands, one per line. End with CTRL/Z Client(config)# no boot system Client(config)# boot system gs7-k.9.17 172.31.111.111 Client(config)# boot system rom Client(config)# config-register 0x010F Client(config)# end Client# copy running-config startup-config [ok] Client# reload In this example,
Résumé du contenu de la page N° 6
Configuring Additional File Transfer Functions Configuring a Router as a Server Configuring a Router as a RARP Server Reverse Address Resolution Protocol (RARP) is a protocol in the TCP/IP stack that provides a method for finding IP addresses based on MAC (physical) addresses. This functionality is the reverse of broadcasting Address Resolution Protocols (ARPs), through which a host can dynamically discover the MAC-layer address corresponding to a particular IP network-layer address. RARP m
Résumé du contenu de la page N° 7
Configuring Additional File Transfer Functions Specifying Asynchronous Interface Extended BOOTP Requests Router A has the following configuration: ! Allow the router to forward broadcast portmapper requests ip forward-protocol udp 111 ! Provide the router with the IP address of the diskless sun arp 172.30.2.5 0800.2002.ff5b arpa interface ethernet 0 ! Configure the router to act as a RARP server, using the Sun Server's IP ! address in the RARP response packet. ip rarp-server 172.30.3.100 ! Por
Résumé du contenu de la page N° 8
Configuring Additional File Transfer Functions Configuring a Router to Use rsh and rcp Configuring a Router to Use rsh and rcp Remote shell (rsh) gives users the ability to execute commands remotely. Remote copy (rcp) allows users to copy files to and from a file system residing on a remote host or server on the network. Cisco's implementation of rsh and rcp interoperates with the industry standard implementations. Note Cisco uses the abbreviation RCMD (Remote Command) to indicate both rsh
Résumé du contenu de la page N° 9
Configuring Additional File Transfer Functions Configuring a Router to Use rsh and rcp This feature is enabled by default. You can disable the DNS check for RCMD (rsh and rcp) access using the the following command in global configuration mode: Command Purpose no ip rcmd domain-lookup Disables Domain Name Service (DNS) lookup for rsh and rcp communications. Configuring a Router to Use rsh You can use rsh to execute commands on remote systems to which you have access. When you issue the rsh
Résumé du contenu de la page N° 10
Configuring Additional File Transfer Functions Configuring a Router to Use rsh and rcp Note When support of incoming rsh commands is disabled, you can still issue an rsh command to be executed on other routers that support the remote shell protocol and on UNIX hosts on the network. The following example shows how to add two entries for remote users to the authentication database, and enable a router to support rsh commands from remote users: ip rcmd remote-host Router1 172.16.101.101 rmtne
Résumé du contenu de la page N° 11
Configuring Additional File Transfer Functions Configuring a Router to Use rsh and rcp The following example executes the “ls -a” command in the home directory of the user sharon on mysys.cisco.com using rsh: Router# enable Router# rsh mysys.cisco.com /user sharon ls -a . .. .alias .cshrc .emacs .exrc .history .login .mailrc .newsrc .oldnewsrc .rhosts .twmrc .xsession jazz Router# Configuring a Router to Use rcp The rcp copy commands rely on the rsh server (or daemon) on the remote system. To
Résumé du contenu de la page N° 12
Configuring Additional File Transfer Functions Configuring a Router to Use rsh and rcp Note When support for incoming rcp requests is disabled, you can still use the rcp commands to copy images from remote servers. The support for incoming rcp requests is distinct from its ability to handle outgoing rcp requests. The following example shows how to add two entries for remote users to the authentication database and then enable the software to support remote copy requests from remote users. T
Résumé du contenu de la page N° 13
Configuring Additional File Transfer Functions Configuring a Router to Use FTP Connections If the server has a directory structure, the configuration file or image is written or copied relative to the directory associated with the remote username on the server. Use the ip rcmd remote-username command to specify which directory on the server to use. For example, if the system image resides in the home directory of a user on the server, you can specify that user’s name as the remote username.
Résumé du contenu de la page N° 14
Configuring Additional File Transfer Functions Configuring a Router to Use FTP Connections The following example demonstrates how to capture a core dump using the Cisco IOS FTP feature. The router accesses a server at IP address 192.168.10.3 with login name zorro and password sword. The default passive-mode FTP is used, and the server is accessed using Token Ring interface to1 on the router where the core dump will occur: ip ftp username zorro ip ftp password sword ip ftp passive ip ftp sou