• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C WX3000系列有线无线一体化交换机交换引擎 命令手册-6PW103

29-FTP-SFTP-TFTP命令

本章节下载 29-FTP-SFTP-TFTP命令  (274.27 KB)

docurl=/cn/Service/Document_Software/Document_Center/Wlan/WX/H3C_WX3000/Command/Command_Manual/H3C_WX3000_CM-6PW103/200907/643032_30005_0.htm

29-FTP-SFTP-TFTP命令


1 FTP与SFTP

1.1  FTP服务器配置命令

1.1.1  display ftp-server

【命令】

display ftp-server

【视图】

任意视图

【参数】

【描述】

display ftp-server命令用来显示当前FTP服务器的各项参数。

进行FTP参数设置后,可通过此命令查看设置结果。

【举例】

# 显示FTP服务器参数设置结果。(必需已经先开启FTP服务)

<device> display ftp-server

   FTP server is running

   Max user number       1

   User count            0

   Timeout value(in minute)       30

表1-1 display ftp-server命令显示信息描述表

字段

描述

FTP server is running

FTP服务器已经启动

Max user number         1

支持同时登录的最大用户数为1个

User count                   0

当前登录的用户数为0个

Timeout value (in minute)          30

FTP用户的连接空闲时间为30分钟

 

1.1.2  display ftp-server source-ip

【命令】

display ftp-server source-ip

【视图】

任意视图

【参数】

【描述】

display ftp-server source-ip命令用来显示当前为FTP服务器设置的源IP地址。

l              如果为FTP服务器指定了源接口,则此命令显示的是该接口的IP地址;

l              如果没有为FTP服务器指定源地址,则显示源IP地址为0.0.0.0。

【举例】

# 显示FTP服务器设置的源IP地址。

<device> display ftp-server source-ip

The source IP you specified is 192.168.0.1

1.1.3  display ftp-user

【命令】

display ftp-user

【视图】

任意视图

【参数】

【描述】

display ftp-user命令用来显示当前FTP用户的各项参数,包括用户名、主机IP、端口、空闲时间和授权目录。

【举例】

# 显示FTP用户参数设置。

<device> display ftp-user

  UserName             HostIP    Port    Idle              HomeDir

admin           192.168.0.152    1029       0               flash:

# 当登录用户名长度超过10位时,将换行并靠左对齐显示。例如登录用户名为administrator,显示情况为:

<device> display ftp-user

  UserName             HostIP    Port    Idle              HomeDir

administrator   192.168.0.152   1031      0                flash:

1.1.4  ftp disconnect

【命令】

ftp disconnect user-name

【视图】

系统视图

【参数】

user-name:需要中断与FTP服务器连接的用户名称(长度为1~184的字符串)。

【描述】

ftp disconnect命令用来中断指定用户与FTP服务器的连接。

当设备作为FTP服务器,需要中断与指定用户的FTP连接时,如果该用户正在进行数据传输,服务器将在传输完成之后执行中断操作。

 

【举例】

# 查看当前在线的FTP用户。

<device> display ftp-user

  UserName             HostIP    Port    Idle              HomeDir

admin           192.168.0.152    1029       0               flash:

# 中断与用户admin的FTP连接。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] ftp disconnect admin

%Apr  2 01:06:14:915 2000 device FTPS/5/USEROUT:- 1 -User admin(192.168.0.152) logged out

1.1.5  ftp server enable

【命令】

ftp sever enable

undo ftp sever

【视图】

系统视图

【参数】

【描述】

ftp server enable命令用来启动FTP服务器,允许FTP用户登录。undo ftp server命令用来关闭FTP服务器,禁止FTP用户登录。

缺省情况下,系统关闭FTP服务器,避免可能存在的安全隐患。

设备为防止恶意用户对未使用SOCKET的攻击,提高设备的安全性,提供了如下功能:

l    在启动FTP服务器功能时,才打开FTP使用的TCP 21端口。

l    在关闭FTP服务器功能时,同时关闭TCP 21端口。

 

【举例】

# 启动FTP服务器。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] ftp server enable

% Start FTP server

1.1.6  ftp timeout

【命令】

ftp timeout minutes

undo ftp timeout

【视图】

系统视图

【参数】

minutes:连接空闲时间,单位为分钟,取值范围为1~35791。

【描述】

ftp timeout命令用来设置连接空闲时间。undo ftp timeout命令用来恢复缺省的连接空闲时间。

缺省情况下,连接空闲时间为30分钟。

如果用户登录到FTP服务器,在与服务器建立了连接后,一旦某连接异常中断,FTP服务器无法及时获悉,会继续保持该连接。使用连接空闲时间,可以防止这类情况的发生。如果用户在空闲时间内与FTP服务器没有进行命令交互,FTP服务器会认为该连接已失效,并中断与该用户的连接。

【举例】

# 设置连接空闲时间为36分钟。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] ftp timeout 36

1.1.7  ftp-server source-interface

【命令】

ftp-server source-interface interface-type interface-number

undo ftp-server source-interface

【视图】

系统视图

【参数】

interface-type:源接口的类型。

interface-number:源接口的编号。

【描述】

ftp-server source-interface命令用来为FTP服务器指定源接口。当指定接口不存在时,命令提示不成功。undo ftp-server source-interface命令用来取消指定的源接口,取消之后,以系统决定的本设备地址供FTP客户端访问。

【举例】

# 为FTP服务器指定源接口为Vlan-interface1。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] ftp-server source-interface Vlan-interface 1 

1.1.8  ftp-server source-ip

【命令】

ftp-server source-ip ip-address

undo ftp-server source-ip

【视图】

