Example for Switching a Fit AP to the Fat Mode Using SFTP
Applicable Scope
Applicable version: V200R007 and later versions
Applicable models:
AP Series |
AP Model |
---|---|
AP1000 |
AP1050DN-S |
AP2000 |
AP2050DN, AP2050DN-E, AP2050DN-S, AP2051DN, AP2051DN-E, AP2051DN-L-S, and AP2051DN-S |
AP3000 |
AP3050DE |
AP4000 |
AP4050DE-B-S, AP4050DE-M, AP4050DE-M-S, AP4050DN, AP4050DN-E, AP4050DN-HD, AP4050DN-S, AP4051DN, AP4051TN, and AP4151DN |
AP5000 |
AP5050DN-S |
AP6000 |
AP6050DN, AP6052DN, and AP6150DN |
AP7000 |
AP7050DE, AP7050DN-E, AP7052DE, AP7052DN, AP7060DN, and AP7152DN |
AP8000 |
AP8030DN, AP8050DN, AP8050DN-S, AP8050TN-HD, AP8082DN, AP8130DN, AP8150DN, and AP8182DN |
AD9000 |
AD9430DN-12, AD9430DN-24, and AD9431DN-24X |
AirEngine series |
All AirEngine series APs |
For APs in factory defaults, it is recommended that you switch the working mode of an AP by referring to Example for Switching a Fit AP with Factory Defaults to the Fat Mode by One Click.
For other models, see Example for Switching a Fit AP to the Fat Mode Using FTP.
This example is also applicable to switching a Fit AP to the Fat mode using FTP or TFTP. Note the following differences:
- Configure the FTP or TFTP client software on the PC, which is not mentioned here.
- Different parameters are used in the command for switching the AP mode and are described in the procedure.
Networking Scenario
To use a new AP to independently provide Wi-Fi coverage, you need to switch the AP to the Fat mode and deploy services through the web platform or other way.
Connect the AP to a PC through an Ethernet cable in a proper mode, as shown in Figure 4-12.
If the AP supports DC power supply and works with a power adapter, connect the AP to a PC directly through an Ethernet cable. If the AP does not support DC power supply or no adapter is available, supply PoE power to the AP. In this case, connect the AP to the PC through a PoE device.
When the PC serves as an SFTP server, prepare the Fat AP software package for the AP to obtain through SFTP.
Quick Configuration
This section helps you quickly configure an AP, without the need to read the entire document. If you are not familiar with the product or operation, read the detailed guidance in the following sections.
Step |
Task |
---|---|
1 |
Prepare the environment: Configure the IP address, STelnet client, and SFTP server software on the PC. Download the Fat AP software package of the target version to the SFTP server. Check network connectivity and the indicator states of the AP. |
2 |
Check AP information: On the PC, log in to the AP through STelnet to check the version and working mode of the AP. |
3 |
Start the switching: Run the ap-mode-switch fat sftp filename server-ip-address user-name password [ port ] command in the system view. The AP restarts. If FTP or TFTP is used, run the following command:
NOTE:
For the support for FTP, SFTP, and TFTP modes by different models and versions, see the Fit AP Command Reference. Select a proper mode as required. |
4 |
Verify the switching: Log in to the AP again and check the working mode of the AP. |
Configuration Procedure
- Prepare the environment.
The following is used as an example. Prepare your environment based on site requirements.
Device
Description
PC
Operating system: Windows 7
STelnet client: PuTTY (third-party software)
SFTP server software
AP
Model: AP4050DN
Version: V200R007C20
Default information:
- IP address: 169.254.1.1
- STelnet login port number: 22
- User names and passwords: The default username and password are available in WLAN Default Usernames and Passwords (Enterprise Network or Carrier). If you have not obtained the access permission of the document, see Help on the website to find out how to obtain it.
# Power on the AP. The indicator is on for around 2 minutes during the startup. When the indicator blinks, the AP is started successfully.
# Log in to Huawei enterprise technical support website (support.huawei.com/e), download the Fat AP software package, and store the package on the PC.
# Set the IP address of the PC to 169.254.1.100 and mask to 255.255.0.0 so that the PC and AP are located on the same network segment.
# Open the SFTP software on the PC, and set SFTP server parameters:
- Set the IP address and port number for the client to access the server.
- Set the authentication mode so that the password is required for the client to access the server.
- Select a local directory to provide file services for the client. Store the downloaded software package in this directory.
- Add a user to verify identity information entered by the client to ensure access security.
- Enable the SFTP service.
- Check AP information.
# Open PuTTY on the PC, enter the IP address and port number of the AP, select the SSH mode, and click Open. If a key pair information prompt is displayed, click Yes.
# When the following information is displayed, the AP is connected successfully. Enter the user name and password to log in to the AP.
login as: admin Further authentication required admin@169.254.1.1's password: //For information security, characters you entered are invisible. Info: Current mode: Fit (managed by the AC). //The current mode is Fit. Info: You are advised to change the password to ensure security. <Huawei>
# Check AP information.
<Huawei> display version Huawei Versatile Routing Platform Software VRP (R) software, Version 5.170 (AP4050DN FIT V200R007C20SPCa00) //Model, working mode, and version ...
- Start the switching.
# Enable the first-time authentication function on the AP working as an SSH client.
<Huawei> system-view [Huawei] ssh client first-time enable
# Switch the AP mode to Fat. Set the file name (including the extension) of the target software package, IP address, user name, and password of the SFTP server. The AP will restart and the restart takes around 2 minutes.
[Huawei] ap-mode-switch fat sftp Fat&CloudAP4050DN_V200R007C20SPCa00.bin 169.254.1.100 huawei huawei123 Warning: The system will reboot and start in fat mode of V200R007C20SPCa00. Continue? (y/n)[n]:y Warning: Do Not Power-off! .......................................................................................................... End of file...... Info: system is rebooting ,please wait...
If FTP or TFTP is used, specify the following parameters in the switching command (as an example):
- FTP mode: ap-mode-switch fat ftp Fat&CloudAP4050DN_V200R007C20SPCa00.bin 169.254.1.100 huawei huawei123
- TFTP mode: ap-mode-switch fat tftp Fat&CloudAP4050DN_V200R007C20SPCa00.bin 169.254.1.100
- In V200R019C10 and later versions, the file name extension of the AP software package is changed from .bin to .cc.
- Verify the switching.
# Log in to the AP to view AP information. The AP is working in Fat mode.
login as: admin Further authentication required admin@169.254.1.1's password: Info: Current mode: Fat (working independently). Warning: The default country code is CN. Ensure that AP radio attributes comply with laws and regulations in different countries. Do you want to change the country code? [Y/N]:n Info: You are advised to change the password to ensure security. <Huawei> system-view [Huawei] display version Huawei Versatile Routing Platform Software VRP (R) software, Version 5.170 (AP4050DN FAT V200R007C20SPCa00) ...
FAQ
An error message is displayed when you run a mode switching command.
[Huawei] ap-mode-switch fat sftp Fat&CloudAP4050DN_V200R007C20SPCa00.bin 169.254.1.100 huawei huawei@123 Warning: The system will reboot and start in fat mode of V200R007C20SPCa00. Continue? (y/n)[n]:y Warning: Do Not Power-off! . Error: Upgrade failed due to a failure in downloading the version file.
The public key for the SSH server is not configured on the AP. When the AP accesses the SSH server for the first time, authentication fails.
Run the ssh client first-time enable command in the system view to allow the AP to access the server. The public key will be saved and used for authentication on the server.
[Huawei] ssh client first-time enable