在虚机中设置Telnet及Console口相关配置命令及使用SecureCRT方法

一、给路由器配置地址命令

[H3C]interface GigabitEthernet 0/0 指定接口

[H3C-GigabitEthernet0/0]ip address 192.168.112.254 24 指定地址

[H3C-GigabitEthernet0/0]no shutdown /undo shutdown开启端口

[H3C-GigabitEthernet0/0]display this 显示接口信息

[H3C]telnet server enable 开启远程登陆

[H3C]user-interface ? 调出所有端口

[H3C]user-interface vty 0 ? 选择虚拟机端口

[H3C]user-interface vty 0 63 选择虚拟机端口范围0-63

[H3C-line-vty0-63]? 显示可配置的参数

[H3C-line-vty0-63]authentication-mode ? telnet验证方式

[H3C]user-interface console 0 配置Console口

[H3C-line-console0]authentication-mode ? Console口验证方式

[H3C-line-console0]authentication-mode password 需要密码连接Console



二、主机ping模拟器中的路由器

模拟器中新增Host1

将路由器GE_0/0 ip更改为电脑网段,如192.168.112.254 24

主机上打开命令PING 192.168.112.254 ping通



三、主机ping模拟器中链接虚拟机的路由器

将模拟器中路由器配置虚拟网卡网段,如192.168.56.254


路由器配置

主机ping模拟器中链接虚拟机的路由器



四、telnet虚拟机路由器

[H3C]telnet server enable 开启telent端口

[H3C]user-interface ? 调出所有端口

[H3C]user-interface vty 0 ? 选择虚拟机端口

[H3C]user-interface vty 0 63 选择虚拟机端口范围0-63

[H3C-line-vty0-63]? 显示可配置的参数

[H3C-line-vty0-63]authentication-mode ? telnet验证方式


[H3C]user-interface ? 调出所有端口

选择

[H3C]user-interface vty 0 ?

[H3C]user-interface vty 0 63

显示可配置的参数 [H3C-line-vty0-63]?



telnet验证方式 [H3C-line-vty0-63]authentication-mode ?


none 无需输入账号密码,无需登录,连接即登录

password 需输入密码

scheme 需要输入用户名和密码

五、无需输密码模式链接

[H3C-line-vty0-63]authentication-mode none


用终端仿真程序SecureCRT添加Telnet ,添加完成验证



后台我们可以看到有连接信息过来


闲置时间设置(telnet连接无操作关闭时间)

[H3C-line-vty0-63]idle-timeout ? 闲置时间设置

[H3C-line-vty0-63]idle-timeout 20 闲置时间设置20秒


六、设置密码模式

[H3C-line-vty0-63]authentication-mode password 设置密码模式

[H3C-line-vty0-63]set authentication password simple admin123 设置简单密码

[H3C-line-vty0-63]display this 展示所做的设置

需输密码进入

七、配置Console口密码

[H3C]user-interface ? 展示界面连接方式

[H3C]user-interface console ? 显示Console连接

[H3C]user-interface console 0 配置Console口

[H3C-line-console0]authentication-mode ? Console口验证方式

none Login without authentication 直连,无需密码

password Password authentication 需要密码

scheme Authentication use AAA 需要账户和密码

[H3C-line-console0]authentication-mode password 需要密码连接Console

[H3C-line-console0]set authentication password simple admin123 设置简单的密码

[H3C-line-console0]idle-timeout 20 设置时间设置20秒

[H3C-line-console0]quit 退出

[H3C]quit 退出

<H3C>quit 退出


退出后重新连接,出现需要填入密码

版权声明:

作者: freeclashnode

链接: https://www.freeclashnode.com/news/article-4040.htm

来源: FreeClashNode

文章版权归作者所有,未经允许请勿转载。

免费节点实时更新

热门文章

最新文章

归档