系统视图

【参数】

ip-address:需要设置的源IP地址。

【描述】

ftp-server source-ip命令用来为FTP服务器指定源IP地址。当指定的IP地址不是本设备地址时,命令提示不成功。undo ftp-server source-ip命令用来取消指定的源IP地址,取消之后,以系统决定的本设备地址供FTP客户端访问。

【举例】

# 为FTP服务器指定源IP地址为192.168.1.1。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] ftp-server source-ip 192.168.1.1

1.2  FTP客户端配置命令

1.2.1  ascii

【命令】

ascii

【视图】

FTP Client视图

【参数】

【描述】

ascii命令用来设置文件传输的模式为ASCII模式。

缺省情况下,文件传输模式为ASCII模式。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 设置数据传输的模式为ASCII模式,用于传输文本文件。

[ftp] ascii

200 Type set to A.

1.2.2  binary

【命令】

binary

【视图】

FTP Client视图

【参数】

【描述】

binary命令用来设置文件传输类型为二进制模式,用于传输程序文件。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 设置文件传输类型支持binary模式。

[ftp] binary

200 Type set to I.

1.2.3  bye

【命令】

bye

【视图】

FTP Client视图

【参数】

【描述】

bye命令用来终止与远程FTP服务器的控制连接和数据连接,并退回到用户视图。

该命令的作用与quit命令相同。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 终止与远程FTP服务器的连接,并退回到用户视图。

[ftp] bye

221 Service closing control connection

<device>

1.2.4  cd

【命令】

cd pathname

【视图】

FTP Client视图

【参数】

pathname:路径名。

【描述】

cd命令用来改变远程FTP服务器上的工作目录。

用户使用cd命令可以访问FTP服务器上的另一目录,该目录只能是FTP服务器对用户授权的目录。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 改变工作目录到flash:/temp。

[ftp] cd flash:/temp

# 显示当前工作目录。

[ftp] pwd

257 "flash:/temp" is current directory.

1.2.5  cdup

【命令】

cdup

【视图】

FTP Client视图

【参数】

【描述】

cdup命令用来退出当前在远程FTP服务器上的工作目录,并返回至上一级目录。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 改变工作目录到flash:/temp。

[ftp] cd flash:/temp

250 CWD command successful

# 将工作目录改变为上一级目录。

[ftp] cdup

# 显示当前路径。

[ftp] pwd

257 "flash:" is current directory.

1.2.6  close

【命令】

close

【视图】

FTP Client视图

【参数】

【描述】

close命令用来使用户在不退出FTP Client视图的前提下,将FTP客户端与FTP服务器断开。

该命令的作用与disconnect命令相同。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 终止与远程FTP 服务器的连接,并保持在FTP Client视图。

[ftp] close

221 Server closing.

[ftp]

1.2.7  delete

【命令】

delete remotefile

【视图】

FTP Client视图

【参数】

remotefile:文件名。

【描述】

delete命令用来删除指定的远程文件。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 删除文件temp.c。

[ftp] delete temp.c

250 DELE command successful.

1.2.8  dir

【命令】

dir [ filename [ localfile ] ]

【视图】

FTP Client视图

【参数】

filename:需要查询的文件名。

localfile:保存的本地文件名。

【描述】

dir命令用来查询远程FTP服务器上指定的文件,显示当前工作目录下的文件名称、文件大小和创建日期,并将查询情况保存至本地文件中。

如果不指定文件,系统将显示当前远程工作目录下的所有文件。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 显示当前远程FTP服务器工作目录下的所有文件信息。

[ftp] dir

227 Entering Passive Mode (192,168,0,152,4,0).

125 ASCII mode data connection already open, transfer starting for *.

-rwxrwxrwx   1 noone    nogroup      2833 May 11 17:58 config.cfg

-rwxrwxrwx   1 noone    nogroup    225295 Apr 26 12:21 default.diag

drwxrwxrwx   1 noone    nogroup         0 Apr 28 11:41 test

-rwxrwxrwx   1 noone    nogroup      2145 Apr 28 13:13 test.txt

-rwxrwxrwx   1 noone    nogroup        13 Apr 28 13:21 mytest.bak

-rwxrwxrwx   1 noone    nogroup         9 Apr 28 13:24 a.txt

-rwxrwxrwx   1 noone    nogroup       142 Sep 10  2006 myopenssh

-rwxrwxrwx   1 noone    nogroup        15 Apr 26 17:45 public

-rwxrwxrwx   1 noone    nogroup        15 Apr 26 17:56 temp.c

-rwxrwxrwx   1 noone    nogroup       306 May 13 11:17 swithc001

226 Transfer complete.

FTP: 1025 byte(s) received in 0.019 second(s) 53.00K byte(s)/sec.

# 查询文件config.cfg的相关信息,并将查询情况保存在temp1文件中。

[ftp] dir config.cfg temp1

227 Entering Passive Mode (192,168,0,152,4,3).

125 ASCII mode data connection already open, transfer starting for config.cfg.

.....226 Transfer complete.

FTP: 67 byte(s) received in 5.818 second(s) 11.00 byte(s)/sec.

1.2.9  disconnect

【命令】

disconnect

【视图】

FTP Client视图

【参数】

【描述】

disconnect命令用来使用户在不退出FTP Client视图的前提下,将FTP客户端与FTP服务器断开。

该命令的作用与close命令相同。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 终止与远程FTP服务器的连接,保持在FTP Client视图。

[ftp] disconnect

221 Server closing.

[ftp]

1.2.10  display ftp source-ip

【命令】

display ftp source-ip

【视图】

任意视图

【参数】

【描述】

