一、实验目的:掌握PAPCHAP认证配置

二、拓扑图:

三、具体步骤配置:

(1)R1路由器配置:

Router>enable  --进入特权模式

Router#configure terminal  --进入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1  --修改路由器名为R1

R1(config)#interface l0  --进入回环端口

R1(config-if)#ip address 192.168.1.254 255.255.255.0  --配置ip地址

R1(config-if)#no shutdown  --激活端口

R1(config-if)#exit  --返回上一级

R1(config)#interface s0/0/0  --进入端口

R1(config-if)#ip address 192.168.12.1 255.255.255.0  --为端口配置ip地址

R1(config-if)#clock rate 64000  --设置时钟同步速率

R1(config-if)#no shutdown  --激活端口

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down

R1(config-if)#exit  --返回上一级

R1(config)#route rip  --开启rip服务

R1(config-router)#version 2  --版本2

R1(config-router)#no auto-summary  --关闭路由自动汇总

R1(config-router)#network 192.168.1.0  --添加直连网段到rip

R1(config-router)#network 192.168.12.0

R1(config-router)#exit  --返回上一级

R1(config)#username abc1 password 456  --在中心路由器R1上为远程路由器R2设置用户名和密码

R1(config)#interface s0/0/0  --进入端口

R1(config-if)#encapsulation ppp  --封装端口为ppp

R1(config-if)#ppp authentication pap  --在R1上,配置PAP 验证

R1(config-if)#ppp pap sent-username abc password 123  --在中心路由器R1上为远程路由器R2设置用户名和密码

R1(config-if)#end  --返回特权模式

%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

R1#

%SYS-5-CONFIG_I: Configured from console by console

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

(2)R2路由器配置:

Router>enable  --进入特权模式

Router#configure terminal  --进入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R2  --修改路由器名为R2

R2(config)#interface l0  --进入回环端口

R2(config-if)#ip address 192.168.2.254 255.255.255.0  --配置ip地址

R2(config-if)#no shutdown  --激活端口

R2(config-if)#exit  --返回上一级

R2(config)#interface s0/0/0  --进入端口

R2(config-if)#ip address 192.168.12.2 255.255.255.0  --为端口配置ip地址

R2(config-if)#no shutdown  --激活端口

R2(config-if)#interface s0/0/1  --进入端口

R2(config-if)#ip address 192.168.24.2 255.255.255.0  --为端口配置ip地址

R2(config-if)#clock rate 64000  --设置时钟同步速率

R2(config-if)#no shutdown  --激活端口

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down

R2(config-if)#exit  --返回上一级

R2(config)#route rip  --开启rip协议

R2(config-router)#version 2  --版本2

R2(config-router)#no auto-summary  --关闭路由自动汇总

R2(config-router)#network 192.168.2.0  --添加直连网段到rip

R2(config-router)#network 192.168.12.0

R2(config-router)#network 192.168.24.0

R2(config-router)#exit  --返回上一级

R2(config)#username abc password 123  --在R2上为R1设置用户名和密码

R2(config)#username R3 password cisco  --在R2上为R3设置用户名和密码(注意两端密码要相同)

R2(config)#interface s0/0/0  --进入端口

R2(config-if)#encapsulation ppp  --封装端口为PPP协议

R2(config-if)#ppp authentication pap  --配置PAP验证

R2(config-if)#ppp pap sent-username abc1 password 456  --在R2上为R1设置用户名和密码

R2(config-if)#interface s0/0/1  --进入端口

R2(config-if)#encapsulation ppp  --封装端口为ppp协议

R2(config-if)#ppp authentication chap  --配置chap验证

R2(config-if)#end  --返回特权模式

R2#

%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%SYS-5-CONFIG_I: Configured from console by console

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

R2#

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up

(3)R3路由器配置:

Router>enable  --进特权模式

Router#configure terminal  --进入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R3  --修改路由器名为R3

R3(config)#interface l0  --进入回环端口

R3(config-if)#ip address 192.168.3.254 255.255.255.0  --为端口配置ip地址

R3(config-if)#no shutdown  --激活端口

R3(config-if)#exit  --返回上一级

R3(config)#interface S0/0/0  --进入端口

R3(config-if)#ip address 192.168.24.1 255.255.255.0  --为端口配置ip地址

R3(config-if)#no shutdown  --激活端口

R3(config-if)#exit  --返回上一级

R3(config)#route rip  --开启rip协议

R3(config-router)#version 2  --版本2

R3(config-router)#no auto-summary  --关闭路由自动汇总

R3(config-router)#network 192.168.3.0  --添加直连网段到rip

R3(config-router)#network 192.168.24.0

R3(config-router)#exit  --返回上一级

R3(config)#username R2 password cisco  --在R3上为R2设置用户名和密码

R3(config)#interface s0/0/0  --进入端口

R3(config-if)#encapsulation ppp  --封装端口为ppp协议

R3(config-if)#ppp authentication chap  --配置chap验证

R3(config-if)#end  --返回特权模式

%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

R3#

%SYS-5-CONFIG_I: Configured from console by console

四、验证测试:

1、测试是否开启ppp认证

