网络工程课程设计班级 _________学号 _________姓名 _________指导老师年月曰Ch1路由基本配置拓扑图编址表Fa0/0 192.168.1.33 255.255.255.224 不适用R1S0/0/0 192.168.1.65 255.255.255.224 不适用Fa0/0 192.168.1.97 255.255.255.224 不适用R2S0/0/0 192.168.1.94 255.255.255.224 不适用PC1 网卡192.168.1.62 255.255.255.224 192.168.1.33 PC2 网卡192.168.1.126 255.255.255.224 192.168.1.97配置命令Router>e nRouter#c onfig tEn ter con figurati on comma nds, one per line. End with CNTL/Z.Router(config)#hostname R1R1(c on fig)# no ip doma in-lR1(c on fig)#ba nner motd &En ter TEXT message. End with the character '&'.Hello &R1(c on fig)#e nable secret ciscoR1(c on fig)#li ne con sole 0R1(config-line)#password ciscoR1(c on fig-l in e)#log inR1(co nfig-li ne)#exitR1(co nfig)#li ne vty 0 4R1(config-line)#password ciscoR1(c on fig-l in e)#log inR1(co nfig-li ne)#exitR1(config)#interface faO/OR1(config-if)#ip address 192.168.1.33 255.255.255.224R1(c on fig-if)# no shutdow n%LINK-5-CHANGED: In terface FastEthernetO/O, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on In terface FastEthernet0/0, cha nged state to up R1(co nfig-if)#exitR1(config)#interface s0/0/0R1(config-if)#ip address 192.168.1.65 255.255.255.224R1(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/0, changed state to downR1(config-if)#no shutdownR1(config-if)#clock rate 64000R1(config-if)#exitR1(config)#Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R2R2(config)#no ip domain-lR2(config)#banner motd &Enter TEXT message. End with the character '&'.Hello&R2(config)#enable secret ciscoR2(config)#line console 0R2(config-line)#password ciscoR2(config-line)#loginR2(config-line)#exitR2(config)#line vty 0 4R2(config-line)#password ciscoR2(config-line)#loginR2(config-line)#exitR2(config)#inter fa0/0R2(config-if)#ip address 192.168.1.97 255.255.255.224R2(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)#exitR2(config)#interface s0/0/0R2(config-if)#ip address 192.168.1.95 255.255.255.224Bad mask /27 for address 192.168.1.95R2(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/0, changed state to downR2(config-if)#ip address 192.168.1.94 255.255.255.224R2(config-if)#no shutR2(config-if)#实验中遇到的问题1、在配置中遇到了一些比较生疏的口令,如配置禁用DNS 查找和配置当天消息标语,不知道是什么命令,但在老师的指导下也弄明白了2、在配置路由器 R1 的时候,注意要配置时钟频率为64000,因为它是 DCE ,还有 noshutdown 命令。
实验的结果配置成功,使用ping 命令进行测试,均可以ping 通Ch2静态路由设置地址表BRANCHFa0/0192.1682193 .192 不适用 S0/0/0 192.1682129 .192 不适用 HQFa0/0192.168.2.65 .192 不适用 S0/0/0 192.168.2.130 .192不适用 S0/0/1 209.165.201.2 255.255.255.252 不适用 ISPFa0/0209.165.200.225 255.255.255.224 不适用 S/0/0209.165.201.1 255.255.255.252不适用 PC1 网卡 192.168.2.254 .192 192.168.2.193 PC2 网卡 192.168.2.126 .192192.168.2.65 Web 服务器网卡209.165.200.253255.255.255.224209.165.200.225配置命令三个路由器的一些基本配置与实验一中的配置一样,额外增加了 a •将控制台和虚拟终端线路自动提供的消息和调试输出与所请求的输出以及提示相同步。
b •将执行超时配置为 15分钟。
这两项配置Bran ch(c on fig)#li ne con sole 0Bran ch(c on fig-li ne)#logg ing synchronousWeb ServerBran ch(c on fig-l in e)#li ne vty 0 4Bran ch(c on fig-li ne)#logg ing synchronous在ISP和HQ上的配置相同Bran ch(c on fig)#li ne con sole 0Branch (config-line)#exec-timeout 15Branch (con fig-li ne)#li ne vty 0 4Branch (config-line)#exec-timeout 15在ISP和HQ上配置相同配置静态和默认路由表Bran ch(co nfig)#ip route 0.0.0.0 0.0.0.0 s0/0/0 默认路由表HQ(co nfig)#ip route 0.0.0.0 0.0.0.0 209.165.201.1 默认路由表HQ(co nfig)#ip route 192.168.2.192 255.255.255.192 192.168.2.192 静态路由表ISP(config)#ip route 192.168.2.0 255.255.255.0 209.165.201.2 静态路由表遇到的问题1、配置Branch的路由表时需要一个默认路由表,将其转发到ISP处,再转发出去。
2、 HQ路由器需一个默认和一个静态路由表,何时用端口号或是端口Ip地址作为下一跳地址需要注意3、配置ISP的时候遇到点麻烦,按照前面的配置进行仍然有问题,自认为其目的地址为PC1主机所在的网络,但是还是不行。
在同学的帮助下,需要将路由进行汇总,得出最终的目的地址192.168.2.0,掩码为 255.255.255.0 再进行pi ng测试,显示成功Ch3静态路由故障排查拓扑图192.168 39 £4/26地址表BRANCHFa0/0172.20.1.129 255.255.255.128 不适用 S0/0/0 172.20.1.1 255.255.255.128 不适用 HQFa0/0172.20.0.129 255.255.255.128 不适用 S0/0/0 172.20.1.2 255.255.255.128 不适用 S0/0/1 192.168.38.254 255.255.255.252 不适用 ISPFA0/0192.168.39.65 255.255.255.192 不适用 S0/0/1192.168.38.253 255.255.255.252 不适用 PC1 网卡 172.20.1.135 255.255.255.128 172.20.1.129 PC2 网卡 172.20.0.135 255.255.255.128 172.20.0.129 Web 服务器网卡192.168.39.70255.255.255.192192.168.39.65存在问题的脚本(部分)Branch 路由器:in terface FastEthernetO/Oip address 172.20.1.129 255.255.255.128 duplex auto speed auto no shutdow nin terface Serial0/0/0ip address 172.20.1.1 255.255.255.128 clock rate 64000 no shutdow nip route 0.0.0.0 0.0.0.0 172.20.0.129 HQ 路由器:in terface FastEthernet0/0172.20.0J 23/25172204.12B/25Web Serverip address 172.20.0.129 255.255.255.128duplex autospeed autono shutdow nin terface Serial0/0/0ip address 172.20.1.2 255.255.255.128no shutdow nin terface Serial0/0/1ip address 192.168.38.254 255.255.255.252clock rate 64000no shutdow nip route 192.168.39.64 255.255.255.192 192.168.38.253ISP路由器:in terface FastEthernetO/Oip address 192.168.39.65 255.255.255.192in terface Serial0/0/1ip address 192.168.38.253 255.255.255.252no shutdow nip route 172.20.0.0 255.255.255.0 192.168.38.254问题排查:1、对于Branch路由器:其默认路由配置错误,下一跳地址应该为HQ的s0/0/0,而不是Fa0/0,首先先删除原来的路由,no ip route 0.0.0.0 0.0.0.0 172.20.0.129 再将正确的路由配置加进去 ip route 0.0.0.0 0.0.0.0 172.20.1.22、 HQ路由器:缺少默认路由ip route 0.0.0.0 0.0.0.0 s0/0/1 静态路由配置有问题,先删除,再重新加入新的路由ip route 172.20.1.128 255.255.255.128 s0/0/03、 ISP 路由器:对网络 172.20.0.128/25、172.20.1.0/25、172.20.1.128/25 进行路由汇总,得出172.20.0.0掩码为255.255.254.0,删除原来的路由添加 ISP(config)#ip route 172.20.0.0 255.255.254.0 192.168.38.254实验中遇到的问题在做完了静态路由配置的实验后,对其了解加深了很多,所以排查错误时没有遇到什么问题,比较顺利完成,ping测试也显示成功Ch4 RIP路由协议配置DCE /拓扑图地址表部分配置命令Branch路由器BRANCH(co nfig)#route ripBRANCH(co nfig-router)# net 192.168.1.0BRANCH(co nfig-router)# net 10.10.2.0BRANCH(co nfig-router)#passive-i nterface fa0/0 BRANCH(co nfig-router)#HQ路由器HQ(c on fig)#route ripHQ(co nfig-router)# net 192.168.1.0HQ(c on fig-router)#passive-i nterface fa0/0HQ(c on fig-router)#default-i nformatio n origi nate HQ(c on fig-router)#exitHQ(co nfig)#ip route 10.10.2.0 255.255.254.0 s0/0/0 HQ(config)#ip route 0.0.0.0 0.0.0.0 s0/0/1HQ(co nfig)#ISP路由器ISP(config)#ip route 10.10.2.0 255.255.254.0 s0/0/1 ISP(config)#ip route 192.168.1.0 255.255.255.0 s0/0/1结果:测试PC1pingPC3,显示成功Re^ue str OTit -Reply from 209.1€£.202-丄£惡二RmpJL# from 209.165.202 ・丄占总二Reply from £09・丄屯5.£口送■丄EE二byte£=32 tim-e =1G7JDCLS T T L = JL2£ byt e s=22 t-i».e = J.S7IELS T T L = 12!E byte5^32TTL^IEEPaciket Tracer P C Coinjiisjid Line 1 - 0PC>pinf Z09,165,ZOE,158Dingixi 寸2D?. 1S5,202. 1E& with 32 Lytas □ c I K a:Pin^r stafcistles Z091. Z02H1S8:P&ek&ts: = 4,鸟世亡皑i诣色dL 兰亠L&st = 1 (25% 丄css),Appr d wL^ate rornid trip 七工肚色兰in siilli-sacond^:Minimum = 172as H注藍,如血= le^nis^ k^erag'e = 182KLS其余也都可以ping通遇到的问题1、在使用route rip命令时候有点不熟悉,network更新通告其直连网络。