display ftp source-ip命令用来显示FTP客户端固定使用的源IP地址,如果为FTP客户端指定了源接口,则此命令显示的是该接口的IP地址;如果没有为FTP 客户端指定源接口或源IP地址,则显示源IP地址为0.0.0.0。

【举例】

# 显示FTP客户端固定使用的源IP地址

<device> display ftp source-ip

The source IP you specified is 192.168.0.1

1.2.11  ftp

【命令】

ftp [ cluster | remote-server [ port-number ] ]

【视图】

用户视图

【参数】

cluster:集群FTP服务器。

ip-address:远程FTP服务器的主机名(长度为1~20的字符串)或IP地址。

port-number:远程FTP服务器的端口号,取值范围为0~65535,缺省值为21。

【描述】

ftp命令用来与远程FTP服务器建立控制连接,并进入FTP Client视图。

【举例】

# 连接到地址为2.2.2.2的远程FTP服务器。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

1.2.12  ftp { cluster | remote-server } source-interface

【命令】

ftp { cluster | remote-server } source-interface interface-type interface-number

【视图】

用户视图

【参数】

cluster:集群FTP服务器。

remote-server:FTP服务器IP地址或主机名

interface-type:源接口的类型。

interface-number:源接口的编号。

【描述】

ftp { cluster | remote-server } source-interface命令用来使用指定源接口与FTP服务器建立连接。当指定源接口不存在时,命令提示不成功。

【举例】

# 使用Vlan-interface1作为源接口与远程FTP服务器192.168.8.8进行连接。

<device> ftp 192.168.8.8 source-interface Vlan-interface 1

1.2.13  ftp { cluster | remote-server } source-ip

【命令】

ftp { cluster | remote-server } source-ip ip-address

【视图】

用户视图

【参数】

cluster:集群FTP服务器。

remote-server:FTP服务器IP地址或主机名。

ip-address:需要设置的源IP地址。

【描述】

ftp { cluster | remote-server } source-ip命令用来使用指定源IP地址与FTP服务器建立连接。当指定源IP地址不存在时,命令提示不成功。

【举例】

# 以192.168.0.1作为指定源IP地址与远程FTP服务器192.168.8.8进行连接。

<device> ftp 192.168.8.8 source-ip 192.168.0.1

1.2.14  ftp source-interface

【命令】

ftp source-interface interface-type interface-number

undo ftp source-interface

【视图】

系统视图

【参数】

interface-type:源接口的类型。

interface-number:源接口的编号。

【描述】

ftp source-interface命令用来配置FTP客户端连接FTP服务器时固定使用的源接口。当指定接口不存在时,命令提示不成功。undo ftp source-interface命令用来取消设置的源接口,取消之后,以系统决定的本设备地址访问FTP服务器。

【举例】

# 配置Vlan-interface1接口为FTP客户端在连接FTP服务器时固定使用的接口。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] ftp source-interface Vlan-interface 1 

1.2.15  ftp source-ip

【命令】

ftp source-ip ip-address

undo ftp source-ip

【视图】

系统视图

【参数】

ip-address:需要设置的源IP地址。

【描述】

ftp source-ip命令用来配置FTP客户端连接FTP服务器时固定使用的IP地址。当指定的ip-address不是本设备地址时,命令提示不成功。undo ftp source-ip命令用来取消指定的源IP地址,取消之后,以系统决定的本设备地址访问FTP服务器。

【举例】

# 配置地址192.168.0.1为FTP客户端在连接FTP服务器时固定使用的IP地址。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] ftp source-ip 192.168.0.1

1.2.16  get

【命令】

get remotefile [ localfile ]

【视图】

FTP Client视图

【参数】

remotefile:远程FTP服务器上文件名。

localfile:本地文件名。

【描述】

get命令用来下载远程文件,并将下载的文件存储在本地。

如果没有指定本地文件名,则系统缺省认为文件名与远程FTP服务器上的文件名相同。

l    当使用get命令从远程FTP服务器下载文件时,需要注意文件路径及文件名称不能超过系统的长度限制。

l    设备对设备名、目录名、路径名和文件名的长度有如下的限制:每一级目录名均不能超过91个字符,本地路径名和文件名总长度不能超过127个字符,设备名不能超过14个字符,指定设备上的文件路径的总长度不能超过142个字符。

 

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 下载temp.c文件。

[ftp] get temp.c

227 Entering Passive Mode (2,2,2,2,4,12).

125 ASCII mode data connection already open, transfer starting for temp.c.

..226 Transfer complete.

FTP: 15 byte(s) received in 2.568 second(s) 0.00 byte(s)/sec.

1.2.17  lcd

【命令】

lcd

【视图】

FTP Client视图

【参数】

【描述】

lcd命令用来获得FTP Client本地的工作目录。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 显示本地的工作目录。

[ftp] lcd

% Local directory now flash:/temp

1.2.18  ls

【命令】

ls [ remotefile [ localfile ] ]

【视图】

FTP Client视图

【参数】

remotefile:被查询的远程文件。

localfile:用于保存查询信息的本地文件名。

【描述】

ls命令用来查询远程FTP服务器上指定的文件名称。

如果不输入任何参数,系统将显示当前远程工作目录下的所有文件名。

ls命令仅显示出文件名,而dir命令可以看到与文件相关的信息,如大小,创建日期等。

 

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 查询当前远程FTP服务器工作目录的所有文件名称。

[ftp] ls

227 Entering Passive Mode (2,2,2,2,4,4).

125 ASCII mode data connection already open, transfer starting for *.

config.cfg

default.diag

test

test.txt

mytest.bak

a.txt

myopenssh

