带你掌握PPP协议的身份认证

网络 网络管理
对于PPP协议,讲述的内容非常多。今天我们则重点讲解一下PPP协议的身份认证的内容。其中包括了PAP、CHAP单双向身份认证的内容。

前面,我们对PPP协议进行了具体的介绍,相信大家已经对这个协议有所了解了。那么在PPP协议中,比较重要的就是PPP身份认证配置了。那么其中包括PAP、CHAP单双向身份认证。

使用的拓扑:

PAP双向身份认证

R1配置如下:

  1. config t  
  2. hostname R1  
  3. username R1 password komy  
  4. interface s0/0/0  
  5. ip address 192.168.1.2 255.255.255.252  
  6. encapsulation ppp  
  7. ppp authentication pap  
  8. ppp pap sent-username R2 password komy  
  9. no shutdown 

R2配置如下:

  1. config t  
  2. hostname R2  
  3. username R2 password komy  
  4. int s0/0/0  
  5. clock rate 4000000  
  6. ip address 192.168.1.1 255.255.255.252  
  7. encapsulation ppp  
  8. ppp authentication pap  
  9. ppp pap sent-username R1 password komy  
  10. no shutdown 

PAP单向身份认证

R1配置如下(被认证方):

  1. config t  
  2. hostname R1  
  3. interface s0/0/0  
  4. ip address 192.168.1.2 255.255.255.252  
  5. encapsulation ppp  
  6. ppp pap sent-username R2 password komy  
  7. no shutdown 

R2配置如下(主认证方):

  1. config t  
  2. hostname R2  
  3. username R2 password komy  
  4. int s0/0/0  
  5. clock rate 4000000  
  6. ip address 192.168.1.1 255.255.255.252  
  7. encapsulation ppp  
  8. ppp authentication pap  
  9. no shutdown 

CHAP双向身份认证

  1. config t  
  2. hostname R1  
  3. username R2 password komy  
  4. int s0/0/0  
  5. ip address 192.168.1.2 255.255.255.252  
  6. encapsulation ppp  
  7. ppp authentication chap  
  8. no shutdown 

R2:

  1. config t  
  2. hostname R2  
  3. username R1 password komy  
  4. int s0/0/0  
  5. clock rate 4000000  
  6. ip address 192.168.1.1 255.255.255.252  
  7. encapsulation ppp  
  8. ppp authentication chap  
  9. no shutdown 

CHAP单向身份认证

R1(CHAP被认证方):

  1. config t  
  2. hostname R1  
  3. username R2 password komy  
  4. int s0/0/0  
  5. ip address 192.168.1.2 255.255.255.252  
  6. encapsulation ppp  
  7. no shutdown 

R2(CHAP主认证方):

  1. config t  
  2. hostname R2  
  3. username R1 password komy  
  4. int s0/0/0  
  5. clock rate 4000000  
  6. ip address 192.168.1.1 255.255.255.252  
  7. encapsulation ppp  
  8. ppp authentication chap  
  9. no shutdown 

来自:http://hi.baidu.com/51cmdshell

责任编辑:佟健 来源: hi.baidu.com
相关推荐

2010-09-07 15:39:46

2010-09-06 14:03:06

PPP身份认证

2010-09-09 17:24:11

2013-01-21 09:24:44

路由器PPP认证网络协议

2010-09-06 09:44:34

PPP协议PAP认证配置

2010-09-06 10:56:54

2010-09-28 09:34:28

2009-06-29 09:41:10

CCNA认证实验

2010-09-03 09:13:53

2010-09-06 09:26:07

PPP协议

2010-09-06 11:24:47

CHAP验证PPP身份验证

2010-09-06 10:34:56

PPP协议

2010-09-08 18:22:36

多重PPP链接协议

2010-09-03 10:16:07

PPPSLIP

2010-09-28 09:27:27

2010-09-06 09:37:26

PPP协议LCP数据报文

2011-04-13 12:18:38

PAP认证PPP

2010-09-06 12:17:09

SLIPPPP协议

2010-09-06 13:57:38

2010-07-01 16:55:03

UDP协议
点赞
收藏

51CTO技术栈公众号