当前位置:文档之家› 实验报告 3 思科 华为广域网协议配置实验

实验报告 3 思科 华为广域网协议配置实验

实验 3 广域网链路层协议配置实验实验目的掌握HDLC 、PPP 、FR 的配置实验设备Cisco 2621, Quidway 28系列路由器实验概述1. 实验环境R AR BPC A PC BS0/0S0/0f0/0f0/0路由器各个接口的IP 地址设置如下:R A R B F0/0 202.0.0.1/24 202.0.1.1/24 S0/0192.0.0.1/24192.0.0.2/24PC 机的IP 地址和缺省网关的IP 地址如下:PC A PC B IP 地址 202.0.0.2/24 202.0.1.2/24 Gateway202.0.0.1/24202.0.1.1/24为了保证配置不受影响,请在实验前清除路由器的所有配置有重新启动(Cisco的路由器删除startup-config 文件,Quidway的路由器删除saved-config文件)。

2.实验步骤1)配置路由器的接口IP地址和主机地址,修改路由器名称为RA和RB;2)在路由器的串口上配置HDLC协议,查看路由器的配置文件,并测试PCA和PCB之间的连通性;3)在路由器的串口上配置无验证的PPP协议,查看路由器的配置文件,并测试PCA 和PCB之间的连通性;4)在路由器的串口上配置PAP认证的PPP协议,查看路由器的配置文件,并测试PCA和PCB之间的连通性;5)在路由器的串口上配置CHAP认证的PPP协议,查看路由器的配置文件,并测试PCA和PCB之间的连通性;6)在路由器的串口上配置帧中继协议,查看路由器的配置文件,并测试PCA和PCB之间的连通性。

实验内容1.配置HDLC协议,测试PCA和PCB之间的连通性,填写表1。

在端口状态下命令:link-protocol hdlc (Quidway命令)encapsulation hdlc (Cisco命令)表1实验步骤观察内容显示路由器的串口状态Command: show interface s0/0 或:display interface s0/0 Serial0/0 is up, line protocol is down Hardware is PowerQUICC Serial Internet address is 192.0.0.1/24MTU 1500 bytes, BW 2000000 Kbit, DL Y 20000 usec,reliability 255/255, txload 1/255, rxload 1/255Encapsulation HDLC, loopback not set测试PC1/PC2连通状态Command: ping Pinging 202.0.1.2 with 32 bytes of data: Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 202.0.1.2: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),2.配置无验证的PPP协议,测试PCA和PCB之间的连通性,填写表2。

在端口状态下命令:link-protocol ppp(Quidway命令)encapsulation ppp (Cisco命令)表2实验步骤观察内容显示路由器的串口状态Command: show interface s0/0 或:display interface s0/0Serial0/0 is up, line protocol is up Hardware is PowerQUICC SerialInternet address is 192.0.0.1/24 MTU 1500 bytes, BW 2000000 Kbit, DL Y 20000 usec,reliability 255/255, txload 1/255,rxload 1/255 Encapsulation PPP, loopback not set测试PC1/PC2连通状态Command: ping Pinging 202.0.1.2 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 202.0.1.2:Packets: Sent = 4, Received = 0, Lost =4 (100% loss),3.配置采用PAP验证的PPP协议,PAP验证是单向验证,RA作为主验证方,RB作为被验证方,是明文验证,配置中要注意双方的密码必须一致且区分大小写。

配置完成后在串口上要shutdown接口后再no shutdown(Cisco命令)/ undo shutdown (Quidway命令)使之生效后才能检测是否配置正确。

验证方配置a)配置验证方式ppp authentication-mode papb)配置用户列表[RA]local-user user-B[RA]password simple sharepass[RA]service-type ppp被验证方配置c)配置PAP用户名ppp pap local-user username password {simple|cipher} password在Cisco路由器中用到的命令格式如下:Router(config)#hostname name要验证方的用户名和口令Router(config)#username name password passwordEnables PAP / CHAP 认证Router(config-if)#ppp authentication {chap | chap pap | pap chap | pap}测试PCA和PCB之间的连通性,填写表3。

表3实验步骤观察内容显示路由器的串口状态Command: show interface s0/0 或:display interface s0/0 Serial0/0 is up, line protocol is up Hardware is PowerQUICC SerialInternet address is 192.0.0.1/24 MTU 1500 bytes, BW 2000000 Kbit, DL Y 20000 usec,reliability 255/255, txload 1/255,rxload 1/255 Encapsulation PPP, loopback not set测试PC1/PC2连通状态Command: pingPinging 202.0.1.2 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 202.0.1.2:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),4.配置采用CHAP验证的PPP协议,CHAP验证是双向验证,是密文验证。

配置完成后在串口上要shutdown接口后再no shutdown(Cisco命令)/ undo shutdown (Quidway命令)使之生效后才能检测是否配置正确。

主验证方配置:a)配置本地验证对端(方式为CHAP)ppp authentication-mode chapb)配置本地名称ppp chap user RAc)将对端用户名和共享密码加入本地用户列表[RA]local-user RB[RA-luser-RB]password simple sharepass[RA-luser-RB]service-type ppp被验证方配置:a)本地名称/密码:[RB-Serial0/0] ppp chap user RBb)对端用户名和共享密码(和主验证方配置的密码要一样才能通信)[RB]local-user RA[RB-luser-RA]password simple sharepass[RB-luser-RA]service-type ppp测试PCA和PCB之间的连通性,填写表3。

表4实验步骤观察内容显示路由器的串口状态Command: show interface s0/0 或:display interface s0/0Serial0/0 is up, line protocol is upHardware is PowerQUICC SerialInternet address is 192.0.0.1/24 MTU 1500 bytes, BW 2000000 Kbit, DL Y20000 usec,reliability 255/255, txload 1/255, rxload1/255Encapsulation PPP, loopback not setKeepalive set (10 sec)LCP OpenOpen: IPCP, CDPCP测试PC1/PC2连通状态Command: pingype escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.0.0.2,timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-tripmin/avg/max = 1/2/4 ms5.在路由器的串口上配置帧中继协议,查看路由器的配置文件,并测试PCA和PCB 之间的连通性。

1) 封装接口interface serial 0/0ip address 202.38.163.251 255.255.255.0Quidway命令:link-protocol frCisco命令:encap fr2)配置帧中继接口的终端类型fr interface-type dce (一端配DCE,另一端配DTE)3)选择LMI类型fr lmi type {ansi|nonstandard|q933a}默认LMI协议类型为q933a。

4)在DCE上分配DLCIfr dlci 1005)启动inverse-arp逆向地址解析协议fr inarp(也可以用静态映射协议fr map ip 202.38.163.252 dlci 100)表5实验步骤观察内容显示路由器的串口状态Command: show interface s0/0 或:display interface s0/0Serial0/0 is up, line protocol is upHardware is PowerQUICC SerialInternet address is 192.0.0.2/24MTU 1500 bytes, BW 1544 Kbit, DL Y 20000usec,reliability 255/255, txload 1/255, rxload1/255Encapsulation FRAME-RELAY, loopback notsetKeepalive set (10 sec)LMI enq sent 44, LMI stat recvd 0, LMI updrecvd 0LMI enq recvd 88, LMI stat sent 20, LMI upd sent 0, DCE LMI upLMI DLCI 0 LMI type is CCITT framerelay DCEBroadcast queue 0/64, broadcasts sent/dropped 1/0, interface broadcasts 0Last input 00:00:07, output 00:00:07, outputhang neverLast clearing of "show interface" counters00:11:58Input queue: 0/75/0/0(size/max/drops/flushes); Total output drops: 0 Queueing strategy: weighted fairOutput queue: 0/1000/64/0 (size/maxtotal/threshold/drops)Conversations 0/5/256 (active/maxactive/max total)Reserved Conversations 0/0(allocated/max allocated)Available Bandwidth 1158 kilobits/sec5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec112 packets input, 2228 bytes, 0 no bufferRB#ping 202.0.0.2测试PC1/PC2连通状态Command: pingType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 202.0.0.2,timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-tripmin/avg/max = 180/183/184 ms。

相关主题