基于OSPF的网络拓扑结构1.doc_第1页
基于OSPF的网络拓扑结构1.doc_第2页
基于OSPF的网络拓扑结构1.doc_第3页
基于OSPF的网络拓扑结构1.doc_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

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

文档简介

基于OSPF的网络拓扑结构:序号IP网段子网掩码所属设备1192.168.10.0255.255.255.252RS2RS12192.168.10.4255.255.255.252RS1RS43192.168.10.8255.255.255.252RS3RS14192.168.10.12255.255.255.252RS1RS55192.168.1.0255.255.255.252RS1R26218.26.121.0255.255.255.252R2R17192.168.20.0255.255.255.0接入RS2网络8192.168.30.0255.255.255.0接入RS3网络9192.168.40.0255.255.255.0接入RS4网络10192.168.50.0255.255.255.0接入RS5网络PCIP地址子网掩码1192.168.20.1255.255.255.02192.168.20.2255.255.255.03192.168.30.1255.255.255.04192.168.30.2255.255.255.05192.168.40.1255.255.255.06192.168.40.2255.255.255.07192.168.50.1255.255.255.08192.168.50.2255.255.255.0配置OSPF:RS2上的配置:Switchenable Switch#configure terminalSwitch(config)#hostname RS2RS2(config)#interface fastEthernet 0/1RS2(config-if)#no switchportRS2(config-if)#ip address 192.168.10.1 255.255.255.252RS2(config-if)#no shutdownRS2(config-if)#interface fastEthernet 0/2RS2(config-if)#no switchport RS2(config-if)#ip address 192.168.20.1 255.255.255.128RS2(config-if)#no shutdownRS2(config-if)#interface fastEthernet 0/3RS2(config-if)#no switchport RS2(config-if)#ip address 192.168.20.129 255.255.255.128RS2(config-if)#no shutdownRS2(config-if)#exitRS2(config)#router ospf 110RS2(config-router)#router-id 2.2.2.2RS2(config-router)#network 192.168.10.0 0.0.0.3 area 0RS2(config-router)#network 192.168.20.0 0.0.0.127 area 0RS2(config-router)#network 192.168.20.128 0.0.0.127 area 0RS1上的配置:Switchenable Switch#configure terminalSwitch(config)#hostname RS1RS1(config)#interface fastEthernet 0/1RS1(config-if)#no switchport RS1(config-if)#ip address 192.168.10.2 255.255.255.252RS1(config-if)#no shutdownRS1(config-if)#interface fastEthernet 0/2RS1(config-if)#no switchport RS1(config-if)#ip address 192.168.10.10 255.255.255.252RS1(config-if)#no shutdownRS1(config-if)#interface fastEthernet 0/3RS1(config-if)#no switchport RS1(config-if)#ip address 192.168.10.6 255.255.255.252RS1(config-if)#no shutdownRS1(config-if)#interface fastEthernet 0/4RS1(config-if)#no switchport RS1(config-if)#ip address 192.168.10.14 255.255.255.252RS1(config-if)#no shutdownRS1(config-if)#interface fastEthernet 0/5RS1(config-if)#no switchport RS1(config-if)#ip address 192.168.1.2 255.255.255.252RS1(config-if)#no shutdownRS1(config-if)#exitRS1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1RS1(config)#router ospf 110RS1(config-router)#router-id 1.1.1.1RS1(config-router)#network 192.168.10.0 0.0.0.3 area 0RS1(config-router)#network 192.168.10.4 0.0.0.3 area 0RS1(config-router)#network 192.168.10.8 0.0.0.3 area 0RS1(config-router)#network 192.168.10.12 0.0.0.3 area 0RS1(config-router)#network 192.168.1.0 0.0.0.3 area 0RS1(config-router)#default-information originateRS3上的配置:Switchenable Switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname RS3RS3(config)#interface fastEthernet 0/1RS3(config-if)#no switchport RS3(config-if)#ip address 192.168.10.9 255.255.255.252RS3(config-if)#no shutdownRS3(config-if)#interface fastEthernet 0/2RS3(config-if)#no switchport RS3(config-if)#ip address 192.168.30.1 255.255.255.128RS3(config-if)#no shutdownRS3(config-if)#interface fastEthernet 0/3RS3(config-if)#no switchport RS3(config-if)#ip address 192.168.30.129 255.255.255.128RS3(config-if)#no shutdownRS3(config-if)#exitRS3(config)#router ospf 110RS3(config-router)#router-id 3.3.3.3RS3(config-router)#network 192.168.10.8 0.0.0.3 area 0RS3(config-router)#network 192.168.30.0 0.0.0.127 area 0RS3(config-router)#network 192.168.30.128 0.0.0.127 area 0RS4上的配置:Switchenable Switch#configure terminalSwitch(config)#hostname RS4RS4(config)#interface fastEthernet 0/1RS4(config-if)#no switchport RS4(config-if)#ip address 192.168.10.5 255.255.255.252RS4(config-if)#no shutdownRS4(config-if)#interface fastEthernet 0/2RS4(config-if)#no switchport RS4(config-if)#ip address 192.168.40.1 255.255.255.128RS4(config-if)#no shutdownRS4(config-if)#interface fastEthernet 0/3RS4(config-if)#no switchport RS4(config-if)#ip address 192.168.40.129 255.255.255.128RS4(config-if)#no shutdownRS4(config-if)#exitRS4(config)#router ospf 110RS4(config-router)#router-id 4.4.4.4RS4(config-router)#network 192.168.10.4 0.0.0.3 area 0RS4(config-router)#network 192.168.40.0 0.0.0.127 area 0RS4(config-router)#network 192.168.40.128 0.0.0.127 area 0RS5上的配置:Switchenable Switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname RS5RS5(config)#interface fastEthernet 0/1RS5(config-if)#no switchport RS5(config-if)#ip address 192.168.10.13 255.255.255.252RS5(config-if)#no shutdownRS5(config-if)#interface fastEthernet 0/2RS5(config-if)#no switchport RS5(config-if)#ip address 192.168.50.1 255.255.255.128RS5(config-if)#no shutdownRS5(config-if)#interface fastEthernet 0/3RS5(config-if)#no switchport RS5(config-if)#ip address 192.168.50.129 255.255.255.128RS5(config-if)#no shutdownRS5(config-if)#exitRS5(config)#router ospf 110RS5(config-router)#router-id 5.5.5.5RS5(config-router)#network 192.168.10.12 0.0.0.3 area 0RS5(config-router)#network 192.168.50.0 0.0.0.127 area 0RS5(config-router)#network 192.168.50.128 0.0.0.127 area 0使用PC机测试OSPF网络的连通性如下:PCping 218.26.121.2Pinging 218.26.121.2 with 32 bytes of data:Reply from 218.26.121.2: bytes=32 time=125ms TTL=253Reply from 218.26.121.2: bytes=32 time=125ms TTL=253Reply fr

温馨提示

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

评论

0/150

提交评论