注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

欢迎光临shaying110的博客

RSed-ISPing

 
 
 

日志

 
 

PPP简单配置及诊断  

2010-03-02 12:31:01|  分类: CISCO网络 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

PPP简单配置及诊断 - shaying110 - 欢迎光临shaying110的博客

 

如图,正常配置如下:

hostname R1
username R2 password test1

interface Serial1/0
 ip address 10.1.1.1 255.255.255.252
 encapsulation ppp
 serial restart-delay 0
 ppp authentication chap pap
**************************************

hostname R2
username R1 password test1

interface Serial1/0
 ip address 10.1.1.2 255.255.255.252
 encapsulation ppp
 serial restart-delay 0
 ppp authentication chap pap

*******************************************

验证:

R1(config-if)#do sh int s1/0
Serial1/0 is up, line protocol is up
  Hardware is M4T
  Internet address is 10.1.1.1/30
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Open
  Open: CDPCP, IPCP, crc 16, loopback not set

  Keepalive set (10 sec)
  Restart-Delay is 0 secs
  Last input 00:00:09, output 00:00:00, output hang n

R2(config-if)#do sh int s1/0
Serial1/0 is up, line protocol is up
  Hardware is M4T
  Internet address is 10.1.1.2/30
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Open
  Open: CDPCP, IPCP, crc 16, loopback not set

  Keepalive set (10 sec)

R1#deb ppp authentication

R1#
*Mar  2 11:06:27.959: Se1/0 PPP: Authorization required
*Mar  2 11:06:28.247: Se1/0 CHAP: O CHALLENGE id 120 len 23 from "R1"
*Mar  2 11:06:28.247: Se1/0 CHAP: I CHALLENGE id 124 len 23 from "R2"
*Mar  2 11:06:28.251: Se1/0 CHAP: Using hostname from unknown source
*Mar  2 11:06:28.251: Se1/0 CHAP: Using password from AAA
*Mar  2 11:06:28.251: Se1/0 CHAP: O RESPONSE id 124 len 23 from "R1"
*Mar  2 11:06:28.535: Se1/0 CHAP: I RESPONSE id 120 len 23 from "R2"
*Mar  2 11:06:28.535: Se1/0 PPP: Sent CHAP LOGIN Request
*Mar  2 11:06:28.539: Se1/0 PPP: Received LOGIN Response PASS
*Mar  2 11:06:28.539: Se1/0 PPP: Sent LCP AUTHOR Request
*Mar  2 11:06:28.543: Se1/0 PPP: Sent IPCP AUTHOR Request
*Mar  2 11:06:28.547: Se1/0 LCP: Received AAA AUTHOR Response PASS
*Mar  2 11:06:28.547: Se1/0 IPCP: Received AAA AUTHOR Response PASS
*Mar  2 11:06:28.547: Se1/0 CHAP: O SUCCESS id 120 len 4
*Mar  2 11:06:28.883: Se1/0 CHAP: I SUCCESS id 124 len 4

***********************

封装类型不匹配

R1(config-if)#do sh int s1/0
Serial1/0 is up, line protocol is up
  Hardware is M4T
  Internet address is 10.1.1.1/30
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation HDLC, crc 16, loopback not set

R2(config-if)#do sh int s1/0
Serial1/0 is up, line protocol is down
  Hardware is M4T
  Internet address is 10.1.1.2/30
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP REQsent, crc 16, loopback not set
  Keepalive set (10 sec)

****************************************************************

认证密码不匹配

R1(config-if)#do sh int s1/0
Serial1/0 is up, line protocol is down
  Hardware is M4T
  Internet address is 10.1.1.1/30
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Listen, crc 16, loopback not set
  Keepalive set (10 sec)

R2(config-if)#do sh int s1/0
Serial1/0 is up, line protocol is down
  Hardware is M4T
  Internet address is 10.1.1.2/30
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, LCP Listen, crc 16, loopback not set
  Keepalive set (10 sec)

R1(config-if)#do deb ppp au
PPP authentication debugging is on
R1(config-if)#
*Mar  2 12:09:54.407: Se1/0 PPP: Authorization required
*Mar  2 12:09:54.723: Se1/0 CHAP: O CHALLENGE id 39 len 23 from "R1"
*Mar  2 12:09:55.011: Se1/0 CHAP: I CHALLENGE id 164 len 23 from "R2"
*Mar  2 12:09:55.011: Se1/0 CHAP: I RESPONSE id 39 len 23 from "R2"
*Mar  2 12:09:55.015: Se1/0 PPP: Sent CHAP LOGIN Request
*Mar  2 12:09:55.019: Se1/0 CHAP: Using hostname from unknown source
*Mar  2 12:09:55.019: Se1/0 CHAP: Using password from AAA
*Mar  2 12:09:55.019: Se1/0 CHAP: O RESPONSE id 164 len 23 from "R1"
*Mar  2 12:09:55.023: Se1/0 PPP: Received LOGIN Response FAIL
*Mar  2 12:09:55.023: Se1/0 CHAP: O FAILURE id 39 len 25 msg is "Authentication failed"

R1(config-if)#do sh run | in user
username R2 password 0 test2

R2(config-if)#do sh run | in user
username R1 password 0 test1

  评论这张
 
阅读(634)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018