The network topology is as follows:
Configuration in R1:
<Huawei>system-view Enter the system view
[Huawei]sysname R1 Change the device name to R1
[R1]int G0/0/0 Enter the G0/0/0 port
[R1-GigabitEthernet0/0/0]ip add 192.168.10.1 24[R1]user-interface vty 0 4 set the number of VTY connections to five
[R1-ui-vty0-4]user privilege level 3 user privilege level is 3
[R1-ui-vty0-4]authentication-mode password set remote Connection password
Please configure the login password (maximum length 16):Huawei@123[R1-ui-vty0-4]quit
[R1]ping 192.168.10.2
PING 192.168.10.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.10.2: bytes=56 Sequence=1 ttl=255 time=80 ms
Reply from 192.168.10.2: bytes=56 Sequence=2 ttl=255 time=10 ms
Reply from 192.168.10.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 192.168.10.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 192.168.10.2: bytes=56 Sequence=5 ttl=255 time=20 ms--- 192.168.10.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/30/80 ms
Configuration in R2:
<Huawei>system-view
[Huawei]sysname R2
[R2]int G0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.10.2 24
[R2-GigabitEthernet0/0/0]quit<R2>telnet 192.168.10.1 remote connection input password successfully enter
Press CTRL_] to quit telnet mode
Trying 192.168.10.1 ...
Connected to 192.168.10.1 ...Login authentication
Password:
<R1>