一、telnet远程访问协议配置
1、telnet远程控制拓扑图
实现功能:AR1路由器模拟访问主机,AR2路由器通过配置telnet远程控制协议,实现远程控制。
2、项目操作步骤
AR1基本配置(客户端)
<Huawei>system-view [Huawei]sysname AR1 [AR1]interface GigabitEthernet 0/0/0 [AR1-GigabitEthernet0/0/0]ip address 192.168.10.1 255.255.255.0 [AR1-GigabitEthernet0/0/0]quit <AR1>save
AR2路由配置telnet远程访问协议
<Huawei>system-view [Huawei]sysname AR2 [AR2]interface GigabitEthernet 0/0/0 [AR2-GigabitEthernet0/0/0]ip address 192.168.10.2 255.255.255.0 [AR2-GigabitEthernet0/0/0]quit <AR2>save
[AR2]aaa #进入aaa模式
[AR2-aaa]local-user liu password cipher a888888888 #配置用户名以及密码
[AR2-aaa]local-user liu priviledge level 15 #配置用户访问级别
[AR2-aaa]local-user liu service-type telnet #配置用户telnet访问服务
[AR2-aaa]quit
[AR2]user-interface vty 0 4 #配置远程服务数量
[AR2-ui-vty0-4]authentication-mode aaa #配置访问模式为aaa
[AR2-ui-vty0-4]protocol inbound telnet #配置允许登录接入用户类型的协议,也可以不配置
<AR2>save
二、ssh远程访问协议配置
AR1交换机配置
<Huawei>system-view [Huawei]sysname AR1 [AR1]interface GigabitEthernet 0/0/0 [AR1-GigabitEthernet0/0/0]ip address 192.168.10.1 255.255.255.0 [AR1-GigabitEthernet0/0/0]quit <AR1>save
AR2交换机配置
<Huawei>system-view [Huawei]sysname AR2 [AR2]interface GigabitEthernet 0/0/0 [AR2-GigabitEthernet0/0/0]ip address 192.168.10.2 255.255.255.0 [AR2-GigabitEthernet0/0/0]quit <AR2>save
[AR2]stelnet server enable #启动ssh服务 [AR2]aaa #进入aaa模式 [AR2-aaa]local-user liu password cipher a888888888 #配置用户名以及密码 [AR2-aaa]local-user liu priviledge level 15 #配置用户访问级别 [AR2-aaa]local-user liu service-type sshh #允许ssh服务 [AR2-aaa]quit [AR2]user-interface vty 0 4 #配置远程服务数量 [AR2-ui-vty0-4]authentication-mode aaa #配置访问模式为aaa [AR2-ui-vty0-4]protocol inbound ssh #配置允许登录接入用户类型的协议是ssh <AR2>save
在AR1 stelnet 192.168.20.2 输入用户名liu、密码a888888888 即可登录成功标签:华三,AR2,aaa,AR1,配置,GigabitEthernet0,telnet,ssh From: https://www.cnblogs.com/lvjing/p/17482998.html