网络设备安装与调试chp18PPP实验指导
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
PPP配置
1.实验目的
通过本实验可以掌握:
(1)数据封装的概念
(2)PPP特征
(3)PPP数据包格式
(4)PPP组成
(5)PPP会话建立
(6)PPP认证
(7)PAP和CHAP区别
(8)CHAP三次握手过程
(9)PPP配置和验证
(10)PAP配置和调试
(11)CHAP配置和调试
2.实验拓扑
实验拓扑如图所示。
3.实验步骤和调试
(1)配置PPP封装
R1(config)#int s0/0
R1(config-if)#encapsulation ppp
R2(config)#int s0/0
R2(config-if)#encapsulation ppp
R1(config-if)#do sh int s0/0
Serial0/0 is up, line protocol is up
Hardware is M4T
Internet address is 172.16.12.1/24
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255 Encapsulation PPP, LCP Open
Open: IPCP, CDPCP, crc 16, loopback not set
Keepalive set (10 sec)
Last input 00:00:22, output 00:00:01, output hang never
Last clearing of "show interface" counters 00:00:43
(2)配置PPP PAP验证
R1(config)#int s0/0
R1(config-if)#ppp pap sent-username R1 pass cisco
R2(config)#username R1 pass cisco
R2#debug ppp authentication
R2(config)#int s0/0
R2(config-if)#ppp authentication pap
R2(config-if)#
*Mar 1 00:38:11.195: Se0/0 PPP: Authorization required
*Mar 1 00:38:11.463: Se0/0 PAP: I AUTH-REQ id 1 len 13 from "R1"
*Mar 1 00:38:11.467: Se0/0 PAP: Authenticating peer R1
*Mar 1 00:38:11.475: Se0/0 PPP: Sent PAP LOGIN Request
*Mar 1 00:38:11.475: Se0/0 PPP: Received LOGIN Response PASS
*Mar 1 00:38:11.475: Se0/0 PPP: Sent LCP AUTHOR Request
*Mar 1 00:38:11.475: Se0/0 PPP: Sent IPCP AUTHOR Request
*Mar 1 00:38:11.475: Se0/0 LCP: Received AAA AUTHOR Response PASS *Mar 1 00:38:11.475: Se0/0 IPCP: Received AAA AUTHOR Response PASS *Mar 1 00:38:11.475: Se0/0 PAP: O AUTH-ACK id 1 len 5
*Mar 1 00:38:11.475: Se0/0 PPP: Sent CDPCP AUTHOR Request
(3)配置PPP CHAP验证
R1#debug ppp authentication
R1(config)#username R1 pass cisco
R1(config)#int s0/0
R1(config-if)#encapsulation ppp
R1(config-if)# ppp authentication chap
*Mar 1 00:45:46.359: Se0/0 CHAP: O CHALLENGE id 1 len 23 from "R1" *Mar 1 00:45:46.403: Se0/0 CHAP: I CHALLENGE id 1 len 23 from "R2" *Mar 1 00:45:46.411: Se0/0 CHAP: I RESPONSE id 1 len 23 from "R2" *Mar 1 00:45:46.423: Se0/0 PPP: Sent CHAP LOGIN Request
*Mar 1 00:45:46.435: Se0/0 CHAP: Using hostname from unknown source *Mar 1 00:45:46.439: Se0/0 CHAP: Using password from AAA
*Mar 1 00:45:46.439: Se0/0 CHAP: O RESPONSE id 1 len 23 from "R1" *Mar 1 00:45:46.443: Se0/0 PPP: Received LOGIN Response PASS
*Mar 1 00:45:46.443: Se0/0 PPP: Sent LCP AUTHOR Request
*Mar 1 00:45:46.443: Se0/0 PPP: Sent IPCP AUTHOR Request
R1(config-if)#
*Mar 1 00:45:46.455: Se0/0 LCP: Received AAA AUTHOR Response PASS *Mar 1 00:45:46.459: Se0/0 IPCP: Received AAA AUTHOR Response PASS *Mar 1 00:45:46.463: Se0/0 CHAP: O SUCCESS id 1 len 4
*Mar 1 00:45:46.463: Se0/0 CHAP: I SUCCESS id 1 len 4
*Mar 1 00:45:46.475: Se0/0 PPP: Sent CDPCP AUTHOR Request
*Mar 1 00:45:46.483: Se0/0 PPP: Sent IPCP AUTHOR Request
*Mar 1 00:45:46.499: Se0/0 CDPCP: Received AAA AUTHOR Response PASS
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.12.0/24 is directly connected, Serial0/0
C 172.16.12.2/32 is directly connected, Serial0/0
R2#debug ppp authentication
R2(config)#username R1 pass cisco
R2(config)#int s0/0
R2(config-if)#encapsulation ppp
R2(config-if)# ppp authentication chap
*Mar 1 00:45:45.855: Se0/0 PPP: Authorization required
*Mar 1 00:45:45.935: Se0/0 CHAP: O CHALLENGE id 1 len 23 from "R2"
*Mar 1 00:45:45.939: Se0/0 CHAP: I CHALLENGE id 1 len 23 from "R1"
*Mar 1 00:45:45.955: Se0/0 CHAP: Using hostname from unknown source
*Mar 1 00:45:45.955: Se0/0 CHAP: Using password from AAA
*Mar 1 00:45:45.955: Se0/0 CHAP: O RESPONSE id 1 len 23 from "R2"
*Mar 1 00:45:45.975: Se0/0 CHAP: I RESPONSE id 1 len 23 from "R1"
*Mar 1 00:45:45.983: Se0/0 PPP: Sent CHAP LOGIN Request
*Mar 1 00:45:45.987: Se0/0 PPP: Received LOGIN Response PASS
*Mar 1 00:45:45.991: Se0/0 PPP: Sent LCP AUTHOR Request
R2(config-if)#
*Mar 1 00:45:45.991: Se0/0 PPP: Sent IPCP AUTHOR Request
*Mar 1 00:45:46.003: Se0/0 LCP: Received AAA AUTHOR Response PASS
*Mar 1 00:45:46.007: Se0/0 IPCP: Received AAA AUTHOR Response PASS
*Mar 1 00:45:46.007: Se0/0 CHAP: O SUCCESS id 1 len 4
*Mar 1 00:45:46.063: Se0/0 CHAP: I SUCCESS id 1 len 4
*Mar 1 00:45:46.071: Se0/0 PPP: Sent CDPCP AUTHOR Request
*Mar 1 00:45:46.071: Se0/0 CDPCP: Received AAA AUTHOR Response PASS
*Mar 1 00:45:46.095: Se0/0 PPP: Sent IPCP AUTHOR Request
R2(config-if)#
R2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.12.0/24 is directly connected, Serial0/0
C 172.16.12.1/32 is directly connected, Serial0/0。