TELNET远程登录
Telnet可以通过终端对本地和远程的网络设备进行集中管理。Telnet协议是TCP/IP协议族中的一员,是Internet远程登陆服务的标准协议和主要方式。
TELNET默认端口:23
认证模式
两种认证模式:
AAA
password
一、TELNET远程登录(password认证)
废话不多说:直接上图
如下便是上图内容:加粗部分都是在命令行的操作(可复制)
建议更改设备名称(以便识别是否成功)
操作环境:AR1(被认证方) AR2(认证方)
第一步:互通
认证方操作:
第二步:开启虚拟用户接口
[AR2]user-interface vty 0 4
第三步:设置认证模式为:password (在这里设置密码为123456,以便记忆)
[AR2-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):123456
第四步:授予用户最大权限(15)如此便不会影响后续操作
[AR2-ui-vty0-4]user privilege level 15
被认证方操作:
第五步:AR1(被认证方)登录测试认证是否成功(password那一步输入刚才设置的密码即可)
[AR1]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
< AR1>telnet 192.168.1.2
Press CTRL_] to quit telnet mode
Trying 192.168.1.2 …
Connected to 192.168.1.2 …
Login authentication
Password:
< AR2>
第六步:改名测试权限:
< AR2>sys
Enter system view, return user view with Ctrl+Z.
[AR2]sys TEST
[TEST]
实验文档保存!
第七步:最后切记路由器操作保存:如下图:为保存成功(另外一台路由器相同操作即可!)
< AR1>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait…
…
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
< AR1>
二、TELNET远程登录(AAA认证)
上图
如下便是上图内容:加粗部分都是在命令行的操作(可复制)
TELNET远程登录(AAA认证)
建议更改设备名称,以便后续操作
设备身份:AR1(被认证方)
AR2(认证方)
第一步:互通
认证方操作:
第二步:开启虚拟用户接口
[AR2]user-interface vty 0 4
第三步:设置认证模式:AAA
[AR2-ui-vty0-4]authentication-mode aaa
第四步:进入aaa视图操作
[AR2-ui-vty0-4]aaa
[AR2-aaa]
第五步:新添用户信息
[AR2-aaa]local-user AR1 password cipher 123456
Info: Add a new user.
第六步:授予AR1用户最大权限
[AR2-aaa]local-user AR1 privilege level 15
被认证方操作:
第七步:AR1远程登录测试
< AR1>telnet 192.168.1.2
Press CTRL_] to quit telnet mode
Trying 192.168.1.2 …
Connected to 192.168.1.2 …
Login authentication
Username:AR1
Password:
第八步:改名为ISP测试权限是否正常
< AR2>sys
Enter system view, return user view with Ctrl+Z.
[AR2]sys ISP
[ISP]
第九步:save命令保存路由器命令(两台路由器操作一样)
< AR1>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait…
…
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
< AR1>