一、 本地登入
1. 隻需輸入password即可登陸
[SwitchA]user-interface aux 0 #進入使用者界面視圖
[SwitchA-line-aux0]authentication-mode password #設定認證方式為密碼驗證方式
[SwitchA-line-aux0]set authentication password simple huawei #設定登陸驗證的password為明文密碼”huawei”
[SwitchA-line-aux0]user-role network-admin #配置登陸使用者的級别為管理者權限
注:如果不改scheme模式,退出後将無法登陸
2. 需輸入username和password才可登陸
[SwitchA]user-interface aux 0 #進入使用者界面視圖
[SwitchA-ui-aux0] authentication-mode scheme #配置本地使用者名和密碼認證
[SwitchA-ui-aux0] set authentication password simple huawei #設定登陸驗證的password為明文密碼”huawei”
配置本地TELNET使用者,使用者名為”huawei”,密碼為”huawei”,權限為最進階别3(預設為級别1)
[SwitchA]local-user huawei
[SwitchA-user-huawei]password simple huawei
[SwitchA-user-huawei]service-type telnet level 3
二、 遠端登陸
1. 隻需輸入password即可登陸
[SwitchA]user-interface vty 0 4 #進入使用者界面視圖
[SwitchA-ui-vty0-4]authentication-mode password #設定認證方式為密碼驗證方式
[SwitchA-ui-vty0-4]set authentication password simple huawei #設定登陸驗證的password為明文密碼”huawei”
[SwitchA-ui-vty0-4]user privilege level 3 #配置登陸使用者的級别為最進階别3(預設為級别1)
[SwitchA]telnet server enable #開啟telnet服務
2. 需輸入username和password才可登陸
[SwitchA]user-interface vty 0 4 #進入使用者界面視圖
[SwitchA-ui-vty0-4]authentication-mode scheme #配置遠端使用者名和密碼認證
[SwitchA-ui-vty0-4]protocol inbound telnet #選擇登入方式為telnet
[SwitchA]local-user huawei #配置本地TELNET使用者,使用者名為”huawei”
[SwitchA-user-huawei]password simple huawei #密碼為”huawei”
[SwitchA-user-huawei]service-type telnet level 3 #權限為最進階别3(預設為級别1)
注:上述指令為v5修改權限,v7修改如:[SwitchA-user-huawei]authorization-attribute user-role level-3
[SwitchA-user-huawei]service-type telnet #服務類型為telnet
[SwitchA]telnet server enable #開啟telnet服務