华为交换机无法通过telnet登录,提示“The channel configuration is incorrect”

华为交换机无法通过telnet登录,提示“The channel configuration is incorrect”插图

刚刚配置了一个新的交换机,在进行telnet配置,执行telnet server enable之后,然后在终端处执行telnet到交换机,发现无法连接交换机,查看交换机的日志,里面写到: Reason=”The channel configuration is incorrect.”。以下是解决方法:

一、在系统视图执行以下命令,检查设置

user-interface vty 0 4 

dis this

执行后系统给出类似如下配置:

user-interface con 0
authentication-mode password
user-interface vty 0 4
protocol inbound ssh
user-interface vty 16 20

上面有一行:protocol inbound ssh,这里表示之允许了ssh协议,没有允许telnet协议。另外,这里也没有配置aaa模式。

二、在系统视图下,执行以下命令:

authentication-mode aaa

protocol inbound all //这里是表示允许通过所有协议,当然,也可以只允许telnet协议,改为 protocol inbound telnet 即可

执行完毕之后,可以再执行telnet试试看。

如需转载本站的文章,请先通过电子邮件的方式联系站长,站长确认后方可转载,并需要注明出处。

为您推荐