Radio Shack FC-241 用户手册

下载
页码 14
 
Configuring Additional File Transfer Functions
Configuring a Router to Use FTP Connections
FC-253
Cisco IOS Configuration Fundamentals Configuration Guide, Release 12.1
 
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. 
If you copy the configuration file to a personal computer used as a file server, the computer must support 
rsh. 
To override the default remote username sent on rcp requests, use the following commands starting in 
privileged EXEC mode:
To remove the remote username and return to the default value, use the no ip rcmd remote-username 
command.
Configuring a Router to Use FTP Connections
You configure a router to transfer files between systems on the network using the Internet File Transfer 
Protocol (FTP). With the Cisco IOS implementation of FTP, you can set the following features:
Passive-mode FTP
User name
Password
IP address
FTP Configuration Task List
Use the instructions in the section “Configuring FTP Connections” to configure FTP on a router.
Configuring FTP Connections
To configure FTP connections on a router, use the following commands in global configuration mode:
Command
Purpose
Step 1
configure terminal
Enters global configuration mode from the terminal
Step 2
ip rcmd remote-username 
username
Specifies the remote username.
Command
Purpose
ip ftp username 
string
Specifies the user name to be used for the FTP connection.
ip ftp password
 [typepassword
Specifies the password to be used for the FTP connection.
ip ftp passive
or
no ip ftp passive
Configures the router to only use passive-mode FTP connections.
Allows all types of FTP connections (default).
ip ftp source-interface
 interface
Specifies the source IP address for FTP connections.