R1#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/40/84 ms
PAP服务器配置:
R2#en
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#us
R2(config)#username oracle pass
R2(config)#username oracle password oracle
R2(config)#int s0/0
R2(config-if)#en
R2(config-if)#encapsulation ppp
R2(config-if)#ppp
*Mar 1 00:04:14.835: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down
R2(config-if)#ppp authen
R2(config-if)#ppp authentication pap
R2(config-if)#no sh
R2(config-if)#end
PAP客户端配置:
R1#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
...
*Mar 1 00:04:43.303: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down..
Success rate is 0 percent (0/5)
PAP客户端未配置之前,无法ping通
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int s0/0
R1(config-if)#enc
R1(config-if)#encapsulation ppp
R1(config-if)#ppp pap se
R1(config-if)#ppp pap sent-username oracle pa
R1(config-if)#ppp pap sent-username oracle password oracle
R1(config-if)#no
*Mar 1 00:07:20.415: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0 changed state to up
R1(config-if)#no sh
R1(config-if)#end
R1#ping
*Mar 1 00:07:29.311: %SYS-5-CONFIG_I: Configured from console by console
R1#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/64/132 ms