这里写自定义目录标题
概述
一般快速敲完命令时间为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
测试一下您的配置信息