PPP协议配置和PAP认证配置

网络 网络管理
文章中,我们侧重讲解了PPP协议的配置和PAP认证配置的内容,希望大家浏览过文章后,对此能够有所了解。

通过对PPP协议的了解,我们也进入到了配置阶段。那么我们知道,PPP协议:(point to point protocol)点队点协议的前身是SLIP,PPP协议提供了一种在点对点链路上封状多种网络数据报文的标准方法。现在我们重点讲解一下PPP协议配置和PAP认证配置的内容。

PPP相对SLIP的协议的优点:

1、支持同步、异步串行链路;

2、支持多种网络协议;

3、支持各种连接参数的协商;

4、支持错误检测;

5、支持用户认证;

6、允许进行数据的压缩。

PPP协议的组成:

1、协议封装方式

2、LCP

3、NCP

PPP运行过程:

1、链接不可用阶段

2、链路建立阶段

3、认证阶段

4、网络层协议阶段

5、链路终止阶段

LCP协议协商:

MRU 最大数据单元/Magic Number魔术字/人证方式/链路压缩

NCP协议协商:

IP地址;TCP/IP头压缩

认证方式:

PAP/CHAP

PPP协议的配置:

封装PPP:

  1. Router(config)#inter serial 2/0  
  2. Router(config-if)#encapsulation ppp 

DCE端设置时钟频率:

  1. Router(config-if)#clock rate 64000 

接口IP配置:

  1. Router(config-if)#ip address 192.168.10.1 255.255.255.0  
  2. Router(config-if)#no shutdown 

PAP认证配置:

PAP认证配置,主认证端:

  1. Router(config-if)#exit  
  2. Router(config)#username derek password 0 123  
  3. Router(config)#inter s2/0  
  4. Router(config-if)#ppp authentication   
  5. %SYS-5-CONFIG_I: Configured from console by console 

PAP认证配置,被认证端:

  1. Router(config-if)#ppp pap sent-username derek password 0 123 

PAP认证配置完成,测试:

  1. Router#ping 192.168.10.2  
  2. Router#debug ppp packet 

查看端口:

  1. Router#show interfaces s 2/0  
  2. Serial2/0 is up, line protocol is up (connected)  
  3. Hardware is HD64570  
  4. Internet address is 192.168.10.2/24  
  5. MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, rely 255/255, load 1/255  
  6. Encapsulation PPP, loopback not set, keepalive set (10 sec)  
  7. LCP Open  
  8. Open: IPCP, CDPCP  
  9. Last input never, output never, output hang never  
  10. Last clearing of "show interface" counters never  
  11. Input queue: 0/75/0 (size/max/drops); Total output drops: 0  
  12. Queueing strategy: weighted fair  
  13. Output queue: 0/1000/64/0 (size/max total/threshold/drops) 

 

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

2009-06-29 09:41:10

CCNA认证实验

2011-04-13 12:18:38

PAP认证PPP

2010-09-09 17:24:11

2011-09-15 14:21:38

2010-08-04 14:16:32

路由器配置

2010-09-03 10:09:45

CISCO PPP配置

2010-09-16 16:06:35

PPPoE配置

2010-09-03 09:19:13

PPP身份认证

2010-09-06 10:47:00

PPP配置

2010-09-06 14:32:55

CISCO PPP配置

2010-09-28 13:53:52

2010-09-03 10:16:07

PPPSLIP

2010-09-06 12:17:09

SLIPPPP协议

2013-01-21 09:24:44

路由器PPP认证网络协议

2010-09-07 15:39:46

2010-09-06 10:56:54

2010-09-28 09:34:28

2010-09-07 14:50:20

CISCO PPP配置

2010-09-03 09:13:53

2010-09-08 18:22:36

多重PPP链接协议
点赞
收藏

51CTO技术栈公众号