Basic configuration of Huawei switches

                                                              一些华为的基础的命令行

system-view ------ Enter the system view
sysname-------R1 Modify the host name to R1

display version ------ display version

display current-configuration ------- View the current configuration of the switch

save ----The command to save the current configuration after the switch is configured
aaa-----enter the triple A view
vlan10-----create a vlan10
display port vlan------display the current status of each port vlan
undo terminal monitor-----Close the prompt log
quit-----Return to the previous level

   配置控制台会话时间(默认控制台时间为10分钟 )重回初始界面
         [R1]user-interface console 0
             R1-ui-console0]idle-timeout 100
    修改显示行数(解决信息显示行数过少)
         [R1-ui-console0]screen-length 24
    配置密码登录终端
        [R1]user-interface console 0
            [R1-ui-console0]set authentication password cipher 123
            [R1-ui-console0]authentication-mode password 
    配置账户和密码登录终端
        [R1]aaa
            [R1-aaa]local-user R1 password cipher 789
            [R1-aaa]quit
            [R1]user-interface console 0
            [R1-ui-console0]authentication-mode aaa

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325323721&siteId=291194637