PPP点对点协议简介
PPP (Point to Point Protocal) 点对点协议为在点对点连接上传输多协议数据包提供了一个标准方式,PPP
最初设计是为了两个对等节点之间的IP流量传输提供一种封装协议。在TCP/IP协议集
中他是一种用来同步调制连接的一种封装协议,数据链路层协议(OSI模型中的第二层)替代了原来非标准的第二层协议,即SLIP
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-eP1AnJuc-1606054023224)(https://s1.ax1x.com/2020/09/07/wnO4i9.png)]
应用环境
要接入第三方网络——电信、网通等时候用
基于安全考虑,双方要经过验证才能连接
配置命令(基于DCN的路由交换机)
RouterA配置
Router> enable
Router# config
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 chap hostname RouterA //设置发给对方验证的账号
RouterA_config_s0/1# physical-layer speed 64000 //设置DCE时钟频率
RouterA_config_s0/1# no shutdown
RouterA_config_s0/1# exit
RouterA_config# aaa authentication ppp default local //配置aaa的PPP认证方法表
RouterB配置
Router> enable
Router# config
Router_config# hostname RouterB
RouterB_config# username RouterA password 1234 //设置账号密码
RouterB_config# int s0/1
RouterB_config_s0/1# ip address 192.168.1.1 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 shutdown
RouterB_config_s0/1# exit
RouterB_config# aaa authentication ppp default local //配置aaa的PPP认证方法表