PAP的单向验证:

基本配置:

R1:

[R1]sys R1

[R1]local-user R1 class network

[R1-luser-network-R1]password simple 123

[R1-luser-network-R1]service-type ppp

[R1-luser-network-R1]qui

[R1]int s1/0

[R1-Serial1/0]link-protocol ppp

[R1-Serial1/0]ip add 1.1.1.1 8

[R1-Serial1/0]un sh

[R1-Serial1/0]qui

[R1]domain R1

[R1-isp-r1]authentication ppp local

[R1-isp-r1]qui

R2:

<H3C>sys

System View: return to User View with Ctrl+Z.

[H3C]sys R2

[R2]int s1/0

[R2-Serial1/0]ip add 1.1.1.2 8

[R2-Serial1/0]un sh

[R2-Serial1/0]link-protocol ppp

[R2-Serial1/0]ppp pap local-user R1 password simple 123

[R2-Serial1/0]qui

验证PPP协议是成功的:

[R2]dis int s1/0

Serial1/0

Current state: UP

Line protocol state: UP

Description: Serial1/0 Interface

Bandwidth: 64kbps

Maximum Transmit Unit: 1500

Hold timer: 10 seconds, retry times: 5

Internet Address is 1.1.1.2/8 Primary

Link layer protocol: PPP

LCP: opened, IPCP: opened

Output queue - Urgent queuing: Size/Length/Discards 0/100/0

Output queue - Protocol queuing: Size/Length/Discards 0/500/0

Output queue - FIFO queuing: Size/Length/Discards 0/75/0

Last link flapping: 0 hours 5 minutes 48 seconds

Last clearing of counters: Never

检查连通性:

[R1]ping 1.1.1.2

Ping 1.1.1.2 (1.1.1.2): 56 data bytes, press CTRL_C to break

56 bytes from 1.1.1.2: icmp_seq=0 ttl=255 time=1.789 ms

56 bytes from 1.1.1.2: icmp_seq=1 ttl=255 time=1.254 ms

56 bytes from 1.1.1.2: icmp_seq=2 ttl=255 time=1.148 ms

56 bytes from 1.1.1.2: icmp_seq=3 ttl=255 time=1.163 ms

56 bytes from 1.1.1.2: icmp_seq=4 ttl=255 time=1.155 ms

--- Ping statistics for 1.1.1.2 ---

5 packets transmitted, 5 packets received, 0.0% packet loss

round-trip min/avg/max/std-dev = 1.148/1.302/1.789/0.247 ms

5  packets received

PAP的双向认证:

R1:

[R1]sys R1

[R1]local-user R2 class network

New local user added.

[R1-luser-network-R2]password simple 123

[R1-luser-network-R2]service-type ppp

[R1-luser-network-R2]qui

[R1]int s1/0

[R1-Serial1/0]ip add 1.1.1.1 8

[R1-Serial1/0]un sh

[R1-Serial1/0]link-protocol ppp

[R1-Serial1/0]ppp authentication-mode pap domain system

[R1-Serial1/0]ppp pap local-user R2 password simple 123

[R1-Serial1/0]quit

[R1]domain system

[R1-isp-system]authentication ppp local

[R1-isp-system]quit

R2:

[R2]sys R2

[R2]local-user R1 class network

New local user added.

[R2-luser-network-R1]password simple 123

[R2-luser-network-R1]service-type ppp

[R2-luser-network-R1]quit

[R2]int s1/0

[R2-Serial1/0]ip add 1.1.1.2 8

[R2-Serial1/0]un sh

[R2-Serial1/0]link-protocol ppp

[R2-Serial1/0]ppp authentication-mode pap domain system

[R2-Serial1/0]ppp pap local-user R1 password simple 123

[R2-Serial1/0]quit

[R2]domain system

[R2-isp-system]authentication ppp local

[R2-isp-system]qui

检查PPP是否建立成功:

[R1]dis int s1/0

Serial1/0

Current state: UP

Line protocol state: UP

Description: Serial1/0 Interface

Bandwidth: 64kbps

Maximum Transmit Unit: 1500

Hold timer: 10 seconds, retry times: 5

Internet Address is 1.1.1.1/8 Primary

Link layer protocol: PPP

LCP: opened, IPCP: opened

Output queue - Urgent queuing: Size/Length/Discards 0/100/0

Output queue - Protocol queuing: Size/Length/Discards 0/500/0

Output queue - FIFO queuing: Size/Length/Discards 0/75/0

Last link flapping: 0 hours 9 minutes 26 seconds

Last clearing of counters: Never

检查连通性如何:

[R1]ping 1.1.1.2

Ping 1.1.1.2 (1.1.1.2): 56 data bytes, press CTRL_C to break

56 bytes from 1.1.1.2: icmp_seq=0 ttl=255 time=1.472 ms

56 bytes from 1.1.1.2: icmp_seq=1 ttl=255 time=0.970 ms

56 bytes from 1.1.1.2: icmp_seq=2 ttl=255 time=0.986 ms

56 bytes from 1.1.1.2: icmp_seq=3 ttl=255 time=1.092 ms

56 bytes from 1.1.1.2: icmp_seq=4 ttl=255 time=0.942 ms

--- Ping statistics for 1.1.1.2 ---

5 packets transmitted, 5 packets received,

这样以来。PAP的双向认证就确认建立完成了。

PPP CHAP 的双向认证:

验证方有用户名时的基本配置:

R1:

[H3C]sys R1

[R1]local-user R2 class network

New local user added.

[R1-luser-network-R2]service-type ppp

[R1-luser-network-R2]password simple 123

[R1-luser-network-R2]quit

[R1]int s1/0

[R1-Serial1/0]link-protocol ppp

[R1-Serial1/0]ip add 1.1.1.1 8

[R1-Serial1/0]un sh

[R1-Serial1/0]ppp authentication chap domain system

[R1-Serial1/0]ppp authentication chap domain system

[R1-Serial1/0]ppp chap user R1

[R1-Serial1/0]qui

[R1]domain system

[R1-isp-system]authentication ppp local

[R1-isp-system]qui

R2:

[H3C]sys R2

[R2]local-user R1 class network

New local user added.

[R2-luser-network-R1]service-type ppp

[R2-luser-network-R1]password simple 123

[R2-luser-network-R1]qui

[R2]int s1/0

[R2-Serial1/0]ip add 1.1.1.2 8

[R2-Serial1/0]un sh

[R2-Serial1/0]link-protocol ppp

[R2-Serial1/0]ppp authentication chap

[R2-Serial1/0]ppp chap user R2

[R2-Serial1/0]qui

查看PPP协议是否建立成功:

[R1]dis int s1/0

Serial1/0

Current state: UP

Line protocol state: UP

Description: Serial1/0 Interface

Bandwidth: 64kbps

Maximum Transmit Unit: 1500

Hold timer: 10 seconds, retry times: 5

Internet Address is 1.1.1.1/8 Primary

Link layer protocol: PPP

LCP: opened, IPCP: opened

Output queue - Urgent queuing: Size/Length/Discards 0/100/0

Output queue - Protocol queuing: Size/Length/Discards 0/500/0

Output queue - FIFO queuing: Size/Length/Discards 0/75/0

Last link flapping: 0 hours 7 minutes 32 seconds

Last clearing of counters: Never

检测;连通性:

[R1]ping 1.1.1.2

Ping 1.1.1.2 (1.1.1.2): 56 data bytes, press CTRL_C to break

56 bytes from 1.1.1.2: icmp_seq=0 ttl=255 time=1.411 ms

56 bytes from 1.1.1.2: icmp_seq=1 ttl=255 time=1.225 ms

56 bytes from 1.1.1.2: icmp_seq=2 ttl=255 time=1.204 ms

56 bytes from 1.1.1.2: icmp_seq=3 ttl=255 time=1.158 ms

56 bytes from 1.1.1.2: icmp_seq=4 ttl=255 time=1.169 ms

--- Ping statistics for 1.1.1.2 ---

5 packets transmitted, 5 packets received,

验证方没有用户名时的基本配置:

[H3C]sys R1

[R1]local-user R2 class network

New local user added.

[R1-luser-network-R2]password simple 123

[R1-luser-network-R2]service-type ppp

[R1-luser-network-R2]qui

[R1]int s1/0

[R1-Serial1/0]ip add 1.1.1.1 8

[R1-Serial1/0]un sh

[R1-Serial1/0]ppp authentication chap  domain system

[R1-Serial1/0]qui

[R1]domain system

[R1-isp-system]authentication ppp local

[R1-isp-system]qui

R2:

[H3C]sys R2

[R2]int s1/0

[R2-Serial1/0]ppp chap user R2

[R2-Serial1/0]ppp chap password simple 123

[R2-Serial1/0]ip add 1.1.1.2 8

[R2-Serial1/0]un sh

[R2-Serial1/0]qui

检查PPP协议是否确定建立成功:

[R2]dis int s1/0

Serial1/0

Current state: UP

Line protocol state: UP

Description: Serial1/0 Interface

Bandwidth: 64kbps

Maximum Transmit Unit: 1500

Hold timer: 10 seconds, retry times: 5

Internet Address is 1.1.1.2/8 Primary

Link layer protocol: PPP

LCP: opened, IPCP: opened

Output queue - Urgent queuing: Size/Length/Discards 0/100/0

Output queue - Protocol queuing: Size/Length/Discards 0/500/0

Output queue - FIFO queuing: Size/Length/Discards 0/75/0

Last link flapping: 0 hours 5 minutes 33 seconds

Last clearing of counters: Never

检查连通性如何:

[R2]ping 1.1.1.1

Ping 1.1.1.1 (1.1.1.1): 56 data bytes, press CTRL_C to break

56 bytes from 1.1.1.1: icmp_seq=0 ttl=255 time=1.000 ms

56 bytes from 1.1.1.1: icmp_seq=1 ttl=255 time=1.000 ms

56 bytes from 1.1.1.1: icmp_seq=2 ttl=255 time=0.000 ms

56 bytes from 1.1.1.1: icmp_seq=3 ttl=255 time=1.000 ms

56 bytes from 1.1.1.1: icmp_seq=4 ttl=255 time=1.000 ms

--- Ping statistics for 1.1.1.1 ---

5 packets transmitted, 5 packets received,

到此为止,确立PPP协议意见建立成功,并且链路线通行良好

PPP协议的配置(以H3C模拟器为例)相关推荐

  1. PPP 协议及配置解析

    PPP帧格式解析 PPP数据帧的格式PPP协议也许大家都听说过,可以说现在家里的ADSL都是通过PPP协议进行链路的搭建,今天就说说PPP到底是个啥东东.    想要了解PPP,个人认为有3个关键的知 ...

  2. 实验十二、十三 配置PPP协议、配置Frame-relay协议

    实验十二     配置PPP协议 要求: 配置PPP协议,实现广域网连接.然后,分别采用PAP和CHAP进行验证,最后启用OSPF协议,实现局域网之间相互通信. 基础配置 为路由器R1.R2设置相应的 ...

  3. Multilink ppp多链接PPP协议的配置

    ROUTE A--S0/0/0---------------------------S0/0/0 ROUTE B(10.1.1.2/24) s0/0/1-------ppp MP ---------- ...

  4. PPP协议详细图解实验

    一.配置PPP协议,使用CHAP认证模式(默认用户名)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office ...

  5. 大型企业网络配置系列课程详解(六) --PPP链路的配置与相关概念的理解

    大型企业网络配置系列课程详解(六)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office&qu ...

  6. PPP协议讲解(PPP连接状态、PPP报文)

    目录 简介 PPP定义的一整套协议(3大部分) PPP建立连接的五种状态(阶段) Esstablish阶段 LCP简介 LCP报文类型---3大类报文 LCP协商报文交互过程 LCP协商状态-5种状态 ...

  7. PPP协议(PPP协议链路建立过程、PAP、CHAP、华为虚拟网络设备配置)

    PPP协议是点到点传输协议. PPP协议 PPP协议帧 协议字段封装数据字段的上层协议(LCP.IPCP.PAP.CHAP). PPP协议链路建立过程 PPP协议的身份认证方式 PAP认证过程 认证过 ...

  8. PPP协议的相关介绍

    PPP协议的配置介绍 ppp协议是一种点到点链路层协议,主要用于在全双工的同异步链路上进行点到点的数据传输. 支持认证.错误检测.错误恢复. ppp组件: NCP–网络控制协议:用于对不同的网络层协议 ...

  9. 配置路由器接口使用PPP协议封装

    利用思科模拟器(Cisco Packet Tracer) 完成.下载地址:https://www.onlinedown.net/soft/636885.htm 1.选择PC.交换机.路由器 2.PC和 ...

  10. pap认证要交换几次报文_华为HCIA认证RS路由与交换 —— 链路状态协议OSPF PPP原理与配置方法详解...

    本文讲述了华为HCIA认证R&S路由与交换 -- 链路状态协议OSPF & PPP原理与配置方法.分享给大家供大家参考,具体如下: 文章目录 链路状态路由协议--OSPF 开放式最短路 ...

最新文章

  1. 76 道 Oracle Goldengate 面试问题
  2. C++对象模型4——多重继承的对象内存模型、vptr与vtbl的创建与重置的时机、不要在含有虚函数的类的构造函数中调用memset
  3. Linux中的清屏命令
  4. cocos2d-x游戏开发(十一)细说场景切换
  5. 使用飞书webhook发送图片消息
  6. mysql storage_mySQL__storage课堂笔记和练习
  7. iOS 利用UIDocumentInteractionController打开和预览文档
  8. AFNetworking下 http 改 https后遇到出现Error Domain=NSURLErrorDomain Code=-999 已取消 错误...
  9. 尺度不变特征变换(SIFT算法)Matlab程序代码测试例子的说明(Lowe的代码)
  10. 【hihocoder 1554】最短的 Nore0061
  11. C语言从入门到精通光盘源码(清华大学出版社)源代码下载
  12. 1到20的阶乘和是多少 php,20的阶乘(1到20的阶乘和结果)
  13. w ndows7如何清理垃圾,Win7系统垃圾一键清理工具 一键清除windows7系统垃圾文件
  14. C语言求数列最小公倍数,C语言复习---获取最小公倍数(公式法:两个数相乘等于最小公倍数乘以最大公约数)...
  15. 仿微信朋友圈拍照上传
  16. JAVA小记3(第三周)
  17. 企业大楼AI无感考勤解决方案
  18. win10使用markdownpad2报错 An error occurred with the HTML rendering component. This issue may be fixed b
  19. 3D成像汇总(原理解析)--- 双目视觉、激光三角、结构光、ToF、光场、全息
  20. 互联网开发搞手游创作8-再次推倒重新

热门文章

  1. BERT模型自定义词汇以及token相关
  2. 从零实现深度学习框架——优化反向传播相关代码
  3. 不是三维——软件项目的设计、开发与管理
  4. 网上照片之博客照片与网店照片拍摄心得
  5. 网络营销之怎样推广博客
  6. Java中Double保留六位小数_Java中Double保留后小数位的几种方法
  7. 如何给自己的电脑硬盘分区
  8. Flutter报错 Navigator operation requested with a context that does not include a Navigator.
  9. MTK平台调试mipi屏问题小结
  10. MAC ideaeclipse快捷键--笔记