标签:set ip add 0kb mina command exe none spec tp服务器
R1-------SW1<R1>
<R1>sy
<R1>system-view \\进入系统试图
Enter system view, return user view with Ctrl+Z.
[R1]ftp
[R1]ftp s
[R1]ftp server en
[R1]ftp server enable \\开启FTP服务器
Info: Succeeded in starting the FTP server
[R1]aaa\\进入三a(认证、授权、统计)
[R1-aaa]loc
[R1-aaa]local-user xzf pas
[R1-aaa]local-user xzf password ci
[R1-aaa]local-user xzf password cipher xzfhcna\\创建用户xzf并加密
Info: Add a new user.\\增加新用户成功
[R1-aaa]loc
[R1-aaa]local-user xzf p
[R1-aaa]local-user xzf pr
[R1-aaa]local-user xzf privilege ?
level Set admin user(s) level
[R1-aaa]local-user xzf privilege le
[R1-aaa]local-user xzf privilege level 15\\设置用户xzf的级别为15级
[R1-aaa]local-user xzf s
[R1-aaa]local-user xzf service-type ft
[R1-aaa]local-user xzf service-type ftp ?
8021x 802.1x user
bind Bind authentication user
http Http user
ppp PPP user
ssh SSH user
ssl*** Ssl*** user
telnet Telnet user
terminal Terminal user
web Web authentication user
x25-pad X25-pad user
<cr> Please press ENTER to execute command
[R1-aaa]local-user xzf service-type ftp \\用户xzf服务于FTP
[R1-aaa]loc
[R1-aaa]local-user xzf ft
[R1-aaa]local-user xzf ftp-directory fa
[R1-aaa]local-user xzf ftp-directory fla
[R1-aaa]local-user xzf ftp-directory flash:\\用户xzf的FTP目录是flash:
[R1-aaa]dis th
[V200R003C00]
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user xzf password cipher %$%$"{~k6=w\r3:\"SSG~iMO_]WJ%$%$
local-user xzf privilege level 15
local-user xzf ftp-directory flash:
local-user xzf service-type ftp
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
#
return
[R1-aaa]
================================================================================================
2.测试
<SW1>ftp
[ftp]q
<SW1>ftp?
ftp
<SW1>ftp ?
-a Set an FTP client source IP address
-i Set an FTP client source interface
STRING<1-255> IP address or host name of a remote system
ipv6 IPv6 protocol
<cr>
<SW1>ftp 10.1.10.30 ?
INTEGER<1-65535> Specify port number, the default is 21
public-net Connect in Public Network
***-instance Set ××× instance
<cr>
<```
SW1>ftp 10.1.10.30 \链接地址为10.1.10.30的FTP
Trying 10.1.10.30 ...
Press CTRL+K to abort
Connected to 10.1.10.30.
220 FTP service ready.
User(10.1.10.30:(none)):xzf\输入用户名xzf
331 Password required for xzf.
Enter password:\输入密码(xzfhcna)
230 User logged in.
[ftp]dir\列出文件目录
200 Port command okay.
150 Opening ASCII mode data connection for *.
drwxrwxrwx 1 noone nogroup 0 Sep 20 10:04 dhcp
-rwxrwxrwx 1 noone nogroup 121802 May 26 2014 portalpage.zip
-rwxrwxrwx 1 noone nogroup 2263 Sep 20 10:04 statemach.efs
-rwxrwxrwx 1 noone nogroup 828482 May 26 2014 ssl***.zip
-rwxrwxrwx 1 noone nogroup 289 Sep 20 10:14 private-data.txt
drwxrwxrwx 1 noone nogroup 0 Sep 20 10:14 .
-rwxrwxrwx 1 noone nogroup 603 Sep 20 10:14 vrpcfg.zip
226 Transfer complete.
[ftp]get ?
STRING<1-64> Remote file name
[ftp]get portalpage.zip\获取(拷贝)portalpage.zip文件
200 Port command okay.
150 Opening ASCII mode data connection for portalpage.zip.
226 Transfer complete.\传输完成
FTP: 121802 byte(s) received in 0.560 second(s) 217.50Kbyte(s)/sec.
[ftp]
=================================================================================================
3.测试结果
<SW1>dir
Directory of flash:/
Idx Attr Size(Byte) Date Time FileName
0 drw- - Aug 06 2015 21:26:42 src
1 drw- - Sep 12 2018 23:10:15 compatible
2 -rw- 121,802 Sep 20 2018 18:38:44 portalpage.zip\\2018年9月20日18:38:44 获取文件 portalpage.zip
3 -rw- 546 Sep 20 2018 18:22:15 vrpcfg.zip
32,004 KB total (31,848 KB free)
<SW1>
标签:set ip add 0kb mina command exe none spec tp服务器
原文地址:http://blog.51cto.com/enderjoe/2286774