美文网首页
华为、H3C、思科console认证基本配置

华为、H3C、思科console认证基本配置

作者: 小邢_ | 来源:发表于2020-03-24 23:45 被阅读0次

思科console认证基本配置

Switch>    //用户模式
Switch> enable    //进入特权模式
Switch# config terminal    //进入配置模式
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)# line console 0    //进入console接口
Switch(config-line)# password XingXinChao    //设置console密码
Switch(config-line)# login    //开关命令,即通过console登陆的时候需要密码认证

华为console认证基本配置

方法一:以密码认证方式登录console
<Huawei> sys    //进入系统视图
Enter system view, return user view with Ctrl+Z.
[Huawei] user-interface console 0    //进入console接口
[Huawei-ui-console0] authentication-mode password    //设置认证模式为密码认证
[Huawei-ui-console0] set authentication password cipher XingXinChao    设置password密码

方法二:以用户+密码方式认证登录console
[Huawei]user-interface console 0    //进入console接口
[Huawei-ui-console0]authentication-mode aaa    //设置认证模式为AAA认证
[Huawei]aaa    //进入AAA
[Huawei-aaa]local-user xingxinchao password cipher xingxinchao    //创建用户和密码
[Huawei-aaa]local-user xingxinchao service-type terminal    //为本地用户指定服务器类型,这里指定的是terminal(为终端服务类型即console口)
[Huawei-aaa]local-user xingxinchao privilege level 15    //设置用户权限级别;可省略

其他可选配置(console口配置视图)
# idle-timeout <0-35791>    //配置用户超时登陆时间(minute)
# screen-length <0-512>    //配置终端屏幕显示行数,即在终端屏幕上最多显示的信息行数
# history-command max-size <0-256>    //配置终端历史命令缓存区大小,即缓存区存储的历史命令行数

H3C配置console认证

方法一:以密码认证方式登录console
<H3C>sys    //进入系统视图
System View: return to User View with Ctrl+Z.
[H3C]user-interface console 0    //进入console接口
[H3C-line-console0]authentication-mode password    //设置认证模式为密码认证
[H3C-line-console0]set authentication password simple XingXinChao    //设置password密码

方法二:以用户+密码的方式登录console
[H3C]user-interface console 0    //进入console接口
[H3C-line-console0]authentication-mode ?
  none      Login without authentication
  password  Password authentication
  scheme    Authentication use AAA
[H3C-line-console0]authentication-mode scheme    //设置console认证为scheme "scheme相当于AAA"
[H3C-line-console0]quit
[H3C]local-user xingxinchao    //创建用户
[H3C-luser-manage-xingxinchao]password simple xingxinchao    //为用户设置密码
[H3C-luser-manage-xingxinchao]service-type terminal    //为本地用户指定服务器类型,这里指定的是terminal(为终端服务类型即console口)

其他可选配置(console口配置视图)
# idle-timeout <0-35791>    //配置用户超时登陆时间(minute)
# screen-length <0-512>    //配置终端屏幕显示行数,即在终端屏幕上最多显示的信息行数
# history-command max-size <0-256>    //配置终端历史命令缓存区大小,即缓存区存储的历史命令行数

相关文章

网友评论

      本文标题:华为、H3C、思科console认证基本配置

      本文链接:https://www.haomeiwen.com/subject/wcjayhtx.html