本文将介绍思科路由器Smart Licensing注册步骤,以及如何将传统License转换成Smart License。

查看Smart Licensing
VN-QC4351-1.20#sh license summary
Smart Licensing is ENABLED

Registration:
  Status: UNREGISTERED
  Export-Controlled Functionality: NOT ALLOWED

License Authorization:
  Status: EVAL MODE
  Evaluation Period Remaining: 83 days, 1 hours, 20 minutes, 50 seconds

License Usage:
  License                 Entitlement tag               Count Status
  -----------------------------------------------------------------------------
                          (ISR_4351_Security)               1 EVAL MODE
                          (ISR_4351_400M_Performance)       1 EVAL MODE

我们可以看到:

  • 没有注册Smart Licensing。
  • License处于EVAL MODE试用模式。
注册Smart Licensing
  1. 配置代理(可选)

如果路由器需要通过代理服务器访问思科Smart Licensing,参考如下命令配置代理:

VN-QC4351-1.20(config)#call-home
VN-QC4351-1.20(cfg-call-home)#http-proxy 10.111.31.111 port 3128
VN-QC4351-1.20(cfg-call-home)#end

查看call-home信息:

VN-QC4351-1.20#sh call-home
Current call home settings:
    call home feature : enable
    call home message's from address: Not yet set up
    call home message's reply-to address: Not yet set up
[...]
    source ip address: Not yet set up
    source interface: Not yet set up
    Mail-server: Not yet set up
    http proxy: 10.111.31.111:3128
[...]
VN-QC4351-1.20#sh call-home profile all

Profile Name: CiscoTAC-1
    Profile status: ACTIVE
    Profile mode: Full Reporting
    Reporting Data: Smart Call Home, Smart Licensing
    Preferred Message Format: xml
    Message Size Limit: 3145728 Bytes
    Transport Method: http
    HTTP  address(es): https://tools.cisco.com/its/service/oddce/services/DDCEService
    Other address(es): default

    Periodic configuration info message is scheduled every 12 day of the month at 12:38
[...]
  1. 申请Token令牌

访问并登录https://software.cisco.com/,点击[管理许可证],参照下图所示申请Token:

复制令牌信息:

  1. 激活Token令牌
VN-QC4351-1.20#license smart register idtoken OGRlOTdlOWItZGI4[...]
Registration process is in progress. Use the 'show license status' command to check the progress and result
  1. 查看注册状态:
VN-QC4351-1.20#show license status
Smart Licensing is ENABLED
[...]
Registration:
  Status: REGISTERED
  Smart Account: F*H M*** INDUSTRY S.****V.
  Virtual Account: CNCS
  Export-Controlled Functionality: ALLOWED
  Initial Registration: SUCCEEDED on
  Last Renewal Attempt: None
  Next Renewal Attempt:
  Registration Expires:
[...]
把传统License转换成Smart License
  1. 查看当前License授权状态
VN-QC4351-1.20#sh license summary
Smart Licensing is ENABLED

[...]
License Authorization:
  Status: OUT OF COMPLIANCE
  Last Communication Attempt: SUCCEEDED
  Next Communication Attempt:

License Usage:
  License                 Entitlement tag               Count Status
-----------------------------------------------------------------------------
  ISR_4351_Security       (ISR_4351_Security)               1 OUT OF COMPLIANCE
  ISR_4351_400M_Perfor... (ISR_4351_400M_Performance)       1 OUT OF COMPLIANCE

可以看到License状态从EVAL MODE变成了OUT OF COMPLIANCE,没有被授权。
因为我们还没有将传统License转换成Smart License。

  1. 查询传统License
VN-QC4351-1.20#sh platform software license dlc
Index 1  Feature:           securityk9
        Permanent License:  1
        EVAL RTU License:   0
        RTU License:        0
        Paper License:      0
Index 2  Feature:           throughput
        Permanent License:  0
        EVAL RTU License:   0
        RTU License:        1
        Paper License:      0

DLC Process Status: Not Complete

可以看到有一个Permanent License,有一个RTU License。

  1. 将传统License转换成Smart License
    使用license smart conversion start命令开始转换:
VN-QC4351-1.20#license smart conversion start

查询转换状态:

VN-QC4351-1.20#show license all | sec License Conversion:
License Conversion:
  Automatic Conversion Enabled: False
  Status: Successful on Sep 22 03:46:17 2021 PDT

转换时间较长,建议1小时后再查询状态。

  1. 查询License状态
VN-QC4351-1.20#sh license summary
Smart Licensing is ENABLED

Registration:
  Status: REGISTERED
  Smart Account: F*H M*** INDUSTRY S.****V.
  Virtual Account: CNCS
  Export-Controlled Functionality: ALLOWED
  Last Renewal Attempt: None
  Next Renewal Attempt:

License Authorization:
  Status: OUT OF COMPLIANCE
  Last Communication Attempt: SUCCEEDED
  Next Communication Attempt:

License Usage:
  License                 Entitlement tag               Count Status
  -----------------------------------------------------------------------------
  ISR_4351_Security       (ISR_4351_Security)               1 AUTHORIZED
  ISR_4351_400M_Perfor... (ISR_4351_400M_Performance)       1 AUTHORIZED

两个License都已经AUTHORIZED了。
访问并登录https://software.cisco.com/查看设备注册状态: