Telnet远程配置

步骤:

Step1:必打命令

<Huawei>undo terminal monitor
<Huawei>system-view
[Huawei]sysname SW1
[SW1]user-interface console 0
[SW1-ui-console0]idle-timeout 0 0
[SW1-ui-console0]quit

交换机LSW2同理,命名为SW2。

Step2:配置IP,ping目的地址检查连通性

[SW1]int Vlanif 1(交换机需要在逻辑接口上配置IP)
[SW1-Vlanif1]ip address 192.168.1.1 24
[SW1-Vlanif1]undo shutdown (配置完需要启动)
[SW1-Vlanif1]quit

[SW1]ping 192.168.1.10
PING 192.168.1.10: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.10: bytes=56 Sequence=1 ttl=255 time=1 ms
Reply from 192.168.1.10: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 192.168.1.10: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 192.168.1.10: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 192.168.1.10: bytes=56 Sequence=5 ttl=255 time=1 ms

--- 192.168.1.10 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/1 ms

SW2也做同样配置

Step3:进行Telnet配置

[SW1]user-interface vty 0 4(开放五个端口,最多允许五个用户同时登陆)
[SW1-ui-vty0-4]set authentication password simple huawei(设置登陆密码,密码形式为simple明文,密文则是cipher)
[SW1-ui-vty0-4]user privilege level 3(用户权限等级设置为3)
[SW1-ui-vty0-4]return

SW2也可以做同样配置,以测试互相telnet

Step4:开始telnet

<SW1>telnet 192.168.1.10(telnet时要退出到用户视图)
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 2.
The current login time is 2020-07-22 16:47:30.

完成

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值