2.3.1 ftp
Назначение команды
Команда ftp в режиме Privileged EXEC используется для обмена файлами между локальным устройством и удалённым FTP-сервером.
Синтаксис команды
ftp ( mgmt-if | ) host ( port PORTNUM | )
Параметры
| Параметр | Описание параметра | Значение параметра |
|---|---|---|
| mgmt-if | Порт управления | — |
| host | IPv4- или IPv6-адрес или имя удалённого хоста | Поддерживается IPv4/IPv6-адрес или имя |
| PORTNUM | Порт удалённого FTP-сервера | От 1 до 65535 |
Режим выполнения
Privileged EXEC
Использование
Команда ftp позволяет загружать и выгружать файлы с удалённого FTP-сервера.
Примеры
Подключение к FTP-серверу по IPv4-адресу:
Switch# ftp mgmt-if 10.10.29.160
Connected to 10.10.29.160.
220---------- Welcome to Pure-FTPd ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 09:00. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (10.10.29.160:root): root
331 User root OK. Password required
Password:
230-User root has group access to: wheel disk adm sys daemon
230- bin root
230 OK. Current directory is /root
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Подключение к FTP-серверу по IPv6-адресу:
Switch# ftp mgmt-if 2001:1000::2
Connected to 2001:1000::2 (2001:1000::2).
220 Serv-U FTP Server v10.2 ready...
Name (2001:1000::2:root): Username
331 User name okay, need password.
Password:
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>