public

temp.c

swithc001

226 Transfer complete.

FTP: 200 byte(s) received in 0.145 second(s) 1.00Kbyte(s)/sec.

1.2.19  mkdir

【命令】

mkdir pathname

【视图】

FTP Client视图

【参数】

pathname:目录名。

【描述】

mkdir命令用来在远程FTP服务器上建立目录。

远程FTP服务器授权客户端用户使用建立目录操作后,用户才能执行mkdir命令。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 在远程FTP服务器上建立目录flash:/lanswitch。

[ftp] mkdir flash:/lanswitch

257 "flash:/ lanswitch" new directory created.

1.2.20  open

【命令】

open { ip-address | server-name } [ port ]

【视图】

FTP Client视图

【参数】

ip-address:远程FTP服务器的IP地址。

server-name:远程FTP服务器的主机名(长度为1~20的字符串)。

port:远程FTP服务器的端口号,取值范围为0~65535,缺省值为21。

【描述】

open命令用来在FTP Client视图下,与远程FTP服务器建立控制连接。

相关命令可以参考close

【举例】

# 进入FTP Client视图。

<device> ftp

[ftp]

#在FTP Client视图下,与远程FTP服务器(IP地址为1.1.1.1)建立控制连接。

[ftp] open 1.1.1.1

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):abc

331 Password required for abc

Password:

230 User logged in.

1.2.21  passive

【命令】

passive

undo passive

【视图】

FTP Client视图

【参数】

【描述】

passive命令用来设置数据传输的方式为被动方式。undo passive命令用来设置数据传输的方式为主动方式。

缺省情况下,数据传输的方式为被动方式。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 设置数据传输的方式为被动方式。

[ftp] passive

% Passive is on

1.2.22  put

【命令】

put localfile [ remotefile ]

【视图】

FTP Client视图

【参数】

localfile:本地的文件名。

remotefile:远程FTP服务器上的文件名。

【描述】

put命令用来将本地的文件上传到远程FTP服务器。

如果用户没有指定远程服务器上的文件名,则系统缺省认为此文件名与本地文件名相同。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 将本地temp.c文件上传到远程FTP服务器。

[ftp] put temp.c

227 Entering Passive Mode (2,2,2,2,4,13).

125 ASCII mode data connection already open, transfer starting for temp.c.

226 Transfer complete.

FTP: 15 byte(s) sent in 7.549 second(s) 1.00byte(s)/sec.

1.2.23  pwd

【命令】

pwd

【视图】

FTP Client视图

【参数】

【描述】

pwd命令用来显示远程FTP服务器上的工作目录。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 显示远程FTP服务器上的工作目录。

[ftp] pwd

257 "flash:/temp" is current directory.

1.2.24  quit

【命令】

quit

【视图】

FTP Client视图

【参数】

【描述】

quit命令用来终止与远程FTP服务器的连接,并退回到用户视图。

该命令的作用与bye命令相同。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 终止与远程FTP服务器的连接,并退回到用户视图。

[ftp] quit

221 Server closing.

<device>

1.2.25  remotehelp

【命令】

remotehelp [ protocol-command ]

【视图】

FTP Client视图

【参数】

protocol-command:FTP协议命令。

【描述】

remotehelp命令用来显示FTP协议命令的帮助。

只有当FTP服务器提供协议命令帮助时,remotehelp命令才有效。

l    当设备作为FTP服务器时,该命令均有效。

l    当用户使用其他FTP服务器软件时,请参考该软件的相关说明,以确认该FTP服务器能否提供协议命令帮助。

 

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 查看协议命令user的语法。

[ftp]remotehelp user

214-USER Enter user name

PASS     Send Password

CWD      Change working directory

CDUP     Go to parent directory

QUIT     Exit FTP server

REIN     Reinitialize server

PORT     Set port for data transfer

TYPE     Set file transfer type

STRU     Set file transfer structure

MODE     Set file transfer mode

RETR     Retrieve file

STOR     Store file

APPE     Append to existing file

REST     Restart file transfer

RNFR     Rename from

RNTO     Rename to

ABOR     Abort transfer

DELE     Delete file

RMD      Remove directory                   

1.2.26  rename

【命令】

rename remote-source remote-dest

【视图】

FTP Client视图

【参数】

remote-source:远程主机上的源文件名。

remote-dest:远程主机上的目标文件名。

【描述】

rename命令用来重命名远程FTP服务器上的文件。

若目标文件名与已经存在的目录名或文件名相同,系统将提示文件不能读取,重命名操作不能执行。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 重命名文件 temp.c为forever.c

[ftp] rename temp.c forever.c

350 Requested file action pending further information

250 Requested file action OK, completed

1.2.27  rmdir

【命令】

rmdir pathname

【视图】

FTP Client视图

【参数】

pathname:远程FTP服务器上的目录名。

【描述】

rmdir命令用来删除FTP服务器上指定的目录。

只有当该目录为空目录时,rmdir命令才能删除成功。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 删除FTP服务器上的flash:/temp1目录。

[ftp] rmdir flash:/temp1

250 Requested file action OK, completed

1.2.28  user

【命令】

user username [ password ]

【视图】

FTP Client视图

【参数】

username:登录用户名。

password:登录密码。

【描述】

user命令用来使用指定的用户名和密码登录远程FTP服务器。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 以FTP服务器上用户名为tom,口令为111的用户身份登录。

[ftp] user tom 111

331 User name ok, need password

230 User logged in

1.2.29  verbose

【命令】

verbose

undo verbose

【视图】

FTP Client视图

【参数】

【描述】

