手把手教你如何使用telnet方式管理交换机(ensp)

您所在的位置:网站首页 怎样开启telnet 手把手教你如何使用telnet方式管理交换机(ensp)

手把手教你如何使用telnet方式管理交换机(ensp)

2024-07-10 18:43| 来源: 网络整理| 查看: 265

目录

一、telnet服务

二、进入ensp三个必打命令

三、服务器server交换机详细配置

四、客户机client如何配置

五、总结

一、telnet服务

应用层有Telnet服务

PS:telnet使用的是TCP的23号端口

        telnet一般采用C/S架构,开启telnet功能的主机是服务器(server)模式,等待用户使用telnet远程登陆上本机,客户机是(client)模式使用telnet协议远程登陆上telnet服务器

二、进入ensp三个必打命令

       首先进入华为ensp,然后新建拓扑后,拖两个双层交换机至空白处,一个作为服务器,一个作为客户机,并将他们连线后然后启动。

  

 双击server交换机后,三个必敲命令:

(1)undo terminal monitor

(2)[Huawei]sysname server

(3)[server]user-interface console 0

          idle-timeout 0

undo terminal monitor//关闭弹窗,防止在配置的时候总是弹出系统信息打断你 Info: Current terminal monitor is off. system-view//进入系统视图 Enter system view, return user view with Ctrl+Z. [Huawei] [Huawei]sysname server//把服务器名称改成server [server]user-interface console 0 [server-ui-console0]idle-timeout 0//设置会话永不超时 [server-ui-console0]return

三、服务器server交换机详细配置

1)  PS:交换机物理接口下不能配置IP地址,交换机有虚拟接口,默认接口叫vlanif 1,我们可以给默认虚拟地址配置IP,即给二层交换机配置一个管理IP。

system-view //一定要在系统视图下配置交换机管理IP Enter system view, return user view with Ctrl+Z. [server]interface Vlanif 1//交换机默认虚拟接口 [server-Vlanif1]ip address 192.168.1.10 24//给交换机配置管理IP [server-Vlanif1][server-Vlanif1]quit [server]

2)开启telnet功能

[server]user-interface vty 0 4//Vty 叫线程数,0 4允许五个人通道 [server-ui-vty0-4]

3)设置telnet模式为密码模式

[server-ui-vty0-4]authentication-mode password //telnet模式为密码模式

4)设置明文/密文密码

[server-ui-vty0-4]set authentication password simple huawei// simple是明文,密文是cipher,设置的密码是huawei

 5)设置一下用户权限

[server-ui-vty0-4]user privilege level 3//level 3是有管理权限的

四、客户机client如何配置

1)启动一下客户机,并敲上三个必打命令

undo terminal monitor Info: Current terminal monitor is off. system-view Enter system view, return user view with Ctrl+Z. [Huawei]sysname client [client]user-interface console 0 [client-ui-console0]idle-timeout 0 [client-ui-console0]q [client]

2)配置client管理IP

[client]interface vlanif 1 [client-Vlanif1]ip address 192.168.1.20 24 [client-Vlanif1]

 3)客户机上验证telnet服务器是否可以登录(在用户视图下)

telnet 192.168.1.10//telnet服务器的管理IP Trying 192.168.1.10 ... Press CTRL+K to abort Connected to 192.168.1.10 ... Login authentication Password: //这里输入密码时不会出现字符,你只需要输入正确的密码回车就行了 Info: The max number of VTY users is 5, and the number of current VTY users on line is 1. The current login time is 2021-08-05 21:35:14.

4)可以在客户机上保存服务器的配置信息 

save//保存 The current configuration will be written to the device. Are you sure to continue?[Y/N]Y//这里输入Y Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]://这里回车就好了 Now saving the current configuration to the slot 0. Save the configuration successfully.

5)display current-configuration //可以查看当前配置 (在系统视图下)

      display saved-configuration //可以查看已经保存好的配置(在系统视图下)

五、总结

1.服分器上设置管理IP [ ]interface vlanif 1 ip address 192.168.1.10 255.255.255.0

2.开启telnet功能 [ ]user-interface vty 0 4

3.没罟teInet模式为密码模式 authentication-mode password

4.设置明文/密文密码 set authentication password simple huawei user priviliage level 3

s.客戸机上没置管理IP [ ]interface vlanif 1 ip address 192.168.1.20 255.255.255.0

6.客戸机驗証teInet服努器是否可以登彖 < >telnet 192.168.1.10



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3