广域网协议封装与验证实验
更新时间:2024-02-01 14:07:01 阅读量: 教育文库 文档下载
10级计网 贺建
广域网协议封装与验证实验
实验背景:
你是公司的网络管理员,两个分公司之间希望能够申请一条广域网专线进行连接。现有思科路由器设备,希望你了解该设备的广域网接口所支持的协议,以确定选择哪种广域网链路。公司为了满足不断增长的业务需求,申请了专线接入,你的客户端与ISP进行链路协商时要验证身份,配置路由器保证链路建立,并考虑其安全性。
实验步骤:
串行链路均采用PPP封装;路由器之间的链路采用CHAP验证和PAP验证;路由协议均采用动态RIP协议。
? 任务1:配置路由器接口网关地址,设置串行链路的时钟频率。 ? 任务2:配置动态路由协议。 ? 任务3:验证连通性。
? 任务4:配置链路之间的安全验证。
任务5:测试安全验证的有效性。
实验拓扑:
IP地址规划:
设备名称 R0 R1 端口 S0/0 Fa0/0 S0/0 S0/1 IP 192.168.3.1 192.168.1.1 192.168.3.2 192.168.3.5 子网掩码 255.255.255.252 255.255.255.0 255.255.255.252 255.255.255.252 网关 R2 PC0 PC1 S0/0 Fa0/0 192.168.3.6 192.168.2.1 192.168.1.2 192.168.2.2 255.255.255.252 255.255.255.0 255.255.255.0 255.255.255.0 192.168.1.1 192.168.2.1 实验配置过程:
1. 路由器R0、R1、R2基本配置 Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R0 R0(config)#int f0/0
R0(config-if)#ip add 192.168.1.1 255.255.255.0 R0(config-if)#no shut R0(config-if)#exit R0(config)#int s0/0
R0(config-if)#ip add 192.168.3.1 255.255.255.252 R0(config-if)#clock rate 64000 R0(config-if)#no shut R0(config-if)#exit
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R1 R1(config)#int s0/0
R1(config-if)#ip add 192.168.3.2 255.255.255.252 R1(config-if)#no shut R1(config-if)#exit R1(config)#int s0/1
R1(config-if)#ip add 192.168.3.5 255.255.255.252 R1(config-if)#no shut R1(config-if)#exit
Router>en Router#conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R2 R2(config)#int s0/0
R2(config-if)#ip add 192.168.3.6 255.255.255.252 R2(config-if)#clock rate 64000 R2(config-if)#no shut
R2(config-if)#exit R2(config)#int f0/0
R2(config-if)#ip add 192.168.2.1 255.255.255.0 R2(config-if)#no shut R2(config-if)#exit
2. 配置路由协议RIP2 R0>en R0#conf t
R0(config)#router rip R0(config-router)#ver 2
R0(config-router)#net 192.168.1.0 R0(config-router)#net 192.168.3.0 R0(config-router)#exit
R1(config)#router rip R1(config-router)#ver 2
R1(config-router)#net 192.168.3.0 R1(config-router)#net 192.168.3.4 R1(config-router)#exit
R2(config)#router rip R2(config-router)#ver 2
R2(config-router)#net 192.168.3.4 R2(config-router)#net 192.168.2.0 R2(config-router)#exit
3. 测试连通性 PC0 ping PC1
成功!ok
4. 配置链路安全性 R0(config)#int s0/0
R0(config-if)#encapsulation ppp
R0(config-if)#ppp authentication chap R0(config-if)#exit
R0(config)#username R1 password cisco
R1(config)#int s0/0
R1(config-if)#encapsulation ppp R1(config-if)#ppp authentication chap R1(config-if)#exit
R1(config)#username R0 password cisco R1(config)#
R1(config)#int s0/1
R1(config-if)#encapsulation ppp R1(config-if)#ppp auth pap R1(config-if)#exit
R1(config)#username cisco password 123
R2(config)#int s0/0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp pap sent-username cisco password 123 R2(config-if)#exit
5.测试安全验证的有效性 PC0 ping PC1
关闭路由器R1中接口s0/0之后 R1#debug ppp authentication PPP authentication debugging is on R1#conf t
Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int s0/0 R1(config-if)#shut
R1(config-if)# R1(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
R1(config-if)#
Serial0/0 IPCP: O CONFREQ [Closed] id 1 len 10 Serial0/0 IPCP: I CONFACK [Closed] id 1 len 10 Serial0/0 IPCP: O CONFREQ [Closed] id 1 len 10
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up R1(config-if)#exit
关闭路由器R1中接口s0/1之后 R1#debug ppp auth
PPP authentication debugging is on R1#conf t
Enter configuration commands, one per line. End with CNTL/Z. R1(config)#int s0/1
R1(config-if)#shut R1(config-if)#no shut R1(config-if)#
%LINK-5-CHANGED: Interface Serial0/1, changed state to up R1(config-if)#
Serial0/1 PAP: I AUTH-REQ id 17 len 15 Serial0/1 PAP: Authenticating peer
Serial0/1 PAP: Phase is FORWARDING, Attempting Forward
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up
到此广域网协议封装与验证实验完成!
正在阅读:
广域网协议封装与验证实验02-01
水位监测系统原理07-04
染印花布教学文档05-13
学校岗位安全工作指南02-23
智能垃圾桶作文600字07-16
父亲的爱作文550字06-19
驾驶员疲劳检测系统.05-04
雪花赞作文800字06-19
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- 广域网
- 封装
- 验证
- 协议
- 实验
- 《常见鱼病诊治技能实训(实践)》考核大纲
- 房屋租赁及管理合同
- 朔城区公安消防大队“两节、 两会”消防安全保卫工作汇报
- 2018继续教育《全面深化改革-推进国家文明发展》试题及答案1
- 化工设计常用管道仪表流程图物料代号和缩写词
- 小学科学课程与教学
- 婚前一方按揭购房离婚时增值部分如何分割
- 咨询工程师继续教育-化工医药(节能节水)试卷90分
- 喀蔚波02章习题解答
- 中国电信网规网优3级认证真题004-CDMA通信原理 - 图文
- 2018届湖北省武汉市武昌区高三5月调考考试理综物理试题(解析版)
- 变压器反事故措施
- 投射测验
- 8-高尔夫球场地下水基础环境状况调查评估培训材料 - 图文
- 属虎2019年运势及运程 属虎人2019年每月运势
- 比泽尔压缩机优缺点 - 图文
- 部编版人教版初中历史八年级上册第5单元第17课 中国工农红军长征(导学案)
- 2017-2018-1-初一数学期末复习- 副本
- J2EE与中间件复习题
- 某县政府党组党风廉政建设工作情况的报告