Install a License File

Before you begin

  • File Transfer Protocol (FTP) and Trivial File Transfer Protocol (TFTP) support both IPv4 and IPv6 addresses, with no difference in functionality or configuration.

  • You must enable the File Transfer Protocol (FTP) or Trivial File Transfer Protocol (TFTP) server depending on which protocol you use to download the license file to the device.

  • Ensure that you have the correct license file with the base MAC address of the switch on which you need to install the license. Otherwise, the system does not unblock the licensed features.

About this task

Install a license file on the switch to enable licensed features.

You can use the same procedure to load legacy license files, license.dat, on a VSP 4450 Series switch.

Note

Note

You can enable FTP or TFTP in the boot config flags, and then initiate an FTP or a TFTP session from your workstation to put the file on the switch.

Procedure

  1. From a remote station or PC, use FTP or TFTP to download the license file to the device and store the license file in the /intflash directory.
  2. Enter Global Configuration mode:

    enable

    configure terminal

  3. Load the license:

    load-license WORD<0–63>

    Note

    Note

    If filename parameter is not used and more than one valid .xml license file exists in the /intflash/ directory, the switch uses the license with the highest capability.

Examples

 Use FTP to transfer a license file from a PC to the internal flash on the device:

C:\Users\jsmith>ftp 192.0.2.16
Connected to 192.0.2.16 (192.0.2.16).
220 FTP server ready
Name (192.0.2.16:(none)): rwa
331 Password required
Password:
230 User logged in
ftp> bin
200 Type set to I, binary mode
ftp> put L3VWithMACsec.xml  /intflash/L3VWithMACsec.xml
local: L3VWithMACsec.xml remote: /intflash/L3VWithMACsec.xml
227 Entering Passive Mode (192,0,2,16,4,2)
150 Opening BINARY mode data connection
226 Transfer complete
101 bytes sent in 2.7e-05 secs (3740.74 Kbytes/sec)
ftp> 

Log in to the device and load the license. The following example shows a successful operation.

Switch:1(config)#load-license L3VWithMACsec.xml
Switch:1(config)#CP1 [06/12/15 15:59:57.636:UTC] 0x000005bc 00000000 GlobalRouter SW INFO License Successfully Loaded From </intflash/L3VWithMACsec.xml> License Type -- L3V with MACsec

The following example shows an unsuccessful operation.

Switch:1(config)#load-license license_Switch_example.xml
Switch:1(config)#CP1  [06/12/15 15:58:48.376:UTC] 0x000006b9 00000000 GlobalRouter SW INFO Invalid license file /intflash/license_Switch_example.xml  HostId is not Valid

CP1  [06/12/15 15:58:48.379:UTC] 0x000005c4 00000000 GlobalRouter SW INFO No Valid License found.

Variable Definitions

The following table defines parameters for the copy command.

Variable

Value

<a.b.c.d>

Specifies the IPv4 and IPv6 address of the TFTP server from which to copy the license file.

<file>

Specifies the name of the license file when copied to the flash. The destination file name must meet the following requirements:

  • Maximum of 63 alphanumeric characters

  • No spaces or special characters allowed

  • Underscore (_) is allowed

  • The file extension ".xml" is required

<srcfile>

Specifies the name of the license file on the TFTP server. For example, license.xml.

The following table defines parameters for the load-license command.

Variable

Value

WORD<0–63>

Note:

Exception: only supported on 5520 Series, VSP 8600 Series, and XA1400 Series.

Specifies the name of the license file when copied to the flash. The destination file name must meet the following requirements:

  • Maximum of 63 alphanumeric characters

  • No spaces or special characters allowed

  • Underscore (_) is allowed

  • The file extension ".xml" is required