Telnet远程登录
拓扑图
一台路由器、本地终端Host_1
实验步骤
1.路由器配置ip地址
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname R1
[R1]ip add
[R1]ip addre
[R1]int g0/0
[R1-GigabitEthernet0/0]ip add
[R1-GigabitEthernet0/0]ip address 1.1.1.1 24
2.查看配置是否成功
[R1]int g0/0
[R1-GigabitEthernet0/0]ip add 192.168.54.1 24
[R1-GigabitEthernet0/0]dis this
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 192.168.54.1 255.255.255.0
#
return
[R1-GigabitEthernet0/0]quit
[R1]dis ip int b
*down: administratively down
(s): spoofing (l): loopback
Interface Physical Protocol IP address/Mask VPN instance Description
GE0/0 up up 192.168.54.1/24 -- --
GE0/1 down down -- -- --
GE0/2 down down -- -- --
GE5/0 down down -- -- --
GE5/1 down down -- -- --
GE6/0 down down -- -- --
GE6/1 down down -- -- --
Ser1/0 down down -- -- --
Ser2/0 down down -- -- --
Ser3/0 down down -- -- --
Ser4/0 down down -- -- --
3.配置本地终端ip地址
打开设置——网络和Internet——以太网——更改适配器选项——VirtualBox Host-Only Ethernet Adapter——ipv4
4.尝试在路由器ping 192.168.54.2 失败,原因是未打开防火墙icmp的入站策略
5.配置telnet服务
[R1]telnet ser en
[R1]local-user jya class manage
New local user added.
[R1-luser-manage-jya]password simple qwer123456
[R1-luser-manage-jya]service-type telnet
[R1-luser-manage-jya]authorization-attribute user-role level-15
[R1-luser-manage-jya]quit
[R1]user-interface vty 0 4
[R1-line-vty0-4]authentication-mode scheme
6.尝试Telnet远程登录
打开CRT——选择telnet
输入用户名jya和密码qwer123456,成功