zl程序教程

您现在的位置是:首页 >  大数据

当前栏目

玩转华为ENSP模拟器系列 | 配置Console用户界面举例

配置华为 系列 玩转 模拟器 Console 举例 ensp
2023-09-14 09:09:07 时间

素材来源:华为路由器配置指南

一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!

附上汇总贴:玩转华为ENSP模拟器系列 | 合集_COCOgsta的博客-CSDN博客_ensp实验大全


目标

在本示例中,通过配置Console用户界面的物理属性、终端属性、用户级别、验证方式和验证密码,实现通过Console口使用Password方式登录设备。

组网需求

在初始化空配置设备或本地维护设备时,用户需要通过Console用户界面登录并进行配置。设备管理员可以根据使用需求或对设备安全性的考虑,可配置Console用户界面的相关属性。

配置思路

  • 配置Console用户界面的物理属性。
  • 配置Console用户界面的终端属性。
  • 配置Console用户界面的用户级别。
  • 配置Console用户界面的验证方式和验证密码。

操作步骤

  1. 配置Console用户界面的物理属性
user-interface con 0
 speed 4800
 parity even
 stopbits 2
找不到flow-control none和databits 6的配置
  1. 配置Console用户界面的终端属性
user-interface con 0
 idle-timeout 30 0
 screen-length 30
 history-command max-size 20
  1. 配置Console用户界面的用户级别
找不到console下的user privilege level 15配置
  1. 配置Console用户界面的用户验证方式为密码验证
user-interface con 0
 authentication-mode password
 set authentication password cipher $1c$,c(HYQ@D%X$sgo'KYf[Y;-|-/.l'F"L]qs@3Bgv|"Iqbe4;8(-C$

Console用户界面配置完成后,用户可以通过Console口使用Password方式登录设备

  1. 验证配置结果

上述配置完成后,执行命令display_user-interface,可以查看Console0的状态。

[~HUAWEI]dis user-interface 0
  Idx  Type     Tx/Rx      Modem Privi ActualPrivi Auth  Int     
  0    CON 0               -     3     -           P     17                  
  +    : Current UI is active.
  F    : Current UI is active and work in async mode.
  Idx  : Absolute index of UIs.
  Type : Type and relative index of UIs.
  Privi: The privilege of UIs.
  ActualPrivi: The actual privilege of user-interface.
  Auth : The authentication mode of UIs.
      A: Authenticate use AAA.
      P: Authenticate use current UI's password.
  Int  : The physical location of UIs.
[~HUAWEI]