基于OSPF的网络拓扑结构

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

基于OSPF的网络拓扑结构:序号IP网段子网掩码所属设备1192.168.10.0255.255.255.252RS2~RS12192.168.10.4255.255.255.252RS1~RS43192.168.10.8255.255.255.252RS3~RS14192.168.10.12255.255.255.252RS1~RS55192.168.1.0255.255.255.252RS1~R26218.26.121.0255.255.255.252R2~R17192.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上的配置:SwitchenableSwitch#configureterminalSwitch(config)#hostnameRS2RS2(config)#interfacefastEthernet0/1RS2(config-if)#noswitchportRS2(config-if)#ipaddress192.168.10.1255.255.255.252RS2(config-if)#noshutdownRS2(config-if)#interfacefastEthernet0/2RS2(config-if)#noswitchportRS2(config-if)#ipaddress192.168.20.1255.255.255.128RS2(config-if)#noshutdownRS2(config-if)#interfacefastEthernet0/3RS2(config-if)#noswitchportRS2(config-if)#ipaddress192.168.20.129255.255.255.128RS2(config-if)#noshutdownRS2(config-if)#exitRS2(config)#routerospf110RS2(config-router)#router-id2.2.2.2RS2(config-router)#network192.168.10.00.0.0.3area0RS2(config-router)#network192.168.20.00.0.0.127area0RS2(config-router)#network192.168.20.1280.0.0.127area0RS1上的配置:SwitchenableSwitch#configureterminalSwitch(config)#hostnameRS1RS1(config)#interfacefastEthernet0/1RS1(config-if)#noswitchportRS1(config-if)#ipaddress192.168.10.2255.255.255.252RS1(config-if)#noshutdownRS1(config-if)#interfacefastEthernet0/2RS1(config-if)#noswitchportRS1(config-if)#ipaddress192.168.10.10255.255.255.252RS1(config-if)#noshutdownRS1(config-if)#interfacefastEthernet0/3RS1(config-if)#noswitchportRS1(config-if)#ipaddress192.168.10.6255.255.255.252RS1(config-if)#noshutdownRS1(config-if)#interfacefastEthernet0/4RS1(config-if)#noswitchportRS1(config-if)#ipaddress192.168.10.14255.255.255.252RS1(config-if)#noshutdownRS1(config-if)#interfacefastEthernet0/5RS1(config-if)#noswitchportRS1(config-if)#ipaddress192.168.1.2255.255.255.252RS1(config-if)#noshutdownRS1(config-if)#exitRS1(config)#iproute0.0.0.00.0.0.0192.168.1.1RS1(config)#routerospf110RS1(config-router)#router-id1.1.1.1RS1(config-router)#network192.168.10.00.0.0.3area0RS1(config-router)#network192.168.10.40.0.0.3area0RS1(config-router)#network192.168.10.80.0.0.3area0RS1(config-router)#network192.168.10.120.0.0.3area0RS1(config-router)#network192.168.1.00.0.0.3area0RS1(config-router)#default-informationoriginateRS3上的配置:SwitchenableSwitch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#hostnameRS3RS3(config)#interfacefastEthernet0/1RS3(config-if)#noswitchportRS3(config-if)#ipaddress192.168.10.9255.255.255.252RS3(config-if)#noshutdownRS3(config-if)#interfacefastEthernet0/2RS3(config-if)#noswitchportRS3(config-if)#ipaddress192.168.30.1255.255.255.128RS3(config-if)#noshutdownRS3(config-if)#interfacefastEthernet0/3RS3(config-if)#noswitchportRS3(config-if)#ipaddress192.168.30.129255.255.255.128RS3(config-if)#noshutdownRS3(config-if)#exitRS3(config)#routerospf110RS3(config-router)#router-id3.3.3.3RS3(config-router)#network192.168.10.80.0.0.3area0RS3(config-router)#network192.168.30.00.0.0.127area0RS3(config-router)#network192.168.30.1280.0.0.127area0RS4上的配置:SwitchenableSwitch#configureterminalSwitch(config)#hostnameRS4RS4(config)#interfacefastEthernet0/1RS4(config-if)#noswitchportRS4(config-if)#ipaddress192.168.10.5255.255.255.252RS4(config-if)#noshutdownRS4(config-if)#interfacefastEthernet0/2RS4(config-if)#noswitchportRS4(config-if)#ipaddress192.168.40.1255.255.255.128RS4(config-if)#noshutdownRS4(config-if)#interfacefastEthernet0/3RS4(config-if)#noswitchportRS4(config-if)#ipaddress192.168.40.129255.255.255.128RS4(config-if)#noshutdownRS4(config-if)#exitRS4(config)#routerospf110RS4(config-router)#router-id4.4.4.4RS4(config-router)#network192.168.10.40.0.0.3area0RS4(config-router)#network192.168.40.00.0.0.127area0RS4(config-router)#network192.168.40.1280.0.0.127area0RS5上的配置:SwitchenableSwitch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#hostnameRS5RS5(config)#interfacefastEthernet0/1RS5(config-if)#noswitchportRS5(config-if)#ipaddress192.168.10.13255.255.255.252RS5(config-if)#noshutdownRS5(config-if)#interfacefastEthernet0/2RS5(config-if)#noswitchportRS5(config-if)#ipaddress192.168.50.1255.255.255.128RS5(config-if)#noshutdownRS5(config-if)#interfacefastEthernet0/3RS5(config-if)#noswitchportRS5(config-if)#ipaddress192.168.50.129255.255.255.128RS5(config-if)#noshutdownRS5(config-if)#exitRS5(config)#routerospf110RS5(config-router)#router-id5.5.5.5RS5(config-router)#network192.168.10.120.0.0.3area0RS5(config-router)#network192.168.50.00.0.0.127area0RS5(config-router)#network192.168.50.1280.0.0.127area0使用PC机测试OSPF网络的连通性如下:PCping218.26.121.2Pinging218.26.121.2with32bytesofdata:Replyfrom218.26.121.2:bytes=32time=125msTTL=253Replyfrom218.26.121.2:bytes=32time=125msTTL=253Replyfro

1 / 5
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功