配置路由器console接口的命令

一、console口常用相關配置

  • 1.進入console視圖
[Huawei]user-interface ? console 0     

  INTEGER<0,34-48,50-54>   The first user terminal interface to be configured

  console                  Primary user terminal interface

  current                  The current user terminal interface

  maximum-vty              The maximum number of VTY users, the default valueis 5

  vty                      The virtual user terminal interface
  • 2.設置連接console超時時間
[Huawei-ui-console0]idle-timeout ?

  INTEGER<0-35791>  Set the number of minutes before a terminal user timesout(default: 10minutes)
  • 3.設置console屏幕顯示行數(shù)和列數(shù)
[Huawei-ui-console0]screen-?     

  screen-length                           

screen-width

-------------------

[Huawei-ui-console0]screen-length ?

  INTEGER<0-512>  Display the number of lines on a screen (the value 0indicates none split screen, and the default value is 24)
  • 4.設置歷史命令緩存大小
[Huawei-ui-console0]history-command max-size ?

  INTEGER<0-256>  The size of a history buffer
  • 5.設置登錄console的用戶級別
[Huawei-ui-console0]user privilege level ?

  INTEGER<0-15>  Set a priority
  • 6.設置登錄console的認證方式
[Huawei-ui-console0]authentication-mode ?

  aaa       AAA authentication

  none      Login without checking

  password  Authentication through the password of a user terminal interface
  • 7.設置登錄console的賬號密碼級別
[Huawei-aaa]local-user test001 password cipher 123456 privilege level 3
  • 8.關聯(lián)上步賬號用于何種服務類型登陸
[Huawei-aaa]local-user test001 service-type ? terminal

  8021x     802.1x user

  bind      Bind authentication user

  ftp       FTP user

  http      Http user

  l2tp      L2tp user

  ppp       PPP user

  ssh       SSH user

  sslvpn    Sslvpn user

  telnet    Telnet  user

  terminal  Terminal user

  web       Web authentication user

  x25-pad   X25-pad user
  • 9.登陸賬號的其他常用屬性設置
[Huawei-aaa]local-user test001 ?

  access-limit   Set access limit of user(s)  #同時多少用戶可以登錄

  ftp-directory  Set user(s) FTP directory permitted  #可以訪問的FTP目錄

  idle-timeout   Set the timeout period for terminal user(s)# 超時時間

  state          Activate/Block the user(s) #設置狀態(tài)(啟用或禁用)

———只以密碼方式登陸———-

  • 10.設置只以密碼方式登陸的密碼
[Huawei-ui-console0]set authentication password ?

  cipher  Set the password with cipher text

  simple  Set the password in plain text
  • 顯示console界面信息
[Huawei]display user-interface console 0

  Idx  Type     Tx/Rx      Modem Privi ActualPrivi Auth  Int    

+ 0    CON 0    9600       -     3     3           N     -      

  +    : 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.

      N: Current UI need not authentication.

      P: Authenticate use current UI's password.

  Int  : The physical location of UIs.
? 版權(quán)聲明
THE END
喜歡就支持一下吧
點贊130 分享
評論 搶沙發(fā)

請登錄后發(fā)表評論

    暫無評論內(nèi)容