CCNA授课PPT课件--第13章 异步接口配置

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

第13章异步接口配置13.1异步接口配置13.1.1物理层配置1.Modem配置Branch(config)#line33Branch(config-line)#modemautoconfiguretypehayes_optima图13-1-1命令showmodemcap的输出Branch#showmodemcapdefaultcodex_3260usr_courierusr_sportsterhayes_optimaglobal_villagevivatelebit_t3000microcom_hdmsmicrocom_servernec_v34nec_v110nec_piafscisco_v110microcom_mimicmicanextportBranch(config)#line33Branch(config-line)#modemautoconfigurediscovery图13-1-2路由器自动发现调制解调器类型*Mar100:00:43.767:TTY104:detectionspeed(115200)response---OK---*Mar100:00:43.767:TTY104:Modemtypeismicrocom_mimic*Mar100:00:43.771:TTY104:Modemcommand:--AT&F—*Mar100:00:46.343:TTY104:Modemconfigurationsucceeded*Mar100:00:46.343:TTY104:Detectedmodemspeed9600*Mar100:00:46.343:TTY104:Donewithmodemconfigurationshowline图13-1-3路由器自动发现的调制解调器类型Center#showline97TtyTypTx/RxAModemRotyAccOAccIUsesNoiseOverrunsInt97TTY-inout---000/0-Line97,Location:,Type:Length:24lines,Width:80columnsStatus:NoExitBanner,ModemDetected,CTSRaisedCapabilities:ModemCallout,ModemRIisCD,Lineispermanentasyncinterface,ModemAutoconfigure,IntegratedModemModemstate:Idlemodem(slot/port):3/0,csm_state:IDLE_STATE,bchan_num:-1csm_status(0):CSM_STATUS_UNLOCKEDModemhardwarestate:CTSnoDSRDTRRTS,ModemConfigured…………Modemtypeismicrocom_mimic.…………2.设置接口速率Center(config-line)#speed1152003.设置流量控制方法Center(config-line)#flowcontrolhardware4.设置停止位位数Center(config-line)#stopbits15.设置允许的数据流向Center(config-line)#modeminout6.定义线路允许的协议Center(config-line)#transportinputall13.1.2接口网络层配置1.配置接口通信模式Branch(config)#interfaceserial0/1Branch(config-if)#physical-layerasync2.配置接口封装格式Branch(config-if)#encapsulationppp3.接口异步模式asyncmodededicated|interactive4.分配接口IP地址Branch(config-if)#ipaddress192.168.0.1255.255.255.0或Branch(config)#interfaceloopback0Branch(config-if)#ipaddress10.0.0.1255.255.255.0Branch(config-if)#interfaceserial1/1Branch(config-if)#ipunnumberedloopback05.分配客户端IP地址下面的命令为客户端指定了IP地址192.168.0.2Branch(config-if)#peerdefaultipaddress192.168.0.2下面的命令指定了由网络中的DHCP服务器为客户端分配IP地址。Branch(config-if)#peerdefaultipaddressdhcp下面的命令指定从本地IP地址池ip-pool中分配一个IP地址给客户端。Branch(config-if)#peerdefaultipaddresspoolip-pool建立一个名为rasclients的IP地址池Branch(config)#iplocalpoolrasclients192.168.1.1192.168.1.25413.2路由器异步远程维护13.2.1路由器端的准备工作图13-2-1利用异步串行接口对路由器进行远程维护13.2.2客户端的准备工作右击新建的连接,选择“属性”,弹出“拨号属性”对话框。单击以选择“安全措施选项卡。在此对话框中选中“显示终端窗口”单选按钮并单击确定按钮退出“拨号属性”对话框。13.3配置路由器作为远程访问服务器13.3.1路由器端的准备工作图13-3-1配置路由器作为远程访问服务器S1/0:unnumberedloopback0Loopback0:10.0.0.1RASUsernameabcpassword123Intloopback0Ipaddress10.0.0.1255.255.255.0interfaceSerial1/0physical-layerasyncipunnumberedLoopback0encapsulationpppasyncmodededicatedpeerdefaultipaddress10.0.0.2line33loginlocalModemautoconftypedefaultmodemInOuttransportinputallstopbits1speed115200flowcontrolhardware13.3.2客户端的准备工作13.4配置路由器间的异步拨号链路图13-4-1路由器间的异步拨号链路分支机构中心S1/0:192.168.0.2/24S1/0:192.168.0.1/24BRANCHCENTERTel:2083703Tel:208315013.4.1路由器配置图13-4-2路由器间的异步拨号链路配置13.4.2测试、诊断1.查看接口状态图13-4-3命令showinterfaceserial1/0的输出Branch#showinterfacesserial1/0Serial1/0isup(spoofing),lineprotocolisup(spoofing)HardwareisCD2430inasyncmodeInternetaddressis192.168.0.2/24MTU1500bytes,BW115Kbit,DLY100000usec,reliability255/255,txload1/255,rxload1/255EncapsulationPPP,loopbacknotsetKeepalivenotsetDTRispulsedfor5secondsonresetLCPClosedClosed:IPCPLastinput00:52:34,output00:52:34,outputhangneverLastclearingofshowinterfacecounters00:52:43Inputqueue:0/75/0/0(size/max/drops/flushes);Totaloutputdrops:0Queueingstrategy:weightedfair1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.2.查看线路状态图13-4-4命令showline的输出1.2.3.4.5.6.7.8.9.10.11.12.13.14.3.激发测试流量图13-4-5debugmodem的输出图13-4-6线路被激活的控制台消息00:27:44:CHAT33:Attemptingasynclinedialerscript00:27:44:CHAT33:processstarted00:27:44:CHAT33:AssertingDTR.....00:28:04:TTY33:notimertype1todestroy00:28:04:TTY33:notimertype0todestroy00:28:04:TTY33:notimertype2todestroy00:28:47:TTY0:timertype1expired00:28:47:TTY0:Exectimer(continued)00:28:06:%LINK-3-UPDOWN:InterfaceSerial1/0,changedstatetoup00:28:07:%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial1/0,changedstatetoup图13-4-7debugdialer的输出00:36:51:Se1/0DDR:Dialingcauseip(s=192.168.0.2,d=192.168.0.1)00:36:51:Se1/0DDR:Attemptingtodial1500:36:51:CHAT33:Attemptingasynclinedialerscript00:36:51:CHAT33:DialingusingModemscript:dialout&Systemscript:none00:36:51:CHAT33:processstarted00:36:51:CHAT33:AssertingDTR00:36:51:CHAT33:Chatscriptdialoutstarted.....00:37:11:CHAT33:Chatscriptdialoutfinished,status=Success!!!00:37:13:Se1/0DDR:Dialerstatechangetoup00:37:13:Se1/0DDR:Dialercallhasbeenplaced00:37:13:Se1/0DDR:dialerprotocolup00:37:13:Se1/0DDR:Callconnected,8packetsunqueued,8transmitted,0discarded4.showinterface图13-4-8命令showinterfaceserial1/0的输出10.Branch#showinterfacesserial1/0Serial1/0isup,lineprotocolisupHardwareisCD2430inasyncmodeInternetaddressis192.168.0.2/24MTU1500bytes,BW115Kbit,DLY100000usec,reliability255/255,txload1/255,rxload1/255EncapsulationPPP,loopbacknotsetKeepalivenotsetDTRispulsedfor5secondsonresetTimetointerfacedisconnect:idle00:00:181.2.3.4.5.6.7.8.9.5.showipinterface图13-4-9命令showipinterfaceserial1/0的输出7.Branch#showipinterfaces

1 / 42
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功