第一步,配一下各個路由器以及接口的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