2-11FTP Server Configuration ExampleSingle Device UpgradeNetwork requirementsz As shown in Figure 2-4, use Device as an FTP server, and the PC as the FTP client. Their IPaddresses are 1.2.1.1/16 and 1.1.1.1/16 respectively. An available route exists between Deviceand PC.z PC keeps the updated startup file of the device. Use FTP to upgrade the device and back up theconfiguration file.z Set the username to ftp and the password to pwd for the FTP client to log in to the FTP server.Figure 2-4 Smooth upgrading using the FTP serverInternetDeviceFTP serverPCFTP client1.2.1.1/16 1.1.1.1/16Configuration procedure1) Configure Device (FTP Server)# Create an FTP user account ftp, set its password to pwd and the user privilege level to level 3 (themanage level). system-view[Sysname] local-user ftp[Sysname-luser-ftp] password simple pwd[Sysname-luser-ftp] authorization-attribute work-directory level 3# Authorize ftp’s access to the root directory of the flash.[Sysname-luser-ftp] authorization-attribute work-directory flash:/# Specify ftp to use FTP.[Sysname-luser-ftp] service-type ftp[Sysname-luser-ftp] quit# Enable FTP server.[Sysname] ftp server enable[Sysname] quit# Check files on your device. Remove those redundant to ensure adequate space for the startup file tobe uploaded. dirDirectory of flash:/0 -rw- 10471471 Sep 18 2008 02:45:15 s5120eih3c-d501.bin1 -rw- 9989823 Jul 14 2008 19:30:46 s5120eih3cd_b57.bin2 -rw- 6 Apr 26 2000 12:04:33 patchstate3 -rw- 2337 Apr 26 2000 14:18:45 config.cfg4 drw- - Apr 26 2000 13:10:56 test5 -rw- 2337 Apr 26 2000 13:47:32 archive_1.cfg