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

目录

一、telnet服务

二、进入ensp三个必打命令

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

四、客户机client如何配置

五、总结


一、telnet服务

应用层有Telnet服务

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

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

二、进入ensp三个必打命令

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

  

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

(1)<Huawei>undo terminal monitor

(2)[Huawei]sysname server

(3)[server]user-interface console 0

          idle-timeout 0

<Huawei>undo terminal monitor//关闭弹窗,防止在配置的时候总是弹出系统信息打断你  
Info: Current terminal monitor is off.

<Huawei>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>

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

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

<server>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)启动一下客户机,并敲上三个必打命令

<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>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服务器是否可以登录(在用户视图下)

<client>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.
<server>

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

<server>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.
<server>

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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值