华为-命令行基础(一)

简介:
====================命令行基础=====================

设置时钟:
<AR1>clock timezone BJ add 08:00:00
<AR1>clock datetime 17:36 2016-10-22
<AR1>display clock 
2016-10-22 17:36:20
Saturday
Time Zone(8) : UTC+08:00
<AR1>clock timezone BJ add 08:00:00 
<AR1>display clock                 
2016-10-22 17:37:04
Saturday
Time Zone(BJ) : UTC+08:00

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

[AR1]header login information "welcome to huawei certification!"
[AR1]header shell information "Please don't reboot the device!"

简单设置console密码:
[AR1]user-interface console 0
[AR1-ui-console0]authentication-mode password 
Please configure the login password (maximum length 16):huawei

[R1]user-interface console 0
[R1-ui-console0]authentication-mode password 
[R1-ui-console0]set authentication password cipher huawei
[R1-ui-console0]idle-timeout 20 0


命令级别:
用户级别    命令等级        名称
0            0          访问级别(ping tracert)
1         0 and 1         监控级(display)
2         0,1 and 2        配置级
3-5        0,1,2 and 3      管理级

<AR1>system-view
[AR1]command-privilege level 3 view user save   
The command level is modified successfully
  
创建一个hw123用户命令级别为0:
[AR1]aaa
[AR1-aaa]local-user hw123 privilege level 0 password cipher hw123
[AR1-aaa]local-user hw123 service-type telnet
[AR1-aaa]q
[AR1]in lo0
[AR1-LoopBack0]ip add 55.1.1.1 32
[AR1-LoopBack0]q

[AR1]user-interface vty 0 4
[AR1-ui-vty0-4]authentication-mode aaa
[AR1-ui-vty0-4]q

创建一个hw345用户命令级别为2:
[AR1]aaa  
[AR1-aaa]local-user hw345 privilege level 2 password cipher hw345

用户界面:
用户界面类型      编号
console        0 
VTY          0-4

[AR1]user-interface vty 0 4
[AR1-ui-vty0-4]

VTY接口最大可配范围为0-14。

用户界面命令:
命令                        功能
idle-timeouut            设置超时时间
screen-length            设置指定终端屏幕的临时显示行数
history-command max-size       设置历史命令缓冲区的大小

<AR1>system-view 
[AR1]user-interface console 0
[AR1-ui-console0]history-command max-size 20
[AR1-ui-console0]idle-timeout 1 30

display history-command   //查看命令历史
display saved-configuration    //查看保存的配置信息

配置登录权限:
命令                            功能
user privilege        配置指定用户界面下的用户级别
set authentication password    配置本地认证密码

<AR1>sy
[AR1]user-interface vty 0 4
[AR1-ui-vty0-4]authentication-mode password 
Please configure the login password (maximum length 16):16
[AR1-ui-vty0-4]set authentication password cipher 123
[AR1-ui-vty0-4]user privilege level 0

[AR1-ui-vty0-4]q



本文转自 sunrisenan 51CTO博客,原文链接:http://blog.51cto.com/sunrisenan/1876351

相关文章
|
27天前
新华三命令行基础
新华三命令行基础
|
12月前
|
SQL 分布式计算 Hadoop
大数据基本开发工具的SSH终端的Mobaxterm
在大数据开发中,SSH终端是必备的工具之一。Mobaxterm是一个基于Windows操作系统的SSH终端和X服务器。它可以让您方便地连接到远程服务器,并使用各种工具进行大数据开发。本文将会介绍如何在Mobaxterm中配置和使用基本的大数据开发工具。
225 0
|
开发者
[oeasy]python0099_雅达利大崩溃_IBM的开放架构_兼容机_oem
[oeasy]python0099_雅达利大崩溃_IBM的开放架构_兼容机_oem
89 0
[oeasy]python0099_雅达利大崩溃_IBM的开放架构_兼容机_oem
|
网络协议 Shell 网络虚拟化
思科模拟器常用命令
思科模拟器常用命令
1061 0
|
Linux 开发工具 内存技术
海思3559kernel移植(一):一路next的默认模式
安装环境篇过后的sdk包里实际上并没有kernel的源码
218 0
|
前端开发 关系型数据库 Java
国外开源IoT平台Thingsboard社区版本(V3.3.2)在Win10环境下进行源码编译及运行指南
国外开源IoT平台Thingsboard社区版本(V3.3.2)在Win10环境下进行源码编译及运行指南
881 0
国外开源IoT平台Thingsboard社区版本(V3.3.2)在Win10环境下进行源码编译及运行指南
|
前端开发 关系型数据库 MySQL
开源云真机平台sonic-1.5.0版本部署实践
介绍演示部署的全过程: ● 安装docker、docker-compose ● 安装MySQL,创建sonic数据库 ● 安装jdk及Android SDK ● 部署sonic,注册agent ● 部署agent,连接使用手机
开源云真机平台sonic-1.5.0版本部署实践
|
存储 安全 区块链
使用VSCode连接到IBM Cloud区块链网络
使用VSCode连接到IBM Cloud区块链网络
使用VSCode连接到IBM Cloud区块链网络
|
传感器 人工智能 编解码
华为「尽全力」发布了P50系列:原生搭载鸿蒙,5G改4G
P50 是一款迟到四个月的旗舰,华为为了让它实现一直以来的水准可谓竭尽所能。
134 0
华为「尽全力」发布了P50系列:原生搭载鸿蒙,5G改4G