路由器配置——PAP与CHAP认证
一、实验目的:掌握PAP与CHAP认证配置
二、拓扑图:
三、具体步骤配置:
(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、查看R1的S0/0/0端口信息
如图,红色标记处表示是PPP认证
3、测试全网是否互通:
(1)R1与R2
(2)R2与R3
(3)R3与R1
结果:全网互通成功!!!
路由器配置——PAP与CHAP认证的更多相关文章
- 路由器配置PPP协议 CHAP验证 PAP验证
路由器配置PPP协议 CHAP验证 PAP验证 来源 https://www.cnblogs.com/tcheng/p/5967485.html PAP是两次握手,明文传输用户密码进行认证:CHAP是 ...
- 路由器基础配置之ppp封装下的pap,chap认证
我们将以上面的拓扑图完成本次实验,路由器的默认封装为HDLC,要求为把路由器全被更改为ppp封装,并在router3与router4之间用pap认证,在router4与router5之间用chap认证 ...
- 路由器配置深入浅出—路由器接口PPP协议封装及PAP和CHAP验证配置
知识域: 是针对点对点专线连接的接口的二层封装协议配置 PPP的PAP和CHAP验证,cpt支持,不一定要在gns3上做实验. 路由器出厂默认是hdlc封装,修改为ppp封装后,可以采用pap验证或者 ...
- 详解eNSP下的PPP之MP、PAP/CHAP认证实验配置
一.PPP MP实验(用虚拟模板配置) 1.拓扑图
- 路由器配置——基于链路的OSPF简单口令认证
一.实验目的:掌握基于链路的OSPF简单口令认证 二.拓扑图: 三.具体步骤配置: (1)R1路由器配置 Router>enable Router#configure terminal Ente ...
- 路由器配置——基于区域的OSPF,MD5认证
一.实验目的:掌握OSPF基于区域的MD5认证 二.拓扑图: 三.具体步骤配置 (1)R1路由器配置 Router>enable Router#configure terminal Enter ...
- 路由器配置——基于区域的OSPF简单认证
一.实验目的:掌握区域的OSPF简单认证 二.拓扑图: 三.具体步骤配置: (1)R1路由器配置 Router>enable Router#configure terminal Enter co ...
- 神州数码广域网PPP封装CHAP认证配置
实验要求:掌握PPP封装协议下的CHAP认证 拓扑如下 R1 enable 进入特权模式 config 进入全局模式 hostname R1 修改名称 interface s0/1 进入端口 ip a ...
- CHAP认证原理
整个过程就是PPP协商过程,分三步:LCP.认证.NCP. 一 协议概述 PPP包含以下两个层次的协议: ·链路控制协议(LCP):负责建立.配置和测试数据链路连接 ·网络控制协议(NCP):负责建立 ...
随机推荐
- Solr综合案例深入练习
1. 综合案例 1.1. 需求 使用Solr实现电商网站中商品信息搜索功能,可以根据关键字.分类.价格搜索商品信息,也可以根据价格进行排序,并且实现分页功能. 界面如下: 1.2. 分析 开发人员需要 ...
- 2020年AI、CV、NLP顶会最全时间表
2020年AI.CV.NLP顶会最全时间表 2019-09-01 14:04:19 weixin_38753768 阅读数 40 2020 AI.CV.NLP主流会议时间表,包含会议举办的时间.地 ...
- django 浅谈索引(转)
https://blog.csdn.net/qq_37049050/article/details/80749381
- 应用人员反馈报错,ORA-03137: TTC protocol internal error : [12333]
一.报错现象 应用人员反馈连接不上数据库,连接报错. 我们使用PLSQL发现可以连接数据库,但是数据库DB Alert存在如下报错信息 DB AlertFri Oct :: Errors ): ORA ...
- css border 三角形阴影(不规则图形阴影) & 多重边框的制作
前言:这是笔者学习之后自己的理解与整理.如果有错误或者疑问的地方,请大家指正,我会持续更新! border 的组合写法 border:border-width border-style border- ...
- 电子口岸 打开“退税联打印”时,PDF界面无法显示
电子口岸 打开“退税联打印”时,PDF界面无法显示 咨询0571-95198 : IE要在8-10间,系统 要Win7 32B ---------------------参考------------- ...
- (四)spring+servlet 整合
一.Spring与Servlet的整合 1.1: 加入Spring的jar包.(要加web.jar包) 1.2: java工程中获取Spring的上下文对象. ApplicationContext c ...
- sftp配置多个用户权限的问题
groupadd group1 chmod 0755 /test/useradd -g group1 -d /test/backend/ -M test_backendusermod -s /sbin ...
- Cause: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (16944839 > 16777216). You can change this value on the server by setting the max_allowed_packet' variable.
今天发现task微服务的error日志报如下错误: Cause: com.mysql.jdbc.PacketTooBigException: Packet for query is too large ...
- Golang内存管理
Golang 内存管理 原文链接[http://legendtkl.com/2017/04/02/golang-alloc/] Golang 的内存管理基于 tcmalloc,可以说起点挺高的.但是 ...