首页 » 网络技术 » Cisco IOS基于角色的CLI视图

Cisco IOS基于角色的CLI视图

Role-Based CLI Access

Packet Tracer 5.3可以做,较旧的IOS版本做不了。

要使用基于角色的CLI视图,需满足:

1。启用AAA
2。设置enable密码(pass、secret均可)

使用方法

进入管理模式
Router#enable view root
Password:
Router#%PARSER-6-VIEW_SWITCH: successfully set to view ‘root’.

Router#conf  t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#parser view test
!创建新视图test
Router(config-view)#%PARSER-6-VIEW_CREATED: view ‘test’ successfully created.

Router(config-view)#secret 0 ipcpu
Router(config-view)#?
View commands:
  commands  Configure commands for a view //设置可以执行的命令
  default   Set a command to its defaults
  exit      Exit from view configuration mode
  no        Negate a command or set its defaults
  secret    Set a secret for the current view
Router(config-view)#

测试,默认没有几个命令
Router#enable view test
Password:
Router#%PARSER-6-VIEW_SWITCH: successfully set to view ‘test’.

Router#?
Exec commands:
  disable     Turn off privileged commands
  enable      Turn on privileged commands
  exit        Exit from the EXEC
  logout      Exit from the EXEC
Router#

官网有几个角色命令的例子,相关命令等级的划分可参考官网

官网链接:
Cisco IOS Role-Based Access Control with SDM

, , , ,

目前这篇文章还没有评论(Rss)

我要评论

icon_wink.gif icon_neutral.gif icon_mad.gif icon_twisted.gif icon_smile.gif icon_eek.gif icon_sad.gif icon_rolleyes.gif icon_razz.gif icon_redface.gif icon_surprised.gif icon_mrgreen.gif icon_lol.gif icon_idea.gif icon_biggrin.gif icon_evil.gif icon_cry.gif icon_cool.gif icon_arrow.gif icon_confused.gif icon_question.gif icon_exclaim.gif 

*
请输入图片中的字符以验证你并非垃圾机器人. 点击图片收听验证码的语音版.
点击这里收听此验证码的语音版本

上一篇:

下一篇: