文档介绍:该【路由器广域网PPP封装配置 】是由【布罗奇迹】上传分享,文档一共【11】页,该文档可以免费在线阅读,需要了解更多关于【路由器广域网PPP封装配置 】的内容,可以使用淘豆网的站内搜索功能,选择自己适合的文档,以下文字是截取该文章内的部分文字,如需要获得完整电子版,请下载此文档到您的设备,方便您编辑和打印。路由器广域网PPP封装配置
路由器广域网PPP封装配置
一、实验目的
掌握广域网HDLC封装配置
理解DCE、DTE
理解封装匹配
二、应用环境
企业环境中异地的互连通常要经过第三方的网络,比如网通、电信等等,所以与局域网的配置不同
广域网通常需要付费、带宽比较有限、可靠性相比局域网要低
PPP是一种比HDLC功能丰富的广域网封装协议,支持身份认证、多链路捆绑等
三、实验设备
DCR-1702 两台
CR-V35MT 一条
CR-V35FC 一条
!封装PPP协议
Router-A_config_s1/1#physical-layerspeed64000 !配置DCE时钟频率
Router-A_config_s1/1#noshutdown
Router-A_config_s1/1#^Z !按ctrl+z进入特权模式
第二步:查看配置
Router-A#showinterfaces1/1 !查看接口状态
Serial1/1isup,lineprotocolisdown !对端没有配置,所以协议是DOWN
Mode=SyncDCESpeed=64000 !查看DCE
DTR=UP,DSR=UP,RTS=UP,CTS=DOWN,DCD=UP
!查看IP地址
MTU1500bytes,BW64kbit,DLY2000usec
EncapsulationprototolPPP,linkcheckintervalis10sec !查看封装协议
OctetsReceived0,OctetsSent0
FramesReceived0,FramesSent0,Link-checkFramesReceived0
Link-checkFramesSent89,LoopBacktimes0
FramesDiscarded0,UnknownProtocolsFramesReceived0,Sentfailuile0
Link-checkTimeout0,QueueError0,LinkError0,
60secondinputrate0bits/sec,0packets/sec!
60secondoutputrate0bits/sec,0packets/sec!
0packetsinput,0bytes,8unused_rx,0nobuffer
0inputerrors,0CRC,0frame,0overrun,0ignored,0abort
8packetsoutput,192bytes,0unused_tx,0underruns
error:
0clock,0grace
PowerQUICCSCCspecificerrors:
0recvallocbmblkfail0recvnobuffer
0transmitterqueuefull0transmitterhwqueue_full
第三步:Router-B的配置
Router>enable !进入特权模式
Router#config !进入全局配置模式
Router_config#hostnameRouter-B !修改机器名
Router-B_config#interfaces1/0 !进入接口模式
Router-B_config_s1/0#
!配置IP地址
Router-B_config_s1/0#encapsulationPPP !封装PPP协议
Router-B_config_s1/0#noshutdown
Router-B_config_s1/0#^Z !按ctrl+z进入特权模式
第四步:查看配置
Router-A#showinterfaces1/0 !查看接口状态
Serial1/0isup,lineprotocolisup !接口和协议都是up
Mode=SyncDTE !查看DTE
DTR=UP,DSR=UP,RTS=UP,CTS=DOWN,DCD=UP
!查看IP地址
MTU1500bytes,BW64kbit,DLY2000usec
EncapsulationprototolPPP,linkcheckintervalis10sec !查看封装协议
OctetsReceived0,OctetsSent0
FramesReceived0,FramesSent0,Link-checkFramesReceived0
Link-checkFramesSent89,LoopBacktimes0
FramesDiscarded0,UnknownProtocolsFramesReceived0,Sentfa
iluile0
Link-checkTimeout0,QueueError0,LinkError0,
60secondinputrate0bits/sec,0packets/sec!
60secondoutputrate0bits/sec,0packets/sec!
0packetsinput,0bytes,8unused_rx,0nobuffer
0inputerrors,0CRC,0frame,0overrun,0ignored,0abort
8packetsoutput,192bytes,0unused_tx,0underruns
error:
0clock,0grace
PowerQUICCSCCspecificerrors:
0recvallocbmblkfail0recvnobuffer
0transmitterqueuefull0transmitterhwqueue_full
第五步:测试连通性
Router-A#
():56databytes
!!!!!
------
5packetstransmitted,5packetsreceived,0%packetloss
round-tripmin/avg/max=20/22/30ms
七、注意事项和排错
注意查看接口状态,接口和协议都必须是UP
CR-V35FC所连的接口为DCE,CR-V35MT所连的接口为DTE
协议是DOWN,通常是封装不匹配、DCE时钟没有配置
接口是DOWN,通常是线缆故障
在实际工作中,DCE设备通常由服务提供商配置,本实验是模拟环境
八、配置序列
路由器A的序列
Router-A#showrunning-config
Buildingconfiguration...
Currentconfiguration:
!
!
servicetimestampslogdate
servicetimestampsdebugdate
noservicepassword-encryption
!
hostnameRouter-A !查看机器名
!
!
interfaceFastEthernet0/0
!查看IP地址
noipdirected-broadcast
!
<省略….>
interfaceSerial1/1
!查看IP地址
noipdirected-broadcast
physical-layerspeed64000
!
interfaceAsync0/0
noipaddress
noipdirected-broadcast
九、共同思考
PPP与HDLC的区别是什么?
十、课后练习
请将A的封装改为frame-relay(帧中继),观察PING的结果
十一、相关命令详解
encapsulation
使用encapsulation接口配置命令设置接口使用的封装协议。使用这个命令的no形式恢复缺省封装
encapsulationencapsulation-type
参数
参数
参数说明
encapsulation-type
封装类型,为下面的关键字之一:
frame-relay-帧中继(用于串行接口);
hdlc-串行接口的HDLC协议,它提供HDLC的同步帧和检错功能而无窗口或重传机制;
ppp-PPP(用于串行接口);
slip-SLIP(用于串行接口);
x25-(用于串行接口);
sdlc-串行接口的SDLC协议;
缺省
缺省值与接口的类型有关。例如,同步串行接口缺省为HDLC,异步接口和拨号接口缺省为PPP。
命令模式
接口配置态
使用说明
若想同时支持多个封装,可以使用autoselect命令。此命令设置接口的主要封装协议。可以使用showinterface命令显示接口的主要封装。目前此命令只在串行接口有效。
示例
下面的例子设置串行接口1/1上的帧中继封装:
interfaceserial1/1
encapsulationframerelay
下面的例子恢复串行接口1/0上的缺省封装:
interfaceserial1/0
noencapsulation