本檔案介紹思科智慧授權(SL)部署的型別以及所需的配置。
本檔案適用於Cisco IOS XE企業路由平台。
本檔案中的資訊是根據以下硬體和軟體版本:
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
智慧許可註冊和消費有四個主要部署選項:

此部署選項允許您通過Internet直接通過HTTPS將使用情況資訊傳輸到Cisco。
在Cisco IOS XE 16.10.1a中,智慧許可預設啟用,是唯一可用的許可模式。對於此部署,需要第3層配置,並且可從正確的介面(需要DNS配置)訪問HTTPS埠(443)中的tools.cisco.com。
確認連線後,註冊裝置的步驟如下:
1.在裝置上啟用智慧許可證(可選)。 從16.10.1a版中,預設情況下啟用此功能。
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#license smart enable
附註:此命令啟用所需的服務呼叫總部。
2.為Cisco Tools配置域名系統(DNS)伺服器或靜態主機條目。
Router(config)#ip name-server X.X.X.X
or
Router(config)#ip host tools.cisco.com X.X.X.X
步驟3.從思科智慧軟體管理員產生新權杖。


4. 可選:更改call-home配置。
預設呼叫總部配置檔案配置足以註冊裝置。您可以在以下位置驗證當前呼叫總部配置檔案配置:
Router#show run | sec call-home
service call-home
call-home
! If contact email address in call-home is configured as sch-smart-licensing@cisco.com
! the email address configured in Cisco Smart License Portal will be used as
contact email address to send SCH notifications.
contact-email-addr sch-smart-licensing@cisco.com
profile "CiscoTAC-1"
active
destination transport-method http
no destination transport-method email
5.使用令牌向CSSM註冊裝置。
Router#license smart register idtoken < token from CSSM portal > force
附註:force關鍵字會立即強制進行註冊嘗試。如果未使用,註冊過程可能需要較長時間。
6.驗證裝置是否正確註冊到CSSM。
Router#show license status Smart Licensing is ENABLED Registration: Status: REGISTERED Smart Account: TAC Cisco Systems, Inc. Virtual Account: CORE TAC Export-Controlled Functionality: Allowed Initial Registration: SUCCEEDED on Sep 01 12:54:22 2017 UTC Last Renewal Attempt: None Next Renewal Attempt: Feb 28 12:54:22 2018 UTC Registration Expires: Sep 01 12:49:04 2018 UTC License Authorization: Status: AUTHORIZED on Sep 01 12:54:28 2017 UTC Last Communication Attempt: SUCCEEDED on Sep 01 12:54:28 2017 UTC Next Communication Attempt: Oct 01 12:54:28 2017 UTC Communication Deadline: Nov 30 12:49:12 2017 UTC
如果裝置使用VRF到達CSSM,則需要在call-home配置檔案配置下配置源VRF和源介面。要配置此部署,您必須從直接CSSM訪問部分檢視步驟1-3。然後,使用正確的VRF和源介面編輯call-home配置以訪問CSSM URL。接下來,您可以看到管理介面與GigabitEthernet0一起使用,GigabitEthernet0在Mgmt-intf VRF中用作示例:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#call-home
Router(cfg-call-home)#source-interface gigabitEthernet 0
Router(cfg-call-home)#vrf Mgmt-intf
使用分配給VRF的正確介面配置源HTTP介面。此組態會影響HTTP和HTTPS流量。
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip http client source-interface gigabitEthernet 0
為特定VRF配置DNS:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip name-server vrf Mgmt-intf X.X.X.X
完成VRF配置後,您可以繼續執行直接CSSM訪問部分中的步驟5和步驟6。
如果代理伺服器需要實現與CSSM的HTTPS連線,則需要檢視「直接CSSM訪問」部分中的步驟,並在call-home配置中運行http-proxy命令:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#call-home
Router(cfg-call-home)#http-proxy "10.118.47.99" port 8080
此部署型別允許您在不直接連線到思科託管的CSSM的情況下管理本地的產品和許可證。要實施此功能,您的網路中必須已安裝SSM預裝。安裝SSM On-Prem的步驟不在本檔案的範圍之內。
將SSM On-Prem伺服器與裝置連線的配置步驟如下:
1.在裝置上啟用智慧許可:
Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#license smart enable
步驟2.確保可以與CSSM內部伺服器通訊。
Router#ping X.X.X.X Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to X.X.X.X, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/9/10 ms
3.從SSM On-Prem生成新令牌。
3.1.登入SSM 伺服器。

3.2令牌建立

4.在裝置上配置call-home。需要使用On-Prem伺服器(http://X.X.X.X/Transportgateway/services/DeviceRequestHandler)的IP變更destination address http指令,並移除預設的命令:
Router(config)#call-home Router(cfg-call-home)#profile CiscoTAC-1 Router(cfg-call-home-profile)#destination transport-method http Router(cfg-call-home-profile)#destination address http http://X.X.X.X/Transportgateway/services/DeviceRequestHandler Router(cfg-call-home-profile)#no destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService Router(cfg-call-home-profile)#active Router(cfg-call-home-profile)#exit Router(cfg-call-home)#contact-email-addr test@cisco.com Router(cfg-call-home)#service call-home Router(cfg-call-home)#end
5.在SLA-TrustPoint信任點上配置撤銷檢查none:
Router#configure terminal Router(config)#crypto pki trustpoint SLA-TrustPoint Router(ca-trustpoint)#revocation-check none
6.使用從本地SSM檢索到的令牌註冊裝置:
Router#license smart register idtoken < token from SSM On-Prem portal > force
7.驗證裝置是否已正確註冊到SSM On-Prem:
Router#show license status Smart Licensing is ENABLED Utility: Status: DISABLEDData Privacy: Sending Hostname: yes Callhome hostname privacy: DISABLED Smart Licensing hostname privacy: DISABLED Version privacy: DISABLED Transport: Type: Callhome Registration: Status: REGISTERED Smart Account: manudiaz Virtual Account: Default Export-Controlled Functionality: ALLOWED Initial Registration: SUCCEEDED on Jan 20 15:22:12 2020 UTC Last Renewal Attempt: None Next Renewal Attempt: Sept 30 14:22:12 2021 UTC Registration Expires: Oct 19 04:35:44 2021 UTC
如果使用VRF來訪問SSM On-Prem,則必須配置源VRF,以便裝置從正確的VRF生成請求。
檢視SSM內部訪問(SSM On-Prem Access)部分中的步驟,直到步驟3。
1.使用正確的VRF和源介面編輯Call-home配置,您可以在源介面上訪問SSM On-Prem:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#call-home
Router(cfg-call-home)#source-interface gigabitEthernet 0
Router(cfg-call-home)#vrf Mgmt-intf
2.使用分配給VRF的正確介面配置源http-client介面:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip http client source-interface gigabitEthernet 0
3.為特定VRF配置DNS。您可以在本地環境中配置DNS伺服器以解析SSM本地伺服器的名稱:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip name-server vrf Mgmt-intf X.X.X.X X.X.X.X
在這些更改後,您可以繼續執行SSM內部訪問中的步驟5和步驟6。
SLR是一項功能,使您能夠在裝置上部署軟體許可證,而無需直接將使用資訊傳達給思科。此功能在高度安全的網路中非常有用,在擁有智慧許可門戶的平台上受支援。本配置指南假設您已請求並有權使用SLR。
要在裝置中配置SLR,需要從路由器端和CSSM門戶執行這些步驟
1.為SLR配置路由器。您必須運行license smart reservation命令,並在本地請求license smart reservation request的SLR功能。
Router# enable Router# configure terminal Router(config)# license smart reservation Router(config)# exit Router# license smart reservation request local
UDI: PID:ASR1002-X,SN:JAE170XXXXX
Request code: CB-ZASR1002-X:JAE17010XXXX-AxFL8XXXX-XX
在CSSM上,需要保留所需的許可證。
2.登入CSSM。您必須使用思科憑證登入入口網站。
3.選擇「庫存」選項卡。在「Virtual Account」下拉選單中,選擇您的Smart Account。
4.從Licenses頁籤中選擇License Reservation。

5.在輸入請求代碼頁上,輸入或附加從路由器生成的保留請求代碼,然後選擇下一步。

6.選中保留特定許可證框,然後選擇許可證以及每台裝置所需的保留許可證數量。

7.在「複查並確認」選項卡中,選擇「生成授權代碼」。

8.選擇「複製到剪貼簿」以複製代碼,或選擇「作為檔案下載」。您必須將代碼或檔案複製到您的裝置才能繼續該過程。

如果配置SLR,則可以下載或安裝授權碼文本檔案。如果配置永久許可證保留(PLR),則可以複製並貼上授權代碼。
9.登入到裝置,然後運行安裝命令license smart reservation install file bootflash:<SLR file>
Router#enable Router#license smart reservation install file bootflash:
如果需要,您可以返回在裝置中保留的許可證,並返回到未註冊狀態。將生成一個返回代碼,並且必須在CSSM中輸入該代碼才能刪除產品例項:
Router#enable Router#license smart reservation return local
成功註冊裝置後,如果需要,可以使用新功能或許可證更新保留:
1.登入Cisco Smart Software Manager。您必須使用思科提供的使用者名稱和密碼登入門戶。
2.定位至庫存標籤,然後從「虛擬帳戶」下拉選單中選擇智慧帳戶。
3.在產品例項標籤中,為需要更新的裝置選擇操作。
4.選擇更新保留的許可證。
5.選擇要更新的許可證。
6.選擇下一步。
7.在「複查並確認」選項卡中,選擇「生成授權代碼」。系統將顯示Authorization Code頁籤,並顯示生成的授權代碼。
8.選擇「複製到剪貼簿」以複製代碼或將其作為檔案下載。您必須複製代碼或下載檔案到您的裝置。
9.登入到要更新的裝置。
10.運行license smart reservation install file命令。
Router#enable Router#license smart reservation install file bootflash:
要註銷裝置的特定許可證保留,您必須在CLI中返回許可證保留並從CSSM中刪除例項。
1.登入到要註銷的裝置。
2.要刪除許可證保留授權代碼,請運行license smart reservation return命令。
Router#license smart reservation return local This command will remove the license reservation authorization code and the device will transition
back to the unregistered state. Some features may not function properly. Do you want to continue? [yes/no]: yes Enter this return code in Cisco Smart Software Manager portal: UDI: PID:ISR4351/K9,SN:FDO210305DQ CBURR4-cTgMun-arvYME-gta6ir-yqnXQm-yMKxWM-2ajywD-5kADgZ-a33
3.登入CSSM。
4.選擇「庫存」選項卡。在「Virtual Account」下拉選單中,選擇您的智慧帳戶。
5.在Product instance標籤中,對於要註銷的裝置,選擇Actions。
6.選擇刪除。
7.出現提示時,輸入返回代碼。
驗證您已為正確的VRF或全域性路由表正確配置了DNS伺服器。如果需要,您還可以建立靜態DNS條目:
Router(config)#ip host tools.cisco.com 72.163.4.38 173.37.145.8
Router#telnet tools.cisco.com 443 Trying tools.cisco.com (72.163.4.38, 80)... Open
Router#telnet tools.cisco.com 443 /vrf Mgmt-intf Trying tools.cisco.com (72.163.4.38, 443)... Open
當裝置使用權利且不符合條件(負平衡)時,會發生此狀態。 當註冊思科裝置的虛擬帳戶中沒有所需的許可證時,會發生這種情況。
Router#show license all License Authorization: Status: OUT OF COMPLIANCE on Mar 25 15:00:27 2019 CDT Last Communication Attempt: SUCCEEDED on Mar 25 15:12:32 2019 CDT Next Communication Attempt: Mar 26 03:12:31 2019 CDT Communication Deadline: Jun 23 15:06:30 2019 CDT
一些調試可用於解決Call-home和智慧許可註冊問題,包括:
| 修訂 | 發佈日期 | 意見 |
|---|---|---|
4.0 |
23-Jul-2026
|
更新的描述(新增1個字母)、拼寫、語法、插入的水平線以分隔各個部分/可讀性、更新的URL和CCW警報。 |
3.0 |
29-Aug-2024
|
已更新標題、品牌要求、機器翻譯、樣式要求、拼寫和格式。 |
2.0 |
27-Jun-2023
|
已新增Alt文本。已更新標題、品牌要求、機器翻譯、樣式要求、拼寫和格式。 |
1.0 |
24-May-2022
|
初始版本 |