1、所有设备完成预配(改名+永不超时)
The device is running!
################################################################
<Huawei>
Nov 2 2022 21:46:47-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]user-interface console 0
[r1-ui-console0]idle-timeout 0 0
The device is running!
################################################
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r2
[r2]user-interface console 0
[r2-ui-console0]idle-timeout 0 0
2、r1进行密码加密
[r1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):jincheng
r2进行用户密码登录且定等级
[r2]aaa
[r2-aaa]local-user jincheng password cipher xueyuan
Info: Add a new user.
[r2-aaa]local-user xuesheng privilege level 0 password cipher 123
Info: Add a new user.
[r2]user-interface console 0
[r2-ui-console0]authentication-mode aaa
[r2-aaa]local-user jincheng service-type terminal
[r2-ui-console0]qu
[r2]q
<r2>qu
Configuration console exit, please press any key to log on
Login authentication
Username:xuesheng
Password:
<r2>qu
Configuration console exit, please press any key to log on
Login authentication
Username:jincheng
Password:
<r2>sys
Enter system view, return user view with Ctrl+Z.
3、给r1、r2配IP 192.168.1.0 24
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 198.162.1.99 24
Nov 2 2022 21:51:38-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.250 24
Nov 2 2022 22:58:26-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
4、ping通r1和r2
[r1-GigabitEthernet0/0/0]ping 198.162.1.250
PING 198.162.1.250: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- 198.162.1.250 ping statistics ---
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss
[r1-GigabitEthernet0/0/0]The device is running!