<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 
 
 PPPPoint to Point Protocol点对点协议(PPP)为在点对点连接上传输多协议数据包提供了一个标准方法。PPP 最初设计是为两个对等节点之间的 IP 流量传输提供一种封装协议。在 TCP-IP 协议集中它是一种用来同步调制连接的数据链路层协议(OSI 模式中的第二层),替代了原来非标准的第二层协议,即 SLIP

应用环境: 要接入第三方网络——电信、网通等时候用;基于安全考虑,双方要经过验证才能连接。

RouterA 配置:

Router>enable

Router#conf

Router_config#hostname RouterA

RouterA_config#username RouterB password 1234            设置账号密码

RouterA_config#int s0/1

RouterA_config_s0/1#ip address 192.168.1.1 255.255.255.0

RouterA_config_s0/1#encapsulation ppp                     封装PPP协议

RouterA_config_s0/1#ppp authentication chap                 设置验证方式

RouterA_config_s0/1#ppp chap hostname RouterA             设置发给对方验证的账号

RouterA_config_s0/1#physical-layer speed 64000              设置DCE时钟频率

RouterA_config_s0/1#no shut

RouterA_config_s0/1#exit

RouterA_config#aaa authentication ppp default local            配置aaappp认证方法表

RouterB 配置:

Router>enable
Router#conf
Router_config#hostname RouterB
RouterB_config#username RouterA password 1234            设置账号密码
RouterB_config#int s0/1
RouterB_config_s0/1#ip address 192.168.1.2 255.255.255.0
RouterB_config_s0/1#encapsulation ppp                     封装PPP协议
RouterB_config_s0/1#ppp authentication chap                 设置验证方式
RouterB_config_s0/1#ppp chap hostname RouterB             设置发给对方验证的账号
RouterB_config_s0/1#no shut
RouterB_config_s0/1#exit
RouterB_config#aaa authentication ppp default local            配置aaappp认证方法表

注意:接口和协议都必须是 UP ;如果协议是 down ,通常是因为封装不匹配、 DCE 没有设置时钟等。

 
RouterA ping RouterB,通。