适当减少手机使用,有助于视力保护... 新的一年祝您:身体健康,阖家欢乐!~~

h3c 模拟器交换机S6850 telnet配置

浏览量:526 作者:admin 类别:: 学习笔记 更新时间:2022-02-04 18:25:28

参考:https://blog.csdn.net/techcai/article/details/69566944


问题一:按照以前的情况设置完h3c交换机,进telnet 一进就显示登陆失败。


配置下认证模式:


[H3C]user-interface vty 0 4 //进入虚拟端口,此处表示对同时登录0,1,2,3,4的5个用户进行设置


[H3C-line-vty0-4]authentication-mode ? //选择认证模式


          none      Login without authentication  //不认证,即不需要输入用户名和密码,风险较大

        

          password  Password authentication //Password认证,需要输入正确的密码即可认证登录

        

          scheme    Authentication use AAA //要同时输入正确的用户名和密码才能认证登录,此次实验是这种方式


[H3C-line-vty0-4]authentication-mode scheme //选择认证模式为Scheme


[H3C-line-vty0-4]user-role level-15  //设置登录用户的等级为15级最高   这个我是没有设置就已经可以登陆。我在是local-user配置的权限。


问题一:配置完,能ping通,但telnet连接失败,一般是由于没有开启telnet服务:


[H3C]    telnet server enable



这里补充下过程:(最简单的vlan 1 telnet 访问) 系统视图下完成,tab键可以自动补全,新手最好补全一下


第一步:设置vlan 1 ip


<H3C>sys

System View: return to User View with Ctrl+Z.

[H3C]inte

[H3C]interface vlan 1

[H3C-Vlan-interface1]ip add

[H3C-Vlan-interface1]ip address 192.168.1.200 255.255.255.0

[H3C-Vlan-interface1]quit

[H3C]


第二步:设置一个用户 admin ,并设置密码,权限等级,并开启相应的服务


[H3C]local

[H3C]local-u

[H3C]local-user admin

[H3C-luser-manage-admin]pas

[H3C-luser-manage-admin]password sima

[H3C-luser-manage-admin]password simp

[H3C-luser-manage-admin]password simple zxc123456

The password is too short. It must contain a minimum of 10 characters.

[H3C-luser-manage-admin]pass

[H3C-luser-manage-admin]password s

[H3C-luser-manage-admin]password simple  zxc12345678

[H3C-luser-manage-admin]au

[H3C-luser-manage-admin]authorization-attribute u

[H3C-luser-manage-admin]authorization-attribute user-profile

[H3C-luser-manage-admin]authorization-attribute user-role l

[H3C-luser-manage-admin]authorization-attribute user-role level-15

[H3C-luser-manage-admin]ser

[H3C-luser-manage-admin]service-type telnet

[H3C-luser-manage-admin]quit

[H3C]


然后就是完成,最前面提示,开启telnet 服务,和配置vty接口认证 , 在用户接口下


[H3C]telnet server enable

[H3C]

[H3C]user-interface ?

  INTEGER<0-447>  Number of the first line

  aux             AUX line

  class           Specify the line class to modify the default configuration

  console         Console line

  tty             Async serial line

  vty             Virtual type terminal (VTY) line

[H3C]user-interface vty ?

  INTEGER<0-63>  Number of the first line


[H3C]user-interface vty ?

  INTEGER<0-63>  Number of the first line


[H3C]user-interface vty 0 ?

  INTEGER<1-63>  Number of the last line


可以看到这里的vty 接口或线路配置,最大数是63,其意义至今也没有搞的太懂,应该是同时连接的连接数。看别人都使用0 4,这里也这样设置了。新手,也可以适当设置大一点。


[H3C]user-interface vty 0 4

[H3C-line-vty0-15]aut

[H3C-line-vty0-15]authentication-mode ?

      none      Login without authentication

      password  Password authentication

      scheme    Authentication use AAA


[H3C-line-vty0-15]authentication-mode scheme


至此,咱们就可以telnet凭用户名和密码访问S6850了


关于博主
北京南城网络及弱电【张工】为您提供:
校园网、楼宇、村镇、园区,光纤网络覆盖,无线覆盖 华为|H3c|锐捷|爱快|panabit等品牌,路由、交换机、AC、AP 无源光网络(PON)设备,布署、调试、维运,等服务...
应急/临时光纤熔接...[藤仓22S]
博文为学习python所写:内容摘自网络、学习笔记、记事备忘。
QQ:872876353,欢迎交流学习、加Q注明来意。

诗文鉴赏

《满江红》· 岳飞
落星侵晓没,
残月半山低。
怒发冲冠,
凭栏处、潇潇雨歇。
抬望眼、仰天长啸,壮怀激烈。
三十功名尘与土,八千里路云和月。
莫等闲、白了少年头,
空悲切。
源于生活-记录日常
The site based on python 3 with flask...