2路由器广域网PPP封装配置
更新时间:2023-09-06 22:17:01 阅读量: 教育文库 文档下载
路由器广域网PPP封装配置
路由器广域网PPP封装配置
一、实验目的
1. 掌握广域网HDLC封装配置 2. 理解DCE、DTE 3. 理解封装匹配
二、应用环境
1. 企业环境中异地的互连通常要经过第三方的网络,比如网通、电信等等,所以与局域网
的配置不同
2. 广域网通常需要付费、带宽比较有限、可靠性相比局域网要低
3. PPP是一种比HDLC功能丰富的广域网封装协议,支持身份认证、多链路捆绑等
三、实验设备
1. DCR-1702 2. CR-V35MT 3. CR-V35FC
两台 一条 一条
四、实验拓扑
五、实验要求
Router-A 接口 S1/1 DCE
IP地址 192.168.1.1
Router-B 接口 S1/0 DTE
IP地址
192.168.1.2
六、实验步骤
第一步 Router-A的配置 Router>enable Router #config Router _config#hostname Router-A
!进入特权模式
!进入全局配置模式 !修改机器名
路由器广域网PPP封装配置
Router-A_config#interface s1/1 !进入接口模式 Router-A_config_s1/1#ip address 192.168.1.1 255.255.255.0 !配置IP地址 Router-A_config_s1/1#encapsulation PPP !封装PPP协议 Router-A_config_s1/1#physical-layer speed 64000 !配置DCE时钟频率 Router-A_config_s1/1#no shutdown Router-A_config_s1/1#^Z !按ctrl + z进入特权模式
第二步:查看配置
Router-A#show interface s1/1 !查看接口状态 Serial1/1 is up, line protocol is down !对端没有配置,所以协议是DOWN Mode=Sync DCE Speed=64000 !查看DCE DTR=UP,DSR=UP,RTS=UP,CTS=DOWN,DCD=UP Interface address is 192.168.1.1/24 !查看IP地址 MTU 1500 bytes, BW 64 kbit, DLY 2000 usec
Encapsulation prototol PPP, link check interval is 10 sec !查看封装协议 Octets Received0, Octets Sent 0
Frames Received 0, Frames Sent 0, Link-check Frames Received0 Link-check Frames Sent 89, LoopBack times 0
Frames Discarded 0, Unknown Protocols Frames Received 0, Sent failuile 0 Link-check Timeout 0, Queue Error 0, Link Error 0, 60 second input rate 0 bits/sec, 0 packets/sec! 60 second output rate 0 bits/sec, 0 packets/sec!
0 packets input, 0 bytes, 8 unused_rx, 0 no buffer
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 8 packets output, 192 bytes, 0 unused_tx, 0 underruns error:
0 clock, 0 grace
PowerQUICC SCC specific errors:
0 recv allocb mblk fail 0 recv no buffer
0 transmitter queue full 0 transmitter hwqueue_full
第三步:Router-B的配置 Router>enable !进入特权模式 Router #config !进入全局配置模式 Router _config#hostname Router-B !修改机器名 Router-B_config#interface s1/0 !进入接口模式 Router-B_config_s1/0#ip address 192.168.1.2 255.255.255.0 !配置IP地址 Router-B_config_s1/0#encapsulation PPP !封装PPP协议 Router-B_config_s1/0#no shutdown Router-B_config_s1/0#^Z !按ctrl + z进入特权模式
第四步:查看配置
Router-A#show interface s1/0 !查看接口状态 Serial1/0 is up, line protocol is up !接口和协议都是up Mode=Sync DTE !查看DTE DTR=UP,DSR=UP,RTS=UP,CTS=DOWN,DCD=UP Interface address is 192.168.1.2/24 !查看IP地址 MTU 1500 bytes, BW 64 kbit, DLY 2000 usec
Encapsulation prototol PPP, link check interval is 10 sec !查看封装协议 Octets Received0, Octets Sent 0
Frames Received 0, Frames Sent 0, Link-check Frames Received0 Link-check Frames Sent 89, LoopBack times 0
Frames Discarded 0, Unknown Protocols Frames Received 0, Sent failuile 0 Link-check Timeout 0, Queue Error 0, Link Error 0,
路由器广域网PPP封装配置
60 second input rate 0 bits/sec, 0 packets/sec! 60 second output rate 0 bits/sec, 0 packets/sec!
0 packets input, 0 bytes, 8 unused_rx, 0 no buffer
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 8 packets output, 192 bytes, 0 unused_tx, 0 underruns error:
0 clock, 0 grace
PowerQUICC SCC specific errors:
0 recv allocb mblk fail 0 recv no buffer
0 transmitter queue full 0 transmitter hwqueue_full
第五步:测试连通性
Router-A#ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2): 56 data bytes !!!!!
--- 192.168.1.2 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 20/22/30 ms
七、注意事项和排错
1. 2. 3. 4. 5.
注意查看接口状态,接口和协议都必须是UP
CR-V35FC所连的接口为DCE,CR-V35MT所连的接口为DTE 协议是DOWN,通常是封装不匹配、DCE时钟没有配置 接口是DOWN,通常是线缆故障
在实际工作中,DCE设备通常由服务提供商配置,本实验是模拟环境
八、配置序列
路由器A的序列
Router-A#show running-config Building configuration...
Current configuration: !
!version 1.3.2E
service timestamps log date service timestamps debug date no service password-encryption !
hostname Router-A ! !
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0 no ip directed-broadcast !
< 省略….>
interface Serial1/1
ip address 192.168.1.1 255.255.255.0 no ip directed-broadcast physical-layer speed 64000 !
!查看机器名
!查看IP地址
!查看IP地址
路由器广域网PPP封装配置
interface Async0/0 no ip address
no ip directed-broadcast
九、共同思考
1. PPP与HDLC的区别是什么?
十、课后练习
请将A的封装改为frame-relay(帧中继),观察PING的结果
十一、相关命令详解
encapsulation
使用encapsulation接口配置命令设置接口使用的封装协议。使用这个命令的no形式恢复缺省封装
encapsulation encapsulation-type
参数
缺省
缺省值与接口的类型有关。例如,同步串行接口缺省为HDLC,异步接口和拨号接口缺省为
PPP。
命令模式
接口配置态
路由器广域网PPP封装配置
使用说明
若想同时支持多个封装,可以使用autoselect命令。此命令设置接口的主要封装协议。可以使用show interface命令显示接口的主要封装。目前此命令只在串行接口有效。
示例
下面的例子设置串行接口1/1上的帧中继封装:
interface serial 1/1
encapsulation framerelay
下面的例子恢复串行接口1/0上的缺省封装:
interface serial 1/0 no encapsulation
正在阅读:
2路由器广域网PPP封装配置09-06
入党积极分子 材料 党员12-11
公共部门人力资源管理学习总结09-01
110KV桂东线停电解口施工方案(改)(1) - 图文11-07
智课网(SmartStudy)TOFEL在线课程-托福独立写作185题库第7题04-08
反问句改陈述句的方法08-08
小学数学青岛版六年级上册比例分配应用题12-13
人教版高中英语book 3Unit 5重点梳理和练习05-16
FDA《食物影响的生物利用度及饮食条件下的生物等效性研究》指导原则介绍10-14
苹果MAC OS X USB无线网卡10-12
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- 广域网
- 封装
- 路由器
- 配置
- PPP
- 2010年二连市其他事业单位考试笔试成绩
- 排序算法总结大全(10种)
- 槽钢、工字钢、钢板理论重量表大全
- 2019人教部编版语文四年级上册第五单元测试题及答案
- 2015年人教版三年级数学下册第四单元 两位数乘两位数笔算乘法(不进位)
- 妊娠期高血压护理查房
- 政治理论课随堂练习题答案2020年华南理工大学网络教育
- HS-2000外置式超声波液位计说明书
- 高中数学平面向量知识点总结
- 2020年华工网络教育政治理论B随堂练习(正确答案)
- 财务管理第四章长期证券的估价
- 2011级线性代数考试试题(A卷)_46959
- 幼儿园大班教学工作总结
- 人力资源绩效管理练习试题及答案
- 燃气空调的应用与发展1
- 股东出资协议书
- 2012江苏省企业研究生工作站认定申请表
- 圆的切点弦方程的九种求法
- 无线CP243i快速使用指南
- TCL彩电策划方案