第一步,配一下各个路由器以及接口的ip,尝试ping一下保证连通性
R1 <Huawei>sys [Huawei]int GigabitEthernet 0/0/0 [Huawei-GigabitEthernet0/0/0]ip address 10.1.1.254 24 R2 <Huawei>sys [Huawei]int GigabitEthernet 0/0/0 [Huawei-GigabitEthernet0/0/0]ip address 10.1.1.1 24 R3 <Huawei>sys [Huawei]int GigabitEthernet 0/0/0 [Huawei-GigabitEthernet0/0/0]ip address 10.1.1.2 24
第二步,在R1上配置登录认证,配置登录密码为123
R1 [Huawei]sysname R1 [R1]user-interface vty 0 4 [R1-ui-vty0-4]authentication-mode password [R1-ui-vty0-4]set authentication password cipher 123
第三步,在R2或R3上telent一下R1,登录R1
<R3>telnet 10.1.1.254 Trying 10.1.1.254 ... Press CTRL+K to abort Connected to 10.1.1.254 ... Login authentication Password: Info: The max number of VTY users is 10, and the number of current VTY users on line is 1. The current login time is 2020-10-04 23:01:54.
输入密码后登录。
最后看看R1上的用户数:
可以看到R3的用户已经登录上R1了,登录方式为Telnet