verbose命令用来打开verbose开关,显示其他有关命令的执行及响应信息。undo verbose命令用来关闭verbose开关,不显示其他有关命令的执行及响应信息。

缺省情况下,verbose开关为开启状态。

【举例】

# 进入FTP Client视图。

<device> ftp 2.2.2.2

Trying ...

Press CTRL+K to abort

Connected.

220 FTP service ready.

User(none):admin

331 Password required for admin.

Password:

230 User logged in.

[ftp]

# 打开verbose开关。

[ftp] verbose

1.3  SFTP 服务器配置命令

1.3.1  sftp server enable

【命令】

sftp server enable

undo sftp server

【视图】

系统视图

【参数】

【描述】

sftp server enable命令用来启动SFTP服务器。undo sftp server命令用来关闭SFTP服务器。

缺省情况下,SFTP服务器处于关闭状态。

【举例】

# 启动SFTP服务器。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] sftp server enable

1.3.2  sftp timeout

【命令】

sftp timeout time-out-value

undo sftp timeout

【视图】

系统视图

【参数】

time-out-value:超时时间,取值范围为1~35791,单位为分钟。缺省值为10分钟。

【描述】

sftp timeout命令用来在SFTP Server端设置SFTP用户连接的空闲超时时间。undo sftp timeout命令用来恢复SFTP用户连接空闲超时时间的缺省值。

当SFTP用户连接的空闲超时时间超过设定的阈值后,系统会自动断开此用户的连接。

【举例】

# 设置SFTP用户连接的空闲超时时间为500分钟。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] sftp timeout 500

1.4  SFTP 客户端配置命令

1.4.1  bye

【命令】

bye

【视图】

SFTP Client视图

【参数】

【描述】

bye命令用来终止与远程SFTP Server的连接,并退回到系统视图。

该命令功能与exitquit相同。

【举例】

# 终止与远程SFTP server的连接。

sftp-client> bye

Bye

[device]

1.4.2  cd

【命令】

cd [ remote-path ]

【视图】

SFTP Client视图

【参数】

remote-path:服务器上的路径名。

【描述】

cd命令用来改变远程SFTP服务器上的工作路径。如果没有指定remote-path,则显示当前工作路径。

l    命令“cd ..”用来返回到上一级目录;

l    命令“cd /” 用来返回到系统的根目录。

 

【举例】

# 改变工作路径到new1。

sftp-client>cd new1

Received status: Success

Current Directory is:

/new1

sftp-client> 

1.4.3  cdup

【命令】

cdup

【视图】

SFTP Client视图

【参数】

【描述】

cdup命令用来改变远程SFTP服务器上的工作路径,返回到上一级目录。

【举例】

# 改变工作路径到上一级目录。

sftp-client>cdup

Received status: Success

Current Directory is:

/

1.4.4  delete

【命令】

delete remote-file&<1-10>

【视图】

SFTP Client视图

【参数】

remote-file&<1-10>:服务器上的文件名。&<1-10>表示最多可以输入10个文件名,每个文件名之间用空格分隔。

【描述】

delete命令用来删除远程SFTP服务器上指定的文件。

该命令功能和remove相同。

【举例】

# 删除服务器上的文件test.txt。

sftp-client> delete test.txt

The following files will be deleted: 

/test.txt

Are you sure to delete it?(Y/N):y

This operation may take a long time.Please wait...

 

Received status: Success

File successfully Removed

1.4.5  dir

【命令】

dir [ -a | -l ] [ remote-path ]

【视图】

SFTP Client视图

【参数】

-a:显示指定目录下文件及文件夹的名称。

-l:以列表的形式显示指定目录下文件及文件夹的详细信息。

remote-path:查询的目录名。

【描述】

dir命令用来查询远程SFTP服务器上指定目录。

如果没有指定-a-l参数,则以列表的形式显示指定目录下文件及文件夹的详细信息。

如果没有指定remote-path,则查询当前工作目录下的文件。

该命令功能与ls相同。

【举例】

# 查询当前目录下的文件。

sftp-client> dir

-rwxrwxrwx   1 noone    nogroup      1759 Aug 23 06:52 config.cfg

-rwxrwxrwx   1 noone    nogroup       225 Aug 24 08:01 pubkey2

-rwxrwxrwx   1 noone    nogroup       283 Aug 24 07:39 pubkey1

-rwxrwxrwx   1 noone    nogroup       225 Sep 28 08:28 pub1

drwxrwxrwx   1 noone    nogroup         0 Sep 28 08:24 new1

drwxrwxrwx   1 noone    nogroup         0 Sep 28 08:18 new2

-rwxrwxrwx   1 noone    nogroup       225 Sep 28 08:30 pub2

Received status: End of file

Received status: Success 

1.4.6  display sftp source-ip

【命令】

display sftp source-ip

【视图】

任意视图

【参数】

【描述】

display sftp source-ip命令用来显示当前为SFTP Client指定的源IP地址。

如果为SFTP Client指定了源接口,则此命令显示的是该接口的IP地址;如果没有为SFTP Client指定源地址,则显示0.0.0.0。

【举例】

# 显示当前为SFTP Client设置的源IP地址。

<device> display sftp source-ip

The source IP you specified is 192.168.1.1

1.4.7  exit

【命令】

exit

【视图】

SFTP Client视图

【参数】

【描述】

exit命令用来终止与远程SFTP server的连接,并退回到系统视图。

该命令功能与byequit相同。

【举例】

# 终止与远程SFTP server的连接。

sftp-client> exit

Bye

[device]

1.4.8  get

【命令】

get remote-file [ local-file ]

【视图】

SFTP Client视图

【参数】

remote-file:远程SFTP Server上的文件名。

