Telnet登录

  1. 拓扑图
    在这里插入图片描述
    1. ip配置
[AR1-GigabitEthernet0/0/0]dis this	
[V200R003C00]
#
interface GigabitEthernet0/0/0
 ip address 10.1.12.1 255.255.255.0 
#
return
[AR1-GigabitEthernet0/0/0]
[AR2-GigabitEthernet0/0/0]dis this
[V200R003C00]
#
interface GigabitEthernet0/0/0
 ip address 10.1.12.2 255.255.255.0 
#
return
[AR2-GigabitEthernet0/0/0]
[AR2]ping 10.1.12.1
  PING 10.1.12.1: 56  data bytes, press CTRL_C to break
    Reply from 10.1.12.1: bytes=56 Sequence=1 ttl=255 time=50 ms
    Reply from 10.1.12.1: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 10.1.12.1: bytes=56 Sequence=3 ttl=255 time=10 ms
    Reply from 10.1.12.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 10.1.12.1: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 10.1.12.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/24/50 ms

[AR2]
  1. 用户登录窗口配置
[AR1]user-interface vty 0 4								#进入vty视图
[AR1-ui-vty0-4]authentication-mode aaa		#使用aaa认证模式
[AR1-ui-vty0-4]
[AR1-ui-vty0-4]aaa												#进入aaa视图
[AR1-aaa]
[AR1-aaa]local-user lx password cipher Huawei@123		#创建用户lx设置密码为Huawei@123
Info: Add a new user.
[AR1-aaa]
[AR1-aaa]local-user lx privilege level 15						#设置用户的等级权限
[AR1-aaa]
[AR1-aaa]local-user lx service-type telnet 					#设置用户登录模式
  1. 测试
<AR2>telnet 10.1.12.1
  Press CTRL_] to quit telnet mode
  Trying 10.1.12.1 ...
  Connected to 10.1.12.1 ...

Login authentication

Username:lx													#输入用户名
Password:														#输入密码(密码不回)
  -----------------------------------------------------------------------------     
  User last login information:     
  -----------------------------------------------------------------------------
  Access Type: Telnet      
  IP-Address : 10.1.12.2     
  Time       : 2022-11-08 23:24:46-08:00     
  -----------------------------------------------------------------------------
<AR1>
<AR1>
<AR1>
<AR1>sy
Enter system view, return user view with Ctrl+Z.
[AR1]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值