Upload a web file through FTP to a router.
1.Use the router as an FTP server, and enable the FTP service.
Enable the FTP server on the router, and create an FTP user with the user name huawei and password Helloworld@6789. Authorize the user to access the directory sd1:.
[Huawei] ftp server enable
Info: Succeeded in starting the FTP server.
[Huawei] aaa
[Huawei-aaa] local-user huawei password irreversible-cipher Helloworld@6789 //Create an FTP user with the user name huawei and password Helloworld@6789.
[Huawei-aaa] local-user huawei ftp-directory sd1: //Authorize the user to access the directory sd1:.
[Huawei-aaa] local-user huawei service-type ftp //Set the service type of the user to FTP.
[Huawei-aaa] local-user huawei privilege level 15 //Set the user level to 15. The larger the value, the higher the level.
[Huawei-aaa] return //Return the user view.
<Huawei> save //Save the current configuration file.
2.Initiate an FTP connection from a maintenance PC to the router.
On the PC, create an FTP connection to the router through the FTP client (for example, the IP address of the router is 10.110.24.254).
C:\Documents and Setting\Administrator> ftp 10.110.24.254
Connected to 10.110.24.254.
220 FTP service ready.
User (10.110.24.254:(none)): huawei
331 Password required for huawei.
Password:
230 User logged in.
3. Upload the web software to the router.
ftp> put Web.zip
200 Port command okay.
150 Opening BINARY mode data connection for devicesoft.cc
226 Transfer complete.
ftp: Send 76556 bytes within 3.35 seconds at the rate 560.79 Kbytes per second.
4. View the files and sub-directories under the current directory.
<Huawei> dir
Directory of sd1:/
Idx Attr Size(Byte) Date Time FileName
0 -rw- 6,311 Feb 17 2012 14:05:04 backup.cfg
1 -rw- 76,556 Mar 06 2012 17:20:10 Web.zip
5. Load the web file.
<Huawei> system-view
[Huawei] http server load Web.zip //Load the web file. If the file has been loaded, ignore this step. In later versions of the software, the web file has been integrated into the system package, and does not need loading.
By the way, you can check the price of Huawei AR Routers.
Learn More:
Configure rate limiting for P2P software download on a Huawei AR router
What is the difference between Huawei S switches and routers?
Do I need to apply for the license again after router version upgrade?
How to configure a user level on an AR router?
How to configure access control on a Huawei AR router?