local-file:本地文件名。

【描述】

get命令用来从远程服务器上下载文件并存储在本地。

缺省情况下,如果没有指定本地文件名,则将该文件按照远程SFTP Server上的文件名保存到本地。

【举例】

# 下载tt.bak文件,并以tt.txt文件名保存。

sftp-client>get tt.bak tt.txt....

This operation may take a long time, please wait...

Remote  file:tt.bak --->  Local file: tt.txt..

Received status: End of file

Received status: Success

Downloading file successfully ended

1.4.9  help

【命令】

help [ all |command ]

【视图】

SFTP Client视图

【参数】

all:显示所有命令的名字。

command:命令名。

【描述】

help命令用来显示SFTP客户端命令的帮助信息。

如果没有指定command,系统将显示所有命令的名字。

【举例】

# 查看命令get的帮助信息。

sftp-client> help get

get remote-path [local-path]  Download file.Default local-path is the same

                              with remote-path

1.4.10  ls

【命令】

ls [ -a | -l ] [ remote-path ]

【视图】

SFTP Client视图

【参数】

-a:显示指定目录下文件及文件夹的名称。

-l:以列表的形式显示指定目录下文件及文件夹的详细信息。

remote-path:查询的目录名。

【描述】

ls命令用来查询远程SFTP服务器上指定目录下的文件。

如果没有指定-a-l参数,则以列表的形式显示指定目录下文件及文件夹的详细信息。

如果没有指定remote-path,则查询当前工作目录下的文件。

该命令功能与dir相同。

【举例】

# 查询当前目录。

sftp-client> ls

-rwxrwxrwx   1 noone    nogroup      1759 Aug 23 06:52 config.cfg

-rwxrwxrwx   1 noone    nogroup       225 Aug 24 08:01 pubkey2

-rwxrwxrwx   1 noone    nogroup       283 Aug 24 07:39 pubkey1

-rwxrwxrwx   1 noone    nogroup       225 Sep 28 08:28 pub1

drwxrwxrwx   1 noone    nogroup         0 Sep 28 08:24 new1

drwxrwxrwx   1 noone    nogroup         0 Sep 28 08:18 new2

-rwxrwxrwx   1 noone    nogroup       225 Sep 28 08:30 pub2

Received status: End of file

Received status: Success

1.4.11  mkdir

【命令】

mkdir remote-path

【视图】

SFTP Client视图

【参数】

remote-path:远程SFTP server上的目录名。

【描述】

mkdir命令用来在远程SFTP server上建立目录。

【举例】

# 在远程SFTP服务器上建立目录hj。

sftp-client>mkdir hj

Received status: Success

New directory created

1.4.12  put

【命令】

put local-file [ remote-file ]

【视图】

SFTP Client视图

【参数】

local-file:本地的文件名。

remote-file:远程SFTP Server上的文件名。

【描述】

put命令用来将本地的文件上传到远程SFTP Server。

缺省情况下,如果没有指定远程服务器上的文件名,则认为服务器上的文件与本地文件同名。

【举例】

# 将本地config.cfg文件上传到远程SFTP Server,并以1.txt文件名保存。

sftp-client>put config.cfg 1.txt

This operation may take a long time, please wait...

Local file:config.cfg --->  Remote file: /1.txt

Received status: Success  

Uploading file successfully ended

1.4.13  pwd

【命令】

pwd

【视图】

SFTP Client视图

【参数】

【描述】

pwd命令用来显示远程SFTP Server上的工作目录。

【举例】

# 显示远程SFTP Server上的工作目录。

sftp-client> pwd

/

1.4.14  quit

【命令】

quit

【视图】

SFTP Client视图

【参数】

【描述】

quit命令用来终止与远程SFTP server的连接,并退回到系统视图。

该命令功能与byeexit相同。

【举例】

# 终止与远程SFTP server的连接。

sftp-client> quit

Bye

[device]

1.4.15  remove

【命令】

remove remote-file&<1-10>

【视图】

SFTP Client视图

【参数】

remote-file&<1-10>:服务器上的文件名。&<1-10>表示最多可以输入10个文件名,每个文件名之间用空格分隔。

【描述】

remove命令用来删除远程SFTP服务器上指定的文件。

该命令和delete功能相同。

【举例】

# 删除服务器上的文件temp.c。

sftp-client> remove temp.c

The followed File will be deleted:

/temp.c

Are you sure to delete it?(Y/N):y

This operation may take a long time.Please wait...

 

Received status: Success

File successfully Removed

1.4.16  rename

【命令】

rename oldname newname

【视图】

SFTP Client视图

【参数】

oldname:原文件名。

newname:新文件名。

【描述】

rename命令用来改变SFTP服务器上指定的文件名。

【举例】

# 将SFTP服务器上的文件temp.bat改名为temp.txt。

sftp-client> rename temp.bat temp.txt

File successfully renamed

1.4.17  rmdir

【命令】

rmdir remote-path&<1-10>

【视图】

SFTP Client视图

【参数】

remote-path&<1-10>:远程SFTP server上的目录名。&<1-10>表示最多可以输入10个文件名,每个文件名之间用空格分隔。

【描述】

rmdir命令用来删除SFTP服务器上指定的目录。

【举例】

# 删除SFTP服务器上的hello目录。

sftp-client>rmdir hello

The followed directory will be deleted

/hello

Are you sure to remove it?(Y/N):y

This operation may take a long time.Please wait...

 

Received status: Success

Directory successfully removed

1.4.18  sftp

【命令】

sftp { host-ip | host-name } [ port-num ] [ identity-key { dsa | rsa } | prefer_kex { dh_group1 | dh_exchange_group } | prefer_ctos_cipher { des | aes128 } | prefer_stoc_cipher { des | aes128 } | prefer_ctos_hmac { sha1 | sha1_96 | md5 | md5_96 } | prefer_stoc_hmac { sha1 | sha1_96 | md5 | md5_96 } ] *

【视图】

系统视图

【参数】

host-ip:服务器IP地址。

host-name:表示服务器名称的字符串,长度为1~20个字符。

port-num:服务器端口号,取值范围为0~65535,缺省值为22。

identity-keypublickey认证采用的公共密钥算法,缺省算法为rsa

l              dsa公共密钥算法为DSA。

l              rsa公共密钥算法为RSA。

prefer_kex:Key交换首选算法,选择两种算法之间的一种。

l              dh_group1:Key交换算法diffie-hellman-group1-sha1,为缺省Key交换算法。

l              dh_exchange_group:Key交换算法diffie-hellman-group-exchange-sha1。

prefer_ctos_cipher:客户端到服务器端的首选加密算法,缺省算法为aes128。

prefer_stoc_cipher:服务器端到客户端的首选加密算法,缺省算法为aes128。

l              des:des_cbc加密算法。

l              aes128:aes_128加密算法。

prefer_ctos_hmac:客户端到服务器端的首选HMAC算法,缺省为sha1_96。

prefer_stoc_hmac:服务器端到客户端的首选HMAC算法,缺省为sha1_96。

l              sha1:HMAC算法hmac-sha1。

l              sha1_96:HMAC算法hmac-sha1-96。

l              md5:HMAC算法hmac-md5。

l              md5_96:HMAC算法hmac-md5-96。

【描述】

sftp命令用来与远程SFTP服务器建立连接,并进入SFTP Client视图。

如果在服务器端指定客户端的认证方式为公钥认证,当客户端登录SFTP服务器端时客户端需要读取本地的私钥进行验证。由于公钥认证可以采用RSA和DSA两种加密算法,所以需要用identity-key关键字指定采用的加密算法,才能得到正确的本地私钥数据,否则无法登录成功。

【举例】

# 连接IP地址为10.1.1.2的SFTP服务器,加密算法均取缺省值。

<device>system-view

System View: return to User View with Ctrl+Z.

[device]sftp 10.1.1.2

Input Username: kk

Trying 10.1.1.2...

Press CTRL+K to abort

Connected to 10.1.1.2 ...

 

The Server is not authenticated. Do you continue access it?(Y/N):y

Do you want to save the server's public key?(Y/N):y

Enter password:

 

sftp-client>

1.4.19  sftp source-interface

【命令】

sftp source-interface interface-type interface-number

undo sftp source-interface

【视图】

系统视图

【参数】

interface-type:源接口的类型,可以为LoopBack或Vlan-interface。

interface-number:源接口的编号。

【描述】

sftp source-interface命令用来为SFTP客户端指定源接口。当指定接口不存在时,命令提示不成功。undo sftp source-interface命令用来取消指定的源接口,取消后,以系统决定的本设备地址访问SFTP服务器。

【举例】

# 为SFTP Client指定源接口Vlan-interface 1。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] sftp source-interface Vlan-interface 1

1.4.20  sftp source-ip

【命令】

sftp source-ip ip-address

undo sftp source-ip

【视图】

系统视图

【参数】

ip-address:需要设置的源IP地址。

【描述】

sftp source-ip命令用来为SFTP客户端指定源IP地址。当指定的ip-address不是本设备地址时,命令提示不成功。undo sftp source-ip命令用来取消指定的源IP地址,取消后,以系统决定的本设备地址访问SFTP服务器。

【举例】

# 为SFTP Client指定源IP地址192.168.0.1。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] sftp source-ip 192.168.0.1

 


2 TFTP

2.1  TFTP配置命令

2.1.1  display tftp source-ip

【命令】

display tftp source-ip

【视图】

任意视图

【参数】

【描述】

display tftp source-ip命令用来显示TFTP客户端连接TFTP服务器时固定使用的源IP地址。如果为TFTP客户端指定了源接口,则此命令显示的是该接口的IP地址;如果没有为TFTP客户端指定源地址,则显示0.0.0.0。

【举例】

# 显示当前TFTP客户端连接TFTP服务器时固定使用的源IP地址。

<device> display tftp source-ip

The source IP you specified is 192.168.0.1

2.1.2  tftp

【命令】

tftp { ascii | binary }

【视图】

系统视图

【参数】

ascii:以ASCII方式传输数据。

binary:以二进制方式传输数据。

【描述】

tftp { ascii | binary }命令用来设置通过TFTP传输文件时,数据传输的方式。

缺省情况下,数据传输方式为binary

【举例】

# 设置数据传输的模式为ASCII方式。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] tftp ascii

TFTP transfer mode changed to ASCII.

2.1.3  tftp get

【命令】

tftp tftp-server get source-file [ dest-file ]

【视图】

用户视图

【参数】

tftp-server:TFTP服务器的IP地址或者主机名。

source-file要下载的TFTP服务器上的文件名。

dest-file:下载后存储在设备上的文件名。

【描述】

tftp get命令用来从TFTP服务器的指定目录下,将文件下载到设备上。

相关配置可参考命令tftp put

【举例】

# 从TFTP服务器(1.1.1.1),将文件abc.txt下载到本机并保存为efg.txt(假设flash剩余空间足够)。

<device>tftp 1.1.1.1 get abc.txt efg.txt

  File will be transferred in binary mode.

  Downloading file from remote tftp server, please wait......

  TFTP:       35 bytes received in 0 second(s).

  File downloaded successfully.

# 从TFTP服务器(1.1.1.1),将文件temp.txt下载到本机并保存为test1.txt(假设flash剩余空间不足,且TFTP服务器不支持文件大小协商的扩展协议)。

<device> tftp 1.1.1.1 get temp.txt test1.txt

  File will be transferred in binary mode.

  Downloading file from remote tftp server, please wait......

  Not enough space; Writing to device failed; Downloaded data will be deleted.............

  Deleting file successful.

# 从TFTP服务器(1.1.1.1),将文件temp.txt下载到本机并保存为test2.txt(假设flash剩余空间不足,且TFTP服务器支持文件大小协商的扩展协议)。

<device> tftp 1.1.1.1 get temp.txt test2.txt

  File will be transferred in binary mode.

  Downloading file from remote tftp server, please wait......

  Not enough space; Quit writing to device; Created file will be deleted.............

  Deleting file successful.

2.1.4  tftp put

【命令】

tftp tftp-server put source-file [ dest-file ]

【视图】

用户视图

【参数】

tftp-server:TFTP服务器的IP地址或者主机名。

source-file:要上传到服务器的文件名。

dest-file:文件上传到TFTP服务器后的文件名。

【描述】

tftp put命令用来将设备上的文件上传到TFTP服务器的指定目录下。

相关配置可参考命令tftp get

【举例】

# 将本机的config.cfg文件上传到TFTP服务器(1.1.1.1)并保存为temp.cfg。

<device> tftp 1.1.1.1 put config.cfg temp.cfg

  File will be transferred in binary mode.

  Copying file to remote tftp server. Please wait... /

  TFTP:      962 bytes sent in 0 second(s).

  File uploaded successfully.

2.1.5  tftp tftp-server source-interface

【命令】

tftp tftp-server source-interface interface-type interface-number { get source-file [ dest-file ] | put source-file-url [ dest-file ] }

【视图】

用户视图

【参数】

tftp-server:TFTP服务器IP地址或主机名。

interface-type:源接口的类型。

interface-number:源接口的编号。

get:从TFTP服务器下载文件。

source-file:需要下载的文件名称。

dest-file:下载到本地后的文件名称。

put:向TFTP服务器上传文件。

source-file-url:需要上传的文件的路径及名称。

dest-file:上传至服务器之后的文件名称。

【描述】

tftp tftp-server source-interface命令用来使用指定源接口与TFTP服务器建立连接并进行上传或下载的操作。当指定源接口不存在时,命令提示不成功。

【举例】

# 使用Vlan-interface1作为源接口与远程TFTP服务器192.168.8.8进行连接,下载config.cfg文件。

<device> tftp 192.168.8.8 source-interface Vlan-interface 1 get config.cfg

2.1.6  tftp tftp-server source-ip

【命令】

tftp tftp-server source-ip ip-address { get source-file [ dest-file ] | put source-file-url [ dest-file ] }

【视图】

用户视图

【参数】

tftp-server:TFTP服务器IP地址或主机名。

ip-address:需要设置的源IP地址。

get:从TFTP服务器下载文件。

source-file:需要下载的文件名称。

dest-file:下载到本地后的文件名称。

put:向TFTP服务器上传文件。

source-file-url:需要上传的文件的路径及名称。

dest-file:上传至服务器之后的文件名称。

【描述】

tftp tftp-server source-ip命令用来使用指定源IP地址与TFTP服务器建立连接并进行上传或下载的操作。当指定源IP地址不存在时,命令提示不成功。

【举例】

# 以192.168.0.1作为指定源IP地址与远程TFTP服务器192.168.8.8建立连接,下载config.cfg文件。

<device> tftp 192.168.8.8 source-ip 192.168.0.1 get config.cfg

2.1.7  tftp source-interface

【命令】

tftp source-interface interface-type interface-number

undo tftp source-interface

【视图】

系统视图

【参数】

interface-type:源接口的类型。

interface-number:源接口的编号。

【描述】

tftp source-interface命令用来配置TFTP客户端连接TFTP服务器时固定使用的源接口。当指定接口不存在时,命令提示不成功。undo tftp source-interface命令用来取消设置的源接口,取消之后,以系统决定的本设备地址访问TFTP服务器。

【举例】

# 配置Vlan-interface1接口为TFTP客户端在连接TFTP服务器时固定使用的接口。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] tftp source-interface Vlan-interface 1

2.1.8  tftp source-ip

【命令】

tftp source-ip ip-address

undo tftp source-ip

【视图】

系统视图

【参数】

ip-address:需要设置的源IP地址。

【描述】

tftp source-ip命令用来配置TFTP客户端连接TFTP服务器时固定使用的源IP地址。当指定IP地址不存在时,命令提示不成功。undo tftp source-ip命令用来取消设置的源IP地址,取消之后,以系统决定的本设备地址访问TFTP服务器。

【举例】

# 使用192.168.0.1作为TFTP客户端在连接TFTP服务器时固定使用的源地址。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] tftp source-ip 192.168.0.1

2.1.9  tftp-server acl

【命令】

tftp-server acl acl-number

undo tftp-server acl

【视图】

系统视图

【参数】

acl-number:基本访问控制列表号,取值范围为2000~2999。

【描述】

tftp-server acl命令用来指定TFTP客户端在连接TFTP服务器时所选用的ACL规则的编号。undo tftp-server acl命令用来取消所有指定的ACL规则的编号。

【举例】

# 指定TFTP客户端选用编号为2000的ACL。

<device> system-view

System View: return to User View with Ctrl+Z.

[device] tftp-server acl 2000

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们