华为命令行基础

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了华为命令行基础相关的知识,希望对你有一定的参考价值。

  不能算是原创,只能说是自己整理的!!


命令行基础


基本配置

sysname     配置设备名称

    sysname RTA


配置系统时钟

clock timezone  设置所在时区

clock datetime  设置当前时间和日期

clock daylight-saving-time  设置采用夏时制

    clock timezone BJ add 08:00:00

    clock datetime 10:20:90 2013-04-11

    display clock


配置标题消息

header login    配置在用户登录前显示的标题消息

header shell    配置在用户登录后显示的标题消息

    header login information "welcome to huawei certification"

    header shell information "please don‘t reboot the device"


命令等级

system-view

command-privilege level 3 view user save


用户界面

system-view

user-interface vty 0 4


配置用户界面命令

idle-timeout    设置超时时间

screen-length   设置指定终端屏幕的临时显示行数

history-command max-size    设置历史命令缓冲区的大小


配置登录权限

user privilege  配置指定用户界面下的用户级别

set authentication password 配置本地认证密码

    system-view

    user-interface vty 0 4

    user privilege level 2

    set authentication password cipher huawei


配置接口IP地址

system-view

interface gigabitethernet 0/0/0

ip address 10.0.12.1 255.255.255.0/0/0

interface loopback 0

ip address 1.1.1.1 32


本文出自 “无觉的BLoG” 博客,请务必保留此出处http://wujue.blog.51cto.com/11999347/1880982

以上是关于华为命令行基础的主要内容,如果未能解决你的问题,请参考以下文章

华为认证欧拉openEuler-HCIA命令行操作基础

华为交换机命令行操作小结

华为设备VRP基础命令一

华为交换机基础操作

华为交换机的命令行

华为的18-23路由怎么在命令行下限制访问某些网站?