
1、建立网络拓扑模型,在R2做普通密码Telnet认证,R1上做aaa认证,其中R1 ip地址为:192.168.1.1 /24 R2为:192.168.1.2 /24。
2、修改R1、R2基本信息,并在接口模式下分别添加ip地址,并ping测试通信。
3、在R2上配置Telnet认证:1】调用虚拟接口0 4 2】设置认证模式为密码认证,3】设置密码为huawei1,4】设置用户级别为3。
4、在R1上Telnet 192.168.1.2 ,输入密码,成功登陆R2。
实验内容:
R1:机房设备,R2、R3模拟PC进行远程登陆R1,配置telnet两种认证方式
实验步骤:
1.使用ensp建立拓扑。
2.配置各设备端口ip地址:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]INT G0/0/0
[R1-GigabitEthernet0/0/0]IP ADDR 10.1.1.254 24
<Huawei>SYS
Enter system view, return user view with Ctrl+Z.
[Huawei]SYS R2
[R2]INT G0/0/0
[R2-GigabitEthernet0/0/0]IP ADDR 10.1.1.1 24
------------------------------------------------------------------------------------------------
<Huawei>SYS
Enter system view, return user view with Ctrl+Z.
[Huawei]SYS R3
[R3]INT G0/0/0
[R3-GigabitEthernet0/0/0]IP ADDR 10.1.1.2 24
################################################################
3.配置password认证
R1上配置telnet 验证方式为密码验证方式,密码为huawei,并设置密文存储,
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode password ***
Please configure the login password (maximum length 16):huawei ***
-----------------------------------------------------
<R2>telnet 10.1.1.254
*** Press CTRL_] to quit telnet mode
*** Trying 10.1.1.254 ...
*** Connected to 10.1.1.254 ...***
Login authentication
Password:
<R1>
###############################################################
4.配置aaa认证
***[R1]aaa ***
[R1-aaa]local-user admin password cipher hello privilege level 3 //添加admin账户密码为hello,密文保存,用户权限3
[R1-aaa]local-user admin service-type telnet
[R1-aaa]q
***[R1]user-interface vty 0 4 ***
***[R1-ui-vty0-4]authentication-mode aaa ***
***###############################################################*********
修改两个设备命名,配置R1 R2接口IP地址
R1:int g0/0/0
ip address 192.168.1.1 24
R2: int g0/0/0
ip address 192.168.1.2 24
验证:
一、配置console 口
R1:
user-interface console 0
authentication-mode password
回车键
Please configure the login password (maximum length 16):16
set authentication password cipher huawei
方法二:设置用户名和密码登录
R1:user-interface vty 0 4
autioncation-mode aaa
aaa
local-user admin password cipher huawei
local-user admin privlege level 3
local-user admin service-type telnet
验证:
三:配置stelnet
R1:
rsa locallocal-key-pair create (生成本地密钥)
user-interface vty 0 4 进入VTY用户界面
autioncation-mode aaa 配置认证为AAA
protocol inbond ssh指定VTY类型用户只支持SSH协议
aaa
local-user guest password cipher huawei privlege level 3
local-user guest service-type ssh用户名和密码用于SSH
ssh user guest authention-type password指定SSH用户的认证方式为密码认证
stelnet server enable开启STELNET服务
验证:
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)