telnet远程登录AAA认证

在这里插入图片描述

R1设置IP地址
<Huawei>system-view     //进入全局配置模式
[Huawei]sysname R1     //改名
[R1]undo info-center enable     //关闭信息告警提示
[R1]interface g0/0/0     //进入g/0/0接口
[R1-GigabitEthernet0/0/0]ip address 192.168.100.1 24     //配置IP地址
R1配置认证模式为AAA认证
[R1]user-interface vty 0 4     //用户界面vty 0 4     
//user-interface 是指用户界面
//vty ,全称为Virtual Teletype Terminal,指虚拟终端。不带vty的,就是实实在在的端口。
//0 4 :0是初始值,4是结束值。表示可同时打开5个会话,进入交换机去配置命令,并且使用的配置都是一样的。
[R1-ui-vty0-4]authentication-mode aaa     //使用AAA认证模式
[R1-ui-vty0-4]quit     //退出
[R1]aaa     //进入AAA认证模式
[R1-aaa]local-user admin password cipher admin@123     //创建用户名和密码
[R1-aaa]local-user admin service-type telnet     //设置用户需要的服务,telnet
[R1-aaa]local-user admin privilege level 15     //设置用户权限登记
[R1-aaa]quit     //退出
[R1]  
R2设置IP地址
<Huawei>system-view      //进入全局配置模式
[Huawei]sysname R2     //改名
[R2]undo info-center enable     //关闭信息告警提示 
[R2]interface g0/0/0     //进入g/0/0接口
[R2-GigabitEthernet0/0/0]ip address 192.168.100.2 24     //配置IP地址
[R2-GigabitEthernet0/0/0]quit     //退出
R2测试是否可以跟R1通信
[R2]ping 192.168.100.1     //测试是否可以ping通
  PING 192.168.100.1: 56  data bytes, press CTRL_C to break
    Reply from 192.168.100.1: bytes=56 Sequence=1 ttl=255 time=100 ms     //可以ping通
    Reply from 192.168.100.1: bytes=56 Sequence=2 ttl=255 time=80 ms
    Reply from 192.168.100.1: bytes=56 Sequence=3 ttl=255 time=70 ms
    Reply from 192.168.100.1: bytes=56 Sequence=4 ttl=255 time=80 ms
    Reply from 192.168.100.1: bytes=56 Sequence=5 ttl=255 time=60 ms

  --- 192.168.100.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 60/78/100 ms

[R2]quit
R2远程R1路由器
 <R2>telnet 192.168.100.1     //telnet连接192.168.100.1
  Press CTRL_] to quit telnet mode
  Trying 192.168.100.1 ...
  Connected to 192.168.100.1 ...

Login authentication


Username:admin     //输入用户名
Password:     //输入密码
<R1>     //成功登陆
发布了68 篇原创文章 · 获赞 23 · 访问量 7831

猜你喜欢

转载自blog.csdn.net/Yang__Qi/article/details/101643094