How to upload a license file to an S series switches

14

oad a license file to an S series (except the S1700) switch using one of the following methods:


Method 1: Using a TFTP server
Use a PC as an TFTP server, run the TFTP server program on the PC, and configure the PC.
Note: To use a TFTP server to upload a license file, you need to purchase the TFTP server software.s
The operation procedure is as follows:
1. Configure a TFTP server. Click Browse to set Current Directory for storing the system software to be loaded. The TFTP server address in Server interfaces is automatically set by the system.
2. Run the tftp [ -a source-ip-address | -i interface-type interface-number ] tftp-server [ public-net | vpn-instance vpn-instance-name ] put source-filename [ destination-filename ] command to upload a license file to the TFTP server.


Method 2: Uploading a license file from an FTP server to a switch that functions as an FTP client
Note: To use an FTP server to upload a license file, you need to purchase the FTP server software.
The operation procedure is as follows:
1. Configure an FTP server, set the user name and password, and set the FTP directory.
2. Run the ftp [ -a source-ip-address | -i interface-type interface-number ] host-ipv4 [ port-number ] [ public-net | vpn-instance vpn-instance-name ] command to log in to the FTP server. Enter the user name and password as prompted.
3. Run the get remote-filename [ local-filename ] command to download a license file to the FTP client.


Method 3: Using a switch as an FTP server and uploading a license file to the switch from an FTP client
The operation procedure is as follows:
1. Run the system-view command to enter the system view.
2. Run the ftp [ ipv6 ] server enable command to enable the FTP server.
3. Run the aaa command to enter the AAA view.
4. Run the local-user user-name password cipher password command to set the local user name and password.
5. Run the local-user user-name privilege level level command to set the local user level.
Note: The user level must be set to 3 or higher. Otherwise, the FTP connection cannot be established.
6. Run the local-user user-name service-type ftp command to configure the FTP service type.
7. Run the local-user user-name ftp-directory directory command to configure an authorized directory for the FTP user.
8. Access the CLI of a PC and run the ftp server-ip-address command. Enter the user name and password as prompted to log in to the FTP server.
9. Run the put license-file command to upload a license file to the FTP server. After being successfully uploaded, the license file will be stored in the default directory of the FTP server.

Other related questions:
Upload a license file
A license file of a switch is saved on a PC reachable to the switch. The following uses the license file CloudEngine12800V100R006_20151218150734.dat as an example. You can upload the license file to a switch using any of the three methods described on the right.

How to upload files using the BootROM of S series switches
On S series switches (except S1700 switches), the BootROM allows you to establish connections between the device and other devices or PCs to implement fast transfer of the system software, configuration files, and patch files. Files can be transmitted through serial and Ethernet interfaces. You need to modify the transmission rate during the file transfer using the serial interface. This transmission mode is simple to configure, but has a low transmission rate. File transfer using the Ethernet interface is mainly described here, and the configuration process is as follows: 1. On the BootROM main menu, select Enter ethernet submenu to enter the Ethernet submenu. 2. In the Ethernet submenu, select Modify ethernet interface boot parameter to enter the menu for setting Ethernet parameters. BOOTLINE SUBMENU 1. Set TFTP protocol parameters 2. Set FTP protocol parameters 3. Return to ethernet menu Enter your choice(1-3): 3. Select the file transfer mode as required. The following takes FTP parameter settings as an example: BOOTLINE SUBMENU 1. Set TFTP protocol parameters 2. Set FTP protocol parameters 3. Return to ethernet menu Enter your choice(1-3): 2 '.' = clear field; '-' = go to previous field; ^D = quit Load File name : devicesoftware.cc //Enter the name of the file to be uploaded. Switch IP address : 192.168.1.15:ffffff00 //Enter the management IP address of the device, and ensure that the management IP address is on the same network segment as the IP address of the FTP server. Server IP address : 192.168.1.40 //Enter the IP address of the FTP server. FTP User Name : huawei //Enter the user name for logging in to the FTP server. FTP User Password : //Enter the password in cipher text for logging in to the FTP server. After the configuration is complete, the device automatically displays the Ethernet parameter setting menu. 4. Select Return to ethernet menu to return to the Ethernet submenu. 5. In the Ethernet submenu, you can select Download file to Flash through ethernet interface to download files in the FTP server, or select Upload Configuration file to Ftp through ethernet interface to upload the configuration file to the FTP server. The setting for the TFTP server is similar to that for the FTP server, but you do not need to configure the user name and password. Note that the interface of the BootROM menu differs slightly on different devices. Perform configurations according to the actual displayed information on the device. More information about how to upload files through BootROM is as follows:

How to upload a license file to an AC
To upload a license file to an AC, use any of the following methods: Method 1: Upload a license file using a PC as the TFTP server. Run TFTP server software on the PC and set parameters. Note: This method requires you to purchase TFTP server software separately. Procedure: 1. Configure a TFTP server. Click Browse and specify the directory for storing the new system software. The TFTP server address in Server interface is automatically set by the system. 2. Run the tftp [ -a source-ip-address | -i interface-type interface-number ] tftp-server { get | put } source-filename [ destination-filename ] command to upload a license file to the AC. Method 2: Upload a license file using an FTP server. In this case, the AC serves as the FTP client. Note: This method requires you to purchase FTP server software separately. Procedure: 1. Configure the FTP server, set its user name and password, and set the FTP folder. 2. Run the ftp [ -a source-ip-address | -i interface-type interface-number ] host-ip [ port-number ] command to log in to the FTP server. Enter the user name and password of the FTP server as prompted. 3. Run the get remote-filename [ local-filename ] command to download a license file to the AC. Method 3: An AC serves as an FTP server, and a license file is uploaded from an FTP client to the AC. Procedure: 1. Run the system-view command to enter the system view. 2. Run the ftp [ ipv6 ] server enable command to start the FTP server. 3. Run the aaa command to enter the AAA view. 4. Run the local-user user-name password cipher password command to configure the local user name and password. 5. Run the local-user user-name privilege level level command to configure the level for a local user. Note: The user level must be set to 3 or higher; otherwise, the FTP connection cannot be established. 6. Run the local-user user-name service-type ftp command to configure the FTP service type. 7. Run the local-user user-name ftp-directory directory command to configure the authorized directory for FTP users. 8. Enter the CLI on the PC. Run the ftp server-ip-address command, and enter the user name and password to log in to the AC. 9. Run the put license-filename command to upload a license file to the AC. After the upload is complete, the license file is saved to the default directory of the AC.

Configuring an S series switch as an FTP server
Perform the following operations to configure an S series switch (except the S1700) as an FTP server: 1. Configure an IP address for the switch. 2. Configure the switch as an FTP server. system-view [HUAWEI] ftp server enable //Enable the FTP service. [HUAWEI] aaa [HUAWEI-aaa] local-user u1 password irreversible-cipher ftppwd@6789 //Set the FTP user name to u1 and password to ftppwd@6789. [HUAWEI-aaa] local-user u1 service-type ftp //Set the access type of the user to FTP. [HUAWEI-aaa] local-user u1 privilege level 15 //Set the user priority. [HUAWEI-aaa] local-user u1 ftp-directory flash:/ //Specify the directory that the user can access, which may be cfcard:/ for some S series modular switches. [HUAWEI-aaa] return

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top