网络工程课程设计报告Cisco路由交换文档格式.docx
- 文档编号:17285521
- 上传时间:2022-11-30
- 格式:DOCX
- 页数:28
- 大小:797.97KB
网络工程课程设计报告Cisco路由交换文档格式.docx
《网络工程课程设计报告Cisco路由交换文档格式.docx》由会员分享,可在线阅读,更多相关《网络工程课程设计报告Cisco路由交换文档格式.docx(28页珍藏版)》请在冰豆网上搜索。
Router>
en
Router#configt
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#hostnameR1
R1(config)#noipdomain-l
R1(config)#bannermotd&
EnterTEXTmessage.Endwiththecharacter'
&
'
.
Hello&
R1(config)#enablesecretcisco
R1(config)#lineconsole0
R1(config-line)#passwordcisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#linevty04
R1(config)#interfacefa0/0
R1(config-if)#ipaddress192.168.1.33255.255.255.224
R1(config-if)#noshutdown
%LINK-5-CHANGED:
InterfaceFastEthernet0/0,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet0/0,changedstatetoup
R1(config-if)#exit
R1(config)#interfaces0/0/0
R1(config-if)#ipaddress192.168.1.65255.255.255.224
InterfaceSerial0/0/0,changedstatetodown
R1(config-if)#clockrate64000
R1(config)#
Router#conft
Router(config)#hostnameR2
R2(config)#noipdomain-l
R2(config)#bannermotd&
R2(config)#enablesecretcisco
R2(config)#lineconsole0
R2(config-line)#passwordcisco
R2(config-line)#login
R2(config-line)#exit
R2(config)#linevty04
R2(config)#interfa0/0
R2(config-if)#ipaddress192.168.1.97255.255.255.224
R2(config-if)#noshutdown
R2(config-if)#exit
R2(config)#interfaces0/0/0
R2(config-if)#ipaddress192.168.1.95255.255.255.224
Badmask/27foraddress192.168.1.95
R2(config-if)#ipaddress192.168.1.94255.255.255.224
R2(config-if)#noshut
R2(config-if)#
实验中遇到的问题
1、在配置中遇到了一些比较生疏的口令,如配置禁用DNS查找和配置当天消息标语,不知道是什么命令,但在老师的指导下也弄明白了
2、在配置路由器R1的时候,注意要配置时钟频率为64000,因为它是DCE,还有noshutdown命令。
实验的结果
配置成功,使用ping命令进行测试,均可以ping通
Ch2静态路由设置
拓扑图
地址表
BRANCH
192.168.2.193
.192
192.168.2.129
HQ
192.168.2.65
192.168.2.130
S0/0/1
209.165.201.2
255.255.255.252
ISP
209.165.200.225
S/0/0
209.165.201.1
192.168.2.254
192.168.2.126
Web服务器
209.165.200.253
三个路由器的一些基本配置与实验一中的配置一样,额外增加了a.将控制台和虚拟终端线路自动提供的消息和调试输出与所请求的输出以及提示相同步。
b.将执行超时配置为15分钟。
这两项配置
Branch(config)#lineconsole0
Branch(config-line)#loggingsynchronous
Branch(config-line)#linevty04
在ISP和HQ上的配置相同
Branch(config-line)#exec-timeout15
Branch(config-line)#linevty04
在ISP和HQ上配置相同
配置静态和默认路由表
Branch(config)#iproute0.0.0.00.0.0.0s0/0/0默认路由表
HQ(config)#iproute0.0.0.00.0.0.0209.165.201.1默认路由表
HQ(config)#iproute192.168.2.192255.255.255.192192.168.2.192静态路由表
ISP(config)#iproute192.168.2.0255.255.255.0209.165.201.2静态路由表
遇到的问题
1、配置Branch的路由表时需要一个默认路由表,将其转发到ISP处,再转发出去。
2、HQ路由器需一个默认和一个静态路由表,何时用端口号或是端口Ip地址作为下一跳地址需要注意
3、配置ISP的时候遇到点麻烦,按照前面的配置进行仍然有问题,自认为其目的地址为PC1主机所在的网络,但是还是不行。
在同学的帮助下,需要将路由进行汇总,得出最终的目的地址192.168.2.0,掩码为255.255.255.0再进行ping测试,显示成功
Ch3静态路由故障排查
172.20.1.129
255.255.255.128
172.20.1.1
172.20.0.129
172.20.1.2
192.168.38.254
FA0/0
192.168.39.65
255.255.255.192
192.168.38.253
172.20.1.135
172.20.0.135
192.168.39.70
存在问题的脚本(部分)
Branch路由器:
interfaceFastEthernet0/0
ipaddress172.20.1.129255.255.255.128
duplexauto
speedauto
noshutdown
interfaceSerial0/0/0
ipaddress172.20.1.1255.255.255.128
clockrate64000
iproute0.0.0.00.0.0.0172.20.0.129
HQ路由器:
ipaddress172.20.0.129255.255.255.128
ipaddress172.20.1.2255.255.255.128
interfaceSerial0/0/1
ipaddress192.168.38.254255.255.255.252
iproute192.168.39.64255.255.255.192192.168.38.253
ISP路由器:
ipaddress192.168.39.65255.255.255.192
interfaceSerial0/0/1
ipaddress192.168.38.253255.255.255.252
iproute172.20.0.0255.255.255.0192.168.38.254
问题排查:
1、对于Branch路由器:
其默认路由配置错误,下一跳地址应该为HQ的s0/0/0,而不是Fa0/0,首先先删除原来的路由,noiproute0.0.0.00.0.0.0172.20.0.129再将正确的路由配置加进去iproute0.0.0.00.0.0.0172.20.1.2
2、HQ路由器:
缺少默认路由iproute0.0.0.00.0.0.0s0/0/1静态路由配置有问题,先删除,再重新加入新的路由iproute172.20.1.128255.255.255.128s0/0/0
3、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)#iproute172.20.0.0255.255.254.0192.168.38.254
在做完了静态路由配置的实验后,对其了解加深了很多,所以排查错误时没有遇到什么问题,比较顺利完成,ping测试也显示成功
Ch4RIP路由协议配置
10.10.2.1
254.0
128
192.168.1.129
192.168.1.1
209.165.200.226
252
209.165.202.129
224
10.10.3.254
192.168.1.254
PC3
209.165.202.158
部分配置命令
Branch路由器
BRANCH(config)#routerip
BRANCH(config-router)#net192.168.1.0
BRANCH(config-router)#net10.10.2.0
BRANCH(config-router)#passive-interfacefa0/0
BRANCH(config-router)#
HQ路由器
HQ(config)#routerip
HQ(config-router)#net192.168.1.0
HQ(config-router)#passive-interfacefa0/0
HQ(config-router)#default-informationoriginate
HQ(config-router)#exit
HQ(config)#iproute10.10.2.0255.255.254.0s0/0/0
HQ(config)#iproute0.0.0.00.0.0.0s0/0/1
HQ(config)#
ISP路由器
ISP(config)#iproute10.10.2.0255.255.254.0s0/0/1
ISP(config)#iproute192.168.1.0255.255.255.0s0/0/1
结果:
测试PC1pingPC3,显示成功
其余也都可以ping通
1、在使用routerip命令时候有点不熟悉,network更新通告其直连网络。
2、使用passive-interfacefastethernet0/0命令禁止从该接口发送RIPv1更新,在查阅了一些资料后明白了其原理。
3、在实验中哪些路由器需要使用例如passive-interfacefastethernet0/0、default-informationoriginate等这些命令,自己有时候还是比较疑惑,但是在同学的讲解下已经解决了这一问题
Ch5RIP故障排除
255.255.255.0
10.45.1.254
10.45.2.1
10.45.1.1
172.20.20.254
172.16.1.1
172.20.20.1
10.45.2.254
172.16.1.254
存在问题的部分原脚本
ipaddress192.168.1.1255.255.255.0
ipaddress10.45.1.254255.255.255.0
routerrip
passive-interfaceFastEthernet0/0
network10.0.0.0
ipaddress10.45.2.1255.255.255.0
ipaddress10.45.1.1255.255.255.0
ipaddress172.20.20.254255.255.255.0
passive-interfaceSerial0/0/0
network10.0.0.0
network172.0.0.0
iproute0.0.0.00.0.0.0Serial0/0/1
ipaddress172.16.1.1255.255.255.0
ipaddress172.20.20.1255.255.255.0
iproute10.45.0.0255.255.254.0Serial0/0/1
iproute192.168.1.0255.255.255.0Serial0/0/1
故障排查
1、Branch路由器:
interfacefa0/0端口的状态为关闭,应该打开noshutdown。
Routerip配置有问题,添加network10.45.1.0和network192.168.1.0。
还缺少一个默认路由iproute0.0.0.00.0.0.0s0/0/0
添加一个静态路由iproute192.168.1.0255.255.255.0s0/0/0。
因为Rip不回发送路由更新,所以禁止从s0/0/0出回发更新nopassive-interfaces0/0/0。
添加passive-interfacefa0/0。
汇总路由存在错误,应该是iproute192.168.0.0255.255.252.0s0/0/1
在排查Branch和ISP中的错误时没有遇到什么问题,HQ中遇到一个,就是Rip不从收到信息的端口回发更新消息,需要使用相关命令使其禁止从s0/0/0端口回发更新消息。
没进行此操作前,ping测试总是不成功,排查后ping测试全部成功。
测试结果:
PC1pingPC3结果:
Ch6RIPv2协议设置
192.168.40.129
Fa0/1
192.168.40.161
240
192.168.40.178
192.168.40.1
192
192.168.40.65
192.168.40.177
192.168.40.158
192.168.40.174
192.168.40.62
PC4
192.168.40.126
PC5
209.165.200.254
Branch配置(基本的接口地址配置省略,HQ与ISP省略了相同的部分)
version2
passive-interfaceFastEthernet0/1
network192.168.40.0
ipclassless
lineco
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 网络工程 课程设计 报告 Cisco 路由 交换