路由器连接与静态路由配置_第1页
路由器连接与静态路由配置_第2页
路由器连接与静态路由配置_第3页
路由器连接与静态路由配置_第4页
路由器连接与静态路由配置_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、湖南理工学院实验报告学院:计算机学院 班级: 姓名: 学号: 一、实验目的 (1)掌握路由器之间及其与主机的连接方法。 (2)掌握路由器的基本配置命令; (3)熟练掌握静态路由的配置方法与应用。 二、工程背景在实际组网工程中,两台路由器Route A和Route B利用Internet 网将局域网LAN1和LAN2相连,如下图所示。现需要对路由器进行基本配置,并利用静态路由技术实现全网路由可达。LAN 1F0PC1RouteAS0InternetS0RouteBF0PC2LAN 2三、实验方案1、方案概述将路由器Route 1和Route 2利用V .35专用缆线通过各自的串口(广域网口)S0

2、相连接,PC1和PC2利用双绞线分别连接到各自路由器的局域网接口F0上,接口参数如拓扑结构图所示。2、实验拓扑结构图192.168.1.1/2PC1192.168.1.2/2F0Route1192.168.3.1/2SS192.168.3.2/2192.168.2.1/2F0Route2PC2192.168.2.2/23、配置命令步骤1在路由器Router1上配置接口的IP 地址和串口上的时钟频率。 Router1(config#int f0/0Router1(config-if-FastEthernet 0/0#no shutdownRouter1(config-if-FastEtherne

3、t 0/0#ip address 192.168.1.1 255.255.255.0 Router1(config-if-FastEthernet 0/0#exit Router1(config#int ser Router1(config#int serial 3/0Router1(config-if-Serial 3/0#no shutdownRouter1(config-if-Serial 3/0#ip address 192.168.3.1 255.255.255.0 Router1(config-if-Serial 3/0#clock rate 64000 Router1(confi

4、g-if-Serial 3/0#end查看接口的状态Router1#show ip interface briefInterface IP-Address(Pri IP-Address(Sec Statu s ProtocolSerial 3/0 192.168.3.1/24 no address up upSerial 4/0 no address no address down downFastEthernet 0/0 192.168.1.1/24 no address up upFastEthernet 0/1 no address no address down down Router

5、1#步骤2. 在路由器Router1上配置静态路由。 验证测试:验证Router1上的静态路由配置。 Router1(config#ip route 192.168.2.0 255.255.255.0 192.168.3.2Router1(config#end Router1#show ip routeCodes: C - connected, S - static, R - RIP, B - BGP O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 -

6、 OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default Gateway of last resort is no setS 192.168.2.0/24 1/0 via 192.168.3.2C 192.168.3.0/24 is directly connected, Serial 3/0 C 192.168.3.1/32 i

7、s local host.步骤3. 在路由器Router2上配置接口的IP 地址和串口上的时钟频率。 Ruijie>en Ruijie#config tEnter configuration commands, one per line. End with CNTL/Z. Ruijie(config#hostname Router2 Router2(config#int f0/0Router2(config-if-FastEthernet 0/0#no shutdownRouter2(config-if-FastEthernet 0/0#ip address 192.168.2.1 25

8、5.255.255.0 Router2(config-if-FastEthernet 0/0#exit Router2(config#int s 3/0Router2(config-if-Serial 3/0#no shutdown Router2(config-if-Serial 3/0#ip address 192.168.3.2 255.255.255.0Router2(config-if-Serial 3/0#clock rate 64000 验证测试:验证路由器接口的配置。 Router2#show ip interface briefInterface IP-Address(Pri

9、 IP-Address(Sec Statu s ProtocolSerial 3/0 192.168.3.2/24 no address up upSerial 4/0 no address no address down downFastEthernet 0/0 192.168.2.1/24 no address up upFastEthernet 0/1 no address no address down downRouter2#步骤4. 在路由器Router2上配置静态路由。 验证测试:验证Router2上的静态路由配置。Router2(config#ip route 192.168.

10、1.0 255.255.255.0 192.168.3.1 Router2(config#end Router2#show ip routeCodes: C - connected, S - static, R - RIP, B - BGP O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1

11、- IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default Gateway of last resort is no setS 192.168.1.0/24 1/0 via 192.168.3.1C 192.168.2.0/24 is directly connected, FastEthernet 0/0C 192.168.2.1/32 is local host.C 192.168.3.0/24 is directly connected, Serial 3/0 C 192.168.3.2/32 is local host.步骤5. 测试网络的互连互通性。 C:>ping 192.168.1.2从PC1 ping PC2 C:>ping 192.168.2.2从

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论