运维开发网

华为设备做telent配置

运维开发网 https://www.qedev.com 2021-01-05 11:36 出处:51CTO 作者:杨鱼龙猪
华为设备做telnet登录实验

实验拓扑如下:

华为设备做telent配置

注:图中使用路由器当做模拟客户机

交换机配置如下:

<Huawei>system-view //进入系统配置模式

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname HW-SW1//重命名设备

[HW-SW1]int Vlanif 1//进入vlan1

[HW-SW1-Vlanif1]ip address 10.1.11.2 29//给vlan1设置IP地址

[HW-SW1-Vlanif1]q//退出vlan1配置模式

[HW-SW1]telnet server enable //开启telnet服务

Info: The Telnet server has been enabled.

[HW-SW1]user-interface vty 0 4//设置telnet登录通道0 4总计5个

[HW-SW1-ui-vty0-4]set authentication password simple 123456//设置登录方式为密码认证,密码为123456

[HW-SW1-ui-vty0-4]user privilege level 15//设置用户等级为15,最高为15级别(必须设置用户等级,否则后期客户端登录后会出现无法补全命令的问题)

[HW-SW1-ui-vty0-4]q//退出接口配置模式

[HW-SW1]ping 10.1.11.1//测试网络是否连通

PING 10.1.11.1: 56 data bytes, press CTRL_C to break

Reply from 10.1.11.1: bytes=56 Sequence=1 ttl=255 time=110 ms

Reply from 10.1.11.1: bytes=56 Sequence=2 ttl=255 time=50 ms

Reply from 10.1.11.1: bytes=56 Sequence=3 ttl=255 time=20 ms

Reply from 10.1.11.1: bytes=56 Sequence=4 ttl=255 time=40 ms

Reply from 10.1.11.1: bytes=56 Sequence=5 ttl=255 time=50 ms

--- 10.1.11.1 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 20/54/110 ms

路由器配置如下:

<Huawei>system-view //进入系统配置模式

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname HW-AR1//重命名设备

[HW-AR1]int g0/0/0//进入g0/0/0接口

[HW-AR1-GigabitEthernet0/0/0]ip address 10.1.11.1 29//配置接口IP地址

Dec 19 2020 16:13:16-08:00 HW-AR1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol

IP on the interface GigabitEthernet0/0/0 has entered the UP state.

[HW-AR1-GigabitEthernet0/0/0]q//退出接口配置

[HW-AR1]q//退出系统配置

<HW-AR1>ping 10.1.11.2//测试网络是否连通

PING 10.1.11.2: 56 data bytes, press CTRL_C to break

Reply from 10.1.11.2: bytes=56 Sequence=1 ttl=255 time=30 ms

Reply from 10.1.11.2: bytes=56 Sequence=2 ttl=255 time=30 ms

Reply from 10.1.11.2: bytes=56 Sequence=3 ttl=255 time=20 ms

Reply from 10.1.11.2: bytes=56 Sequence=4 ttl=255 time=20 ms

Reply from 10.1.11.2: bytes=56 Sequence=5 ttl=255 time=40 ms

--- 10.1.11.2 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 20/28/40 ms

<HW-AR1>telnet 10.1.11.2//telnet连通测试

Press CTRL_] to quit telnet mode

Trying 10.1.11.2 ...

Connected to 10.1.11.2 ...

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 2020-12-19 16:16:23.

<HW-SW1>//成功进入设备

<HW-SW1>sy

<HW-SW1>system-view

Enter system view, return user view with Ctrl+Z.

[HW-SW1]q //退出HW-AR1设备

0

精彩评论

暂无评论...
验证码 换一张
取 消