Submenu level : /file
Description
MikroTik RouterOS has an industry standard FTP server feature. It uses ports 20 and 21 for communication with other hosts on the network. Do not disable these ports on your router!
Uploaded files as well as exported configuration or backup files can be accessed under /file menu. There you can also delete unwanted files from your router.
Authorization via ftp uses router's system user account names and passwords.
Property Description
name (read-only: text) - item name
type (read-only: file | directory | unknown) - item type
package size (read-only: integer) - package size
creation-time (read-only: time) - item creation date and time
package-name (read-only: name) - package name
package-version (read-only: text) - package version
package-build-time (read-only: time) - build time of the package
Example
Suppose we need to upload a software package system-2.7rc4.npk to a router with IP address 192.168.0.2 using generic text mode FTP client from a Linux workstation (the procedure and commands are the same also for Windows workstations):
user@wildcat:~/work$ ftp 192.168.0.2
Connected to 192.168.0.2.
220 MikroTik FTP server (MikroTik v2.7rc3) ready
Name (192.168.0.2:root): admin
331 Password required for admin
Password:
230 User admin logged in
Remote system type is UNIX.
ftp> binary
200 Type set to I
ftp> send
(local-file) /home/psi/system-2.7rc4.npk
(remote-file) system-2.7rc4.npk
local: /home/psi/system-2.7rc4.npk remote: system-2.7rc4.npk
200 PORT command successful
150 Opening BINARY mode data connection for '/system-2.7rc4.npk'
226 Transfer complete
8391343 bytes sent in 12.61 secs (649.7 kB/s)
ftp> close
221 Closing
ftp> quit
user@wildcat:~/work$
Now you can see this package on the router:
[admin@MikroTik] file> print
# NAME TYPE SIZE CREATION-TIME
0 system-2.7rc4.npk package 8391343 apr/30/2003 17:09:55
1 hotspot directory mar/08/2003 16:14:19
[admin@MikroTik] file>
No comments:
Post a Comment