版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实验九静态路由表建立一、实验性质本实验为设计型实验,实验学时为4学时。二、实验目的通过静态路由方式实现网络的连通性,通过实验掌握路由表的基本结构,掌握基本的路 由选路知识。三、预备知识路由的概念,路由表的结构,路由的基本原理。预备实验:路由器的基本配置。四、实验设备R2624(2 台)、V35 DTE 线缆(1 根)、V35 DCE 线缆(1 根)。五、实验内容1、背景描述假设校园网通过一台路由器连接到校园外的另一台路由器上,现要在路由器上做适当配 置,实现校园网内部主机与校园网外部主机的相互通信。2、实现功能设置静态路由表,实现校园网内部主机与校园网外部主机的相互通信。3、拓扑结构172.1
2、6.1.0/24六、实验步骤在路由器Routerl上配置接口的IP地址和串口上的时钟频率Routerl(config)# interface fastethernet 0!进入接口 F0 的配置模式Routerl(config-if)# ip address 172.16.1.1 255.255.255.0!配置路由器接口 F0 的 IP地址Router1(config)# no shutdown !开启路由器 fastethernet0 接口 !Router1(config)# interface serial 0 !进入接口 S0 配置模式Router1(config-if)# ip ad
3、dress 172.16.2.1 255.255.255.0!配置路由器接口 S0 的 IP地址Router1(config-if)#clock rate 64000!配置 Router1 的时钟频率(DCE)Router1(config)# no shutdown !开启路由器 fastethernet0 接口验证测试:验证路由器接口的配置Router1#show ip interface briefInterfaceIP-AddressOK? Method StatusProtocolFastEthernet0172.16.1.1Serial0172.16.2.1YES manual up
4、YES manual downupdownSerial1unassignedYES unset administratively down downRouter1#show interface serial 0Serial0 is down, line protocol is downHardware is HDLC4530AInternet address is 172.16.2.1/24MTU 1500 bytes, BW 2048 Kbit, DLY 20000 usec, rely 255/255, load 1/255Encapsulation HDLC, loopback not
5、set, keepalive set (10 sec)Last input never, output never, output hang neverLast clearing of show interface counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0Queueing strategy: weighted fairOutput queue: 0/64/0 (size/threshold/drops)Conversations 0/0 (active/max active)Reserve
6、d Conversations 0/0 (allocated/max allocated)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort0 packets output, 0 bytes, 0 underruns0 outpu
7、t errors, 0 collisions, 8 interface resets0 output buffer failures, 0 output buffers swapped out0 carrier transitionsDCD=down DSR=down DTR=down RTS=down CTS=down在路由器Routerl上配置静态路由Router1(config)#ip route 172.16.3.0 255.255.255.0 172.16.2.2或. .Router1(config)#ip route 172.16.3.0 255.255.255.0 serial
8、0验证测试:验证Router1上的静态路由配置Router1#show ip routeCodes: C - connected, S - static, R - RIPO - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2Gateway of last resort is not set172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, FastEthernet0C172.16.2.0 is
9、 directly connected, Serial0S172.16.3.0/24 1/0 via 172.16.2.2在路由器Router2上配置接口的IP地址和串口上的时钟频率Router2(config)# interface fastethernet 0!进入接口 F0 的配置模式!配置路由器接口 F0的IPRouter2(config-if)# ip address 172.16.3.2 255.255.255.0地址Router2(config)# no shutdown !开启路由器 fastethernet0 接口Router2(config)# interface seri
10、al 0 !进入接口 S0 配置模式Router2(config-if)# ip address 172.16.2.2 255.255.255.0!配置路由器接口 S0 的 IP地址Router2(config)# no shutdown ! 验证测试:验证路由器接口的配置 Router2#show ip interface brief Interface开启路由器fastethernet0接口IP-AddressOK? Method StatusProtocolFastEthernet0 172.16.3.2 YES manual upupSerial0172.16.2.2YES manua
11、l upupSerial1unassigned YES unset administratively down downRouter2#show interface serial 0Serial0 is up, line protocol is upHardware is HDLC4530AInternet address is 172.16.2.2/24MTU 1500 bytes, BW 2048 Kbit, DLY 20000 usec, rely 255/255, load 1/255Encapsulation HDLC, loopback not set, keepalive set
12、 (10 sec)Last input never, output never, output hang neverLast clearing of show interface counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0Queueing strategy: weighted fairOutput queue: 0/64/0 (size/threshold/drops)Conversations 0/0 (active/max active)Reserved Conversations 0/
13、0 (allocated/max allocated)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort0 packets output, 0 bytes, 0 underruns0 output errors, 0 collis
14、ions, 8 interface resets0 output buffer failures, 0 output buffers swapped out0 carrier transitionsDCD=up DSR=up DTR=up RTS=up CTS=up在路由器Router2上配置静态路由Router2(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.1或.:Router2(config)#ip route 172.16.1.0 255.255.255.0 serial 0验证测试:验证Router2上的静态路由配置Router
15、2#show ip routeCodes: C - connected, S - static, R - RIPO - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2Gateway of last resort is not set172.16.0.0/24 is subnetted, 1 subnetsC 172.16.3.0 is directly connected, FastEthernetOC172.16.2.0 is directly connected, SerialOS
16、172.16.1.0/24 1/0 via 172.16.2.1测试网络的互连互通性。C:ping 172.16.3.22!从 PC1 ping PC2Pinging 172.16.3.22 with 32 bytes of data:Reply from 172.16.3.22: bytes=32 time10ms TTL=126Reply from 172.16.3.22: bytes=32 time10ms TTL=126Reply from 172.16.3.22: bytes=32 time10ms TTL=126Reply from 172.16.3.22: bytes=32 ti
17、meping 172.16.1.11!从 PC2 ping PC1Pinging 172.16.1.11 with 32 bytes of data:Reply from 172.16.1.11: bytes=32 time10ms TTL=126Reply from 172.16.1.11: bytes=32 time10ms TTL=126Reply from 172.16.1.11: bytes=32 time10ms TTL=126Reply from 172.16.1.11: bytes=32 timeping 172.16.3.22 !从 PC1 ping PC2C:ping 17
18、2.16.1.11!从 PC2 ping PC1C:ping 172.16.1.11Pinging 172-16-1.11 with 32 byteReply from 172.16.1.11: bytes=32Reply from 172-16.1-11: bytes=32Reply from 172-16.1-11: bytes=32Reply from 172.16.1.11: bytes=32Ping statistics for 172.16-1-11:Packets: Sent = 4. Receiued = 4. Lost = 0 ping 172.16.3.22 !从 PC1
19、ping PC2显示网络连通【注意事项】当定义RIP版本后,路由器只接收该版本的路由信息;也可以在接口上定义只接收或发送某一 RIP版本或两个版本的路由信息;缺省情况下,路由器接收两个RIP版本的路由信息,但只发送版本1的路由信息;在三层交换机上配置RIP V2与在路由器上配置一样。【参考配置】Router1#show running-config !显示路由器 Router1 的全部配置Current configuration:version 6.14(2) !hostname Router1!enable secret 5 $1$ntvG$M9anDBfVvB7o33mc.TaZk0 !
20、ip subnet-zero !interface FastEthernet0ip address 172.16.1.1 255.255.255.0 !interface FastEthernet1no ip addressshutdown!interface FastEthernet2no ip addressshutdown!interface FastEthernet3no ip addressshutdown!interface Serial0ip address 172.16.2.1 255.255.255.0clock rate 64000!interface Serial1no ip addressshutdown!voice-port 0!voice-port 1!voice-port 2!v
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 河北省保定市新市区2027届数学四上期末教学质量检测试题含解析
- 2026西安飞天巡洋科技有限公司招聘笔试模拟试题及答案解析
- 2026年炼铁行业供需格局研究报告及未来五至十年自主创新与安全可控
- 2026年小麦种植行业趋势洞察报告及未来五至十年可持续发展与长期价值评估
- 2027年华能国际电力股份有限公司安徽风电分公司高校毕业生招聘笔试参考题库及答案解析
- 2026年物业管理行业投资价值分析报告及未来五至十年成本优化与效率提升
- 2026重庆科学城西永中学校食堂勤杂人员招聘1人笔试参考题库及答案解析
- 2026年池州市中医医院劳务派遣招聘(120驾驶员)笔试模拟试题及答案解析
- 2026浙江大学电气工程学院林振智教授团队招聘2人笔试备考试题及答案解析
- 2025-2026学年马路上的安全教案
- 炉膛内脚手架搭设安全措施培训课件
- 高中品德素养测试题目及答案
- 广东电网有限责任公司交通安全管理实施细则
- 2026届招商蛇口校园招聘启动笔试历年备考题库附带答案详解
- 2026新教材语文 10故宫博物院 教学课件
- 人力资源管理绩效考核方案案例
- TSG08-2026《特种设备使用管理规则》全面解读课件
- 新成立业委会的工作计划书
- 2026中国新造船监理行业现状规模及前景动态预测报告
- 湖北省黄冈市黄梅县部分学校2025-2026学年八年级上学期第一次月考物理试题(附答案)
- DG-TJ 08-19-2023 园林绿化养护标准
评论
0/150
提交评论