ppp点对点协议

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认证方法表
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值