本帖最后由 Rocky 于 2018-7-10 23:25 编辑 当前,对于每个型号的路由器,有着一个通用镜像。此镜像有着你需要的所有特性,但为了获取到那些真正所需的高级特性的使用,就需要购买适当的许可证,并在具体设备上对许可证加以验证。这样做的目的是为了思科公司及其客户的便利,以及阻止对思科软件的窃取与未授权共享,可以想象,这些思科软件是花了可观成本去开发的。
购买自思科(零售商)的所有新型号路由器,都带有安装好的基础镜像,以及启用了的许可证。而如果客户想要开启高级安全或是语音特性,那么就需要开启这些特性。这通常是经由使用一个名为思科许可证管理器(Cisco License Manager, CLM)的免费思科应用完成的。在Cisco.com网站可轻易搜寻到此应用:
思科许可证管理器的下载页面
可在某台允许客户在他们的设备与思科公司的许可证门户之间进行操作的服务器或主机上,安装CLM。CLM专注于对当前许可证及各台设备的特性的跟踪,使用图形界面。
思科许可证管理器的图形界面(Image Copyright Cisco Systems Inc.)
每种型号的思科路由器(支持许可证的),都已分配了一个叫做唯一设备标识符(the unique device identifier, UDI)的,唯一识别编号(a unique identifying number)。唯一设备标识符是由序列号及产品身份证组成的(this is compromised of the serial number(SN) and the product identification(PID))。
执行show license udi命令,来查看此信息。
Router#
show license ?all Show license all information
detail Show license detail information
feature Show license feature information
udi Show license udi information
Router#
show license udiDevice# PID SN UDI
--------------------------------------------------------------------
*0 CISCO1941/K9 FTX15240000 CISCO1941/K9:FTX15240000
在www.cisco.com/go/license处将IOS于思科公司进行注册时,就需要输入UDI。还需要把由经销商在你为IOS付款后提供给你的许可证(产品授权密钥,Product Authorization Key, PAK)加入进去,此许可证将与UDI进行比对检查。在验证通过后,思科将发送给你一封许可证密钥的电子邮件。 在下面可以看到有哪些特性也被激活。特性ipbasek9将总是开启的。
Router#
show license allLicense Store: Primary License Storage
StoreIndex: 0 Feature:
ipbasek9 Version: 1.0
License Type: Permanent
License State: Active, In Use
License Count: Non-Counted
License Priority: Medium
License Store: Evaluation License Storage
StoreIndex: 0 Feature: securityk9 Version: 1.0
License Type: Evaluation
License State: Inactive
Evaluation total period: 208 weeks 2 days
Evaluation period left: 208 weeks 2 days
License Count: Non-Counted
License Priority: None
StoreIndex: 1 Feature: datak9 Version: 1.0
License Type: License State: Inactive
Evaluation total period: 208 weeks 2 days
Evaluation period left: 208 weeks 2 days
License Count: Non-Counted
License Priority: None
命令show license feature将打印出已开启的特性摘要信息:
Router#
show license featureFeature name Enforcement Evaluation Subscription Enabled
ipbasek9 no no no yes
securityk9 yes yes no no
datak9 yes no no no
一旦许可证得到验证,就必须通过U盘或网络服务器,及在命令行执行license install [url], 将该许可证密钥添加到路由器。需要注意“.lic”这个文件名。
Router#
dir usbflash0Directory of usbflash0:/
1 -rw- 3064 Apr 18 2013 03:31:18 +00:00 FHH1216P07R_20090528163510702.lic
255537152 bytes total (184524800 bytes free)
Router#
Router#
license install usbflash0:FHH1216P07R_20090528163510702.licInstalling...Feature:datak9...Successful:Supported
1/1 licenses were successfully installed
0/1 licenses were existing licenses
0/1 licenses were failed to install
Router#
*Jun 25 11:18:20.234: %LICENSE-6-INSTALL: Feature datak9 1.0 was installed in this device. UDI=CISCO2951:FHH1216P07R; StoreIndex=0 Primary License Storage
*Jun 25 11:18:20.386: %IOS_LICENSE_IMAGE_APPLICATION-6-LICENSE_LEVEL: Module name = c2951 Next reboot level = datak9 and License = datak9
此时将必须重启该路由器,以激活新的特性集。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !