7.5-Telnet配置

目录 网络
7.5-Telnet配置-下一朵云
图1 Telnet配置示例

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 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明文传输数据,远距离不安全(可被抓包或端口镜像)

7.5-Telnet配置-下一朵云
图2 Telnet报文分析