1¡¢FTP-ServerÅäÖð¸Àý

1£©ÍØÆË£º

PC----------------------S3760E

2£©S37EÅäÖÃÈçÏ£º

S37E#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

S37E(config)#

S37E(config)#ftp-server enable

S37E(config)#ftp-server topdir /       //FTP·þÎñÆ÷¸ùĿ¼ÉèÖÃ

S37E(config)#ftp-server username admin

S37E(config)#ftp-server password ruijie

S37E(config)#int vlan 1

S37E(config-if-VLAN 1)#ip add 192.168.33.191

3£©FTP·þÎñÆ÷µÄÉèÖÃ

»®ºìÏßµÄÐèҪעÒâÏ£¬·ñÔò¿ÉÄܵ¼ÖÂÎÞ·¨Á¬½Ó¡£

 

2¡¢FTP-ServerµÄ¸ùĿ¼ÔõôÅäÖÃ

È«¾ÖÏÂͨ¹ýpwd¿ÉÒԲ鿴µ±Ç°Ä¿Â¼Â·¾¶£º

RS-F2-MDC-02#dir

    Mode Link      Size               MTime Name

-------- ---- --------- ------------------- ------------------

            1      5250 2010-11-27 08:57:27 config.text

   <DIR>    1         0 1970-01-01 00:00:00 dev/

   <DIR>    2         0 2010-11-23 07:01:42 grtd/

   <DIR>    2         0 2010-11-23 07:01:43 log/

   <DIR>    2         0 1970-01-01 00:00:03 mnt/

            1      4093 2010-11-30 05:47:28 ntp.text

            1         8 2010-11-27 08:57:27 priority.dat

   <DIR>    0         0 1970-01-01 00:00:00 proc/

   <DIR>    1         0 2010-11-27 08:58:57 ram/

            1   9852256 2010-11-23 09:30:54 rgos.bin

   <DIR>    2         0 2010-11-27 08:59:12 tmp/

            1   1327936 2010-11-23 07:01:51 web_management_pack.upd

--------------------------------------------------------------

5 Files (Total size 11189543 Bytes), 7 Directories.

Total 33488896 bytes (31MB) in this device, 20955136 bytes (19MB) available.

RS-F2-MDC-02#pwd

/

RS-F2-MDC-02#

ÈçÉÏËùʾ£¬¸ùĿ¼Ϊ / ¡£

FTP·þÎñÆ÷¸ùĿ¼ÉèÖÃΪ:ftp-server topdir /

 

3¡¢½»»»»ú×÷Ϊftp clientÊÇ·ñÖ§³Ö¸ü¸Ä¶Ë¿ÚºÅ£¬Á¬½Óµ½serverµÄ·Ç21¶Ë¿Ú½øÐÐÎļþ´«Êä

±ÈÈ磬Ҫ´Óftp://192.168.33.35:2121ÕâÑùµÄftp·þÎñÆ÷ÉÏÏÂÔØÎļþµ½½»»»»úÉÏ£¬ÊÇ·ñ¿ÉÒÔ¸ü¸Ä¶Ë¿ÚºÅ2121¡£¼´½»»»»úÉÏÊÇ·ñ¿ÉÒÔÈçcopy ftp://a:a@192.168.33.35:2121/a.text flash:a.textÕâÑù¼ÓÉϾßÌåµÄ¶Ë¿ÚºÅ£¿

²»¿ÉÒÔ¡£ÎÒÃÇËùÓÐÐͺŽ»»»»úµÄËùÓа汾×÷Ϊftp clientʱ£¬¶¼²»Ö§³Ö´ø¶Ë¿ÚºÅÅäÖá£