RTA:
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTA
[RTA]aaa
[RTA-aaa]local-user huawei password cipher hello
Info: Add a new user.
[RTA-aaa]
[RTA-aaa]quit
[RTA]interface s2/0/0
[RTA-Serial2/0/0]link-protocol ppp
[RTA-Serial2/0/0]ppp authentication-mode pap
[RTA-Serial2/0/0]ip address 10.1.41.1 30
[RTA-Serial2/0/0]quit
[RTA]quit
<RTA>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<RTA>
RTB:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RTB
[RTB]interface s2/0/0
[RTB-Serial2/0/0]link-protocol ppp
[RTB-Serial2/0/0]ppp pap local-user huawei password cipher hello
[RTB-Serial2/0/0]ip address 10.1.41.2 30
[RTB-Serial2/0/0]
Sep 2 2022 09:59:29-08:00 RTB %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial2/0/0 has entered the UP state.
[RTB-Serial2/0/0]quit
[RTB]quit
<RTB>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<RTB>
测试:
<RTA>ping 10.1.41.2
PING 10.1.41.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.41.2: bytes=56 Sequence=1 ttl=255 time=70 ms
Reply from 10.1.41.2: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 10.1.41.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 10.1.41.2: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 10.1.41.2: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 10.1.41.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/36/70 ms
二、CHAP认证
RT1:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RT1
[RT1]aaa
[RT1-aaa]local-user huawei password cipher hello
Info: Add a new user.
[RT1-aaa]local-user huawei service-type ppp
[RT1-aaa]quit
[RT1]interface s2/0/0
[RT1-Serial2/0/0]link-protocol ppp
[RT1-Serial2/0/0]ppp authentication chap
[RT1-Serial2/0/0]ip address 10.1.41.1 30
[RT1-Serial2/0/0]quit
[RT1]quit
<RT1>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait.......
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<RT1>
RT2:
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname RT2
[RT2]interface s2/0/0
[RT2-Serial2/0/0]link-protocol ppp
[RT2-Serial2/0/0]ppp chap user huawei
[RT2-Serial2/0/0]ppp chap password cipher hello
[RT2-Serial2/0/0]ip address 10.1.41.2 30
[RT2-Serial2/0/0]
Sep 2 2022 12:31:33-08:00 RT2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial2/0/0 has entered the UP state.
[RT2-Serial2/0/0]quit
[RT2]quit
<RT2>save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<RT2>
测试:
<RT1>ping 10.1.41.2
PING 10.1.41.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.41.2: bytes=56 Sequence=1 ttl=255 time=70 ms
Reply from 10.1.41.2: bytes=56 Sequence=2 ttl=255 time=50 ms
Reply from 10.1.41.2: bytes=56 Sequence=3 ttl=255 time=70 ms
Reply from 10.1.41.2: bytes=56 Sequence=4 ttl=255 time=50 ms
Reply from 10.1.41.2: bytes=56 Sequence=5 ttl=255 time=50 ms
--- 10.1.41.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 50/58/70 ms
<RT1>