(1)R1:

(2)R2:

(3)R3:

2、查看R1S0/0/0端口信息

如图,红色标记处表示是PPP认证

3、测试全网是否互通:

(1)R1R2

(2)R2R3

(3)R3R1

结果:全网互通成功!!!

路由器配置——PAP与CHAP认证的更多相关文章

  1. 路由器配置PPP协议 CHAP验证 PAP验证

    路由器配置PPP协议 CHAP验证 PAP验证 来源 https://www.cnblogs.com/tcheng/p/5967485.html PAP是两次握手,明文传输用户密码进行认证:CHAP是 ...

  2. 路由器基础配置之ppp封装下的pap,chap认证

    我们将以上面的拓扑图完成本次实验,路由器的默认封装为HDLC,要求为把路由器全被更改为ppp封装,并在router3与router4之间用pap认证,在router4与router5之间用chap认证 ...

  3. 路由器配置深入浅出—路由器接口PPP协议封装及PAP和CHAP验证配置

    知识域: 是针对点对点专线连接的接口的二层封装协议配置 PPP的PAP和CHAP验证,cpt支持,不一定要在gns3上做实验. 路由器出厂默认是hdlc封装,修改为ppp封装后,可以采用pap验证或者 ...

  4. 详解eNSP下的PPP之MP、PAP/CHAP认证实验配置

    一.PPP MP实验(用虚拟模板配置) 1.拓扑图

  5. 路由器配置——基于链路的OSPF简单口令认证

    一.实验目的:掌握基于链路的OSPF简单口令认证 二.拓扑图: 三.具体步骤配置: (1)R1路由器配置 Router>enable Router#configure terminal Ente ...

  6. 路由器配置——基于区域的OSPF,MD5认证

    一.实验目的:掌握OSPF基于区域的MD5认证 二.拓扑图: 三.具体步骤配置 (1)R1路由器配置 Router>enable Router#configure terminal Enter ...

  7. 路由器配置——基于区域的OSPF简单认证

    一.实验目的:掌握区域的OSPF简单认证 二.拓扑图: 三.具体步骤配置: (1)R1路由器配置 Router>enable Router#configure terminal Enter co ...

  8. 神州数码广域网PPP封装CHAP认证配置

    实验要求:掌握PPP封装协议下的CHAP认证 拓扑如下 R1 enable 进入特权模式 config 进入全局模式 hostname R1 修改名称 interface s0/1 进入端口 ip a ...

  9. CHAP认证原理

    整个过程就是PPP协商过程,分三步:LCP.认证.NCP. 一 协议概述 PPP包含以下两个层次的协议: ·链路控制协议(LCP):负责建立.配置和测试数据链路连接 ·网络控制协议(NCP):负责建立 ...

随机推荐

  1. Django中的Object Relational Mapping(ORM)

    ORM 介绍 ORM 概念 对象关系映射(Object Relational Mapping,简称ORM)模式是一种为了解决面向对象与关系数据库存在的互不匹配的现象的技术. 简单的说,ORM是通过使用 ...

  2. asp.net core-16.EF Core Migration

    左边的是基于visual studio code 右边的是基于visual studio 如果想要在数据库的AspNetUsers表里添加一列 然后可以发现 在Data下的Migrations文件夹下 ...

  3. 如何将Linux的工程原封不动地移植到Windows上面

    习惯在Linux下进行开发.但是由于工作需要,不得不与其他使用Windows的项目组同事对接,同事要求我给出可用的程序,而我只有基于makefile的传统工程. 改动到VS工程上发现一部分头文件在Wi ...

  4. Centos7.5 安装JDK1.8 步骤

    1.下载JDK安装包 先下载好JDK1.8 的安装包,下载地址:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downlo ...

  5. android 自动化测试案例之 MonkeyScript

    #文件名 MonkeyScript.mks #功能: 使用monkey script测试app,此案例是测试搜索功能(输入关键字,然后点击搜索按钮)#参考: http://blog.csdn.net/ ...

  6. python - pyxel 制作游戏

    之前看了一个项目,觉得还挺有意思的,是关于做一个像素风的游戏,现在,虚幻4,u3d,已经让游戏愈发的好看,好玩,曾经我们童年的像素风游戏,愈来愈少.所以,这里我们就回味下. Pyxel是一个pytho ...

  7. 初学VUE 走马灯效果

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  8. linux shell数值比较和字符串比较

    说明: 1. 把字符串当成整型进行比较,由于abcd等字符对不上0123当程序尝试去转成二进制时无法完成转换,所以用于数值比较的运算不能用于字符串比较:但是把整型当成字符串进行比较,0123这些数值完 ...

  9. hadoop之yarn详解(命令篇)

    本篇主要对yarn命令进行阐述 一.yarn命令概述 [root@lgh ~]# yarn -help Usage: yarn [--config confdir] COMMAND where COM ...

  10. 《浏览器工作原理与实践》<11>this:从JavaScript执行上下文的视角讲清楚this

    在上篇文章中,我们讲了词法作用域.作用域链以及闭包,接下来我们分析一下这段代码: var bar = { myName:"time.geekbang.com", printName ...