试验35 PPP PAP认证



R1配置
r1(config)#int s1/2
r1(config-if)#ip add 10.1.1.1 255.255.255.0
r1(config-if)#no sh
r1(config)#username admin password admin
r1(config)#int s1/2
r1(config-if)#encapsulation ppp
r1(config-if)#ppp authentication pap
r1(config-if)#ppp pap sent-username admin password admin
PPP: Warning:  You have chosen a username/password combination that
is valid for CHAP.  This is a potential security hole.

因为设置了用户名和密码相同 所以提示有安全漏洞

R2配置

r2(config)#int s2/1
r2(config-if)#ip add 10.1.1.2 255.255.255.0
r2(config-if)#no sh
r2(config)#int s2/1
r2(config-if)#encapsulation ppp
r2(config-if)#exit
r2(config)#username admin password admin
r2(config)#int s2/1
r2(config-if)#ppp authentication pap
r2(config-if)#ppp pap sent-username admin password admin
PPP: Warning:  You have chosen a username/password combination that
is valid for CHAP.  This is a potential security hole.

调试试验

r1#config t
Enter configuration commands, one per line.  End with CNTL/Z.
r1(config)#int s1/2
r1(config-if)#sh
r1(config-if)#no sh
00:06:43: Se1/2 PPP: Treating connection as a dedicated line
00:06:43: Se1/2 PPP: Phase is AUTHENTICATING, by both
00:06:43: Se1/2 PAP: O AUTH-REQ id 3 len 16 from “admin”
00:06:43: Se1/2 PAP: I AUTH-REQ id 3 len 16 from “admin”
00:06:43: Se1/2 PAP: I AUTH-ACK id 3 len 5
00:06:43: Se1/2 PAP: Authenticating peer admin
00:06:43: Se1/2 PAP: O AUTH-ACK id 3 len 5
r1#sh ip route
Codes: C �C connected, S �C static, I �C IGRP, R �C RIP, M �C mobile, B �C BGP
D �C EIGRP, EX �C EIGRP external, O �C OSPF, IA �C OSPF inter area
N1 �C OSPF NSSA external type 1, N2 �C OSPF NSSA external type 2
E1 �C OSPF external type 1, E2 �C OSPF external type 2, E �C EGP
i �C IS-IS, L1 �C IS-IS level-1, L2 �C IS-IS level-2, * �C candidate default
U �C per-user static route, o �C ODR
T �C traffic engineered route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       10.1.1.2/32 is directly connected, Serial1/2
C       10.1.1.0/24 is directly connected, Serial1/2

你可能感兴趣的:(职场,认证,休闲,ppp,PAP)