华为命令行基础

概述

一般快速敲完命令时间为5分钟。

命令功能

dis cur

sysname R1

注释:进入用户模式才能使用clock.(ctril+z)
clock timezone bj add 08:00:00
clock datetime 08:58:00 2021-06-08

在这里插入图片描述

dis clock

user-interface vty 0 4
authentication-mode password

set authentication password cipher 123456

idle-timeout 1 10

user privilege level 15

header login information “welcome to lgb”
header shell information “come in classroom”

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

应用场景:
我们为什么使用vty,主要是为了远程访问路由器使用,比如telnet 或者ssh
在这里插入图片描述
路由器R1的配置:
在这里插入图片描述

路由器R2的配置:

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
远程登录路由器后,能做远程配置,需要提权。

在这里插入图片描述
在这里插入图片描述


user-interface console 0
authentication-mode password

set authentication password cipher 123456

idle-timeout 0 0



dis cur

进入接口,配置IP地址 :ip address 200.1.1.1 24
description connet to beijing

dis startup

save

dis startup

reset save(不要轻易使用)

测试连通性:

ping

telnet


测试一下您的配置信息

おすすめ

転載: blog.csdn.net/qq_40168905/article/details/117110900
おすすめ