Configuration Guide Vol. 1


6.5.3 Transferring Files Using ftp Commands

Use the ftp command to transfer files between the Switch and a remote operation terminal.

<Structure of this section>

(1) To transfer a backup configuration file to the Switch

After transferring the backup configuration file to your home directory on a Switch (/usr/home/operator), copy it to the startup configuration by using the copy operation command. The following figure shows an example of transferring a backup configuration file to the Switch by using the ftp command.

Figure 6-21: Example of transferring a backup configuration file to the Switch (ftp command)
> cd /usr/home/operator
> ftp 192.168.0.1
Connect to 192.168.0.1.
220  FTP server (Version wn-2.4(4) Wed Jan 1 00:00:00 JST 1999) ready.
Name (192.168.0.1:operator): test
331 Password required for test.
Password:xxxxxx
230 User test logged in.
Remote system type UNIX.
Using binary mode to transfer files.
ftp> get backup.cnf                                         ..1
local: backup.cnf remote: backup.cnf
200 PORT command successful.
150 Opening BINARY mode data connection for backup.cnf (12,345 bytes)
226 Transfer complete.
ftp> bye
221 Goodby
> enable
# copy /usr/home/operator/backup.cnf startup-config         ..2
Configuration file copy to startup-config ? (y/n): y        ..3
#
  1. Transfer the backup configuration file.

  2. Use the backup configuration file (backup.cnf) as the startup configuration.

  3. A confirmation message asking whether you want to replace the existing startup configuration appears.

(2) When transferring the backup configuration file to a remote operation terminal

The following figure shows an example of transferring a backup configuration file stored in the Switch to a remote operation terminal.

Figure 6-22: Example of transferring a backup configuration file to a remote operation terminal
> cd /usr/home/operator
> enable
# copy running-config backup.cnf                          ..1
Configuration file copy to /usr/home/operator/backup.cnf? (y/n) : y
# exit
> ftp 192.168.0.1
Connect to 192.168.0.1.
220  FTP server (Version wn-2.4(4) Fri Jan 1 00:00:00 JST 1999) ready.
Name (192.168.0.1:operator): test
331 Password required for test.
Password:xxxxxx
230 User test logged in.
Remote system type UNIX.
Using binary mode to transfer files.
ftp> put backup.cnf                                       ..2
local: backup.cnf remote: backup.cnf
200 PORT command successful.
150 Opening BINARY mode data connection for backup.cnf (12,345 bytes)
226 Transfer complete.
ftp> bye
221 Goodby
>
  1. Copy the running configuration file to the backup configuration file.

  2. Transfer the backup configuration file.