R1:
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[R1-GigabitEthernet0/0/0]qu
[R1]telnet server enable
[R1]aaa
[R1-aaa]local
[R1-aaa]local-user orcy privilege level 3 password cipher 123
[R1-aaa]local-user orcy ref="https://xwenw.com/tag/service" target="_blank">service-type telnet
[R1-aaa]qu
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa
Telnet用户名:orcy 密码:123
vty:虚拟终端线路(虚拟接口),路由器为每个远程登录的用户开放一条虚拟线路
R2:
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[R2-GigabitEthernet0/0/0]qu
[R2]qu
<R2>telnet 12.1.1.1
Press CTRL_] to quit telnet mode
Trying 12.1.1.1 ...
Connected to 12.1.1.1 ...
Login authentication
Username:orcy
Password:
<R1>
此时在客户端输入正确的账号密码即可远程登录R1
注:①查看登录用户
<R1>dis access-user
<R1>dis users
②Telnet明文传输数据,远距离不安全(可被抓包或端口镜像)
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)