互联神州单区域配置_第1页
互联神州单区域配置_第2页
免费预览已结束,剩余1页可下载查看

下载本文档

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

文档简介

1、单区域OSPF配置R1:!erface Loack0ip address 1.1.1.1 255.255.255.0!erfaerial1ip address 12.1.1.1 255.255.255.0clockrate 64000!router ospf 100router-id 1.1.1.1network 1.1.1.1 0.0.0.0 area 0network 12.1.1.0 0.0.0.255 area 0R2:!erface Loack0ip address 2.2.2.2 255.255.255.0erface Ethernet0ip address 23.1.1.2 25

2、5.255.255.0!erfaerial1ip address 12.1.1.2 255.255.255.0!router ospf 100router-id 2.2.2.2log-adjacency-changesnetwork 2.2.2.0 0.0.0.255 area 0network 12.1.1.0 0.0.0.255 area 0network 23.1.1.0 0.0.0.255 area 0R3:!erface Loack0ip address 3.3.3.3 255.255.255.0!erface Ethernet0ip address 23.1.1.3 255.255

3、.255.0!router ospf 100router-id 3.3.3.3log-adjacency-changes network 3.3.3.3 0.0.0.0 area 0network 23.1.1.0 0.0.0.255 area 0R1 的路由表R1#sh ip route1.0.0.0/24 ibnetted, 1 subnetsC1.1.1.0 is directly connected, Loack02.0.0.0/32 ibnetted, 1 subnetsO2.2.2.2 110/65 via 12.1.1.2, 00:03:11, Serial13.0.0.0/32

4、 ibnetted, 1 subnetsO3.3.3.3 110/75 via 12.1.1.2, 00:03:11, Serial123.0.0.0/24 ibnetted, 1 subnetsO23.1.1.0 110/74 via 12.1.1.2, 00:03:11, Serial112.0.0.0/24 ibnetted, 1 subnetsC12.1.1.0 is directly connected, Serial1R2 的路由表R2#sh ip route1.0.0.0/32 ibnetted, 1 subnetsO1.1.1.1 110/65 via 12.1.1.1, 00

5、:03:46, Serial12.0.0.0/24 ibnetted, 1 subnetsC2.2.2.0 is directly connected, Loack03.0.0.0/32 ibnetted, 1 subnetsO3.3.3.3 110/11 via 23.1.1.3, 00:03:46, Ethernet023.0.0.0/24 ibnetted, 1 subnetsC23.1.1.0 is directly connected, Ethernet012.0.0.0/24 ibnetted, 1 subnetsC12.1.1.0 is directly connected, S

6、erial1R3 的路由表R3#sh ip rou1.0.0.0/32 ibnetted, 1 subnetsO1.1.1.1 110/75 via 23.1.1.2, 00:04:43, Ethernet02.0.0.0/32 ibnetted, 1 subnetsO2.2.2.2 110/11 via 23.1.1.2, 00:04:43, Ethernet03.0.0.0/24 ibnetted, 1 subnetsC3.3.3.0 is directly connected, Loack023.0.0.0/24 ibnetted, 1 subnetsC23.1.1.0 is direc

7、tly connected, Ethernet012.0.0.0/24 ibnetted, 1 subnetsO12.1.1.0 110/74 via 23.1.1.2, 00:04:43, Ethernet0R2#sh ipf neighborNeighbor ID 3.3.3.31.1.1.1Pri 11SeDead Time 00:00:3100:00:32Address 23.1.1.312.1.1.1erface Ethernet0Serial1FULL/BDR FULL/-R2#sh ipf databaseOSPF Router with ID (2.2.2.2) (Pros I

8、D 100)Router Link Ses (Area 0)Link ID 1.1.1.12.2.2.23.3.3.3ADV Router 1.1.1.12.2.2.23.3.3.3Age 435435353Seq#Checksum Link count0 x80000003 0 x342C0 x80000005 0 x4020 x80000004 0 x9624342Net Link Ses (Area 0)Link ID 23.1.1.2ADV Router 2.2.2.2Age 458Seq#Checksum0 x80000001 0 xE61CR2#sh ipferfaceEthern

9、et0 is up, line protocol is up ernet Address 23.1.1.2/24, Area 0Pros ID 100, Router ID 2.2.2.2, Network Type BROADCAST, Cost: 10Transmit Delay is 1 sec, Se DR, Priority 1Designated Router (ID) 2.2.2.2, erface address 23.1.1.2Backup Designated router (ID) 3.3.3.3, erface address 23.1.1.3Timerervals c

10、onfigured, o due in 00:00:07o 10, Dead 40, Wait 40, Retransmit 5Index 2/2, flood queue length 0 Next 0 x0(0)/0 x0(0)Last flood scan length is 1,um is 2um is 4 msecLast flood scis 0 msec,Neighbor Count is 1, Adjacent neighbor count is 1Adjacent with neighbor 3.3.3.3(Backup Designated Router)Suppresso

11、 for 0 neighbor(s)Loack0 is up, line protocol is up ernet Address 2.2.2.2/24, Area 0Pro Los ID 100, Router ID 2.2.2.2, Network Type LOACK, Cost: 1ackerface is treated as a stub HostSerial1 is up, line protocol is upernet Address 12.1.1.2/24, Area 0Pros ID 100, Router ID 2.2.2.2, Network Type PO_TO_P

12、O Cost: 64Transmit Delay is 1 sec, Se PO_TO_PO,Timerervals configured,o 10, Dead 40, Wait 40, Retransmit 5o due in 00:00:01Index 3/3, flood queue length 0 Next 0 x0(0)/0 x0(0)Last flood scan length is 1,um is 2Last flood scis 0 msec,um is 0 msecNeighbor Count is 1, Adjacent neighbor count is 1 Adjac

13、ent with neighbor 1.1.1.1Suppresso for 0 neighbor(s)通告网段的时候要注意的事项:Net 0.0.0.0 0.0.0.0 a 0Net 1.1.1.1 0.0.0.0 a 0Net 1.1.1.0 0.0.0.255 a 0通告所有的网段到区域 0通告一个接口(工程用)到区域 0通告一个网段(用)到区域 0Net 1.1.1.0 255.255.255.0 a 0 与上面相同,可在工程中用(好处,不用计算,会自动换算)Net 0.0.0.0 255.255.255.255 a 0 通告所有的网段到区域 0查看 ospf 的运行情况:R2#sh

14、ip protocolsRouting Protocol is ospf 100Outgoing update filter list for all ing update filter list for allRouter ID 2.2.2.2erfa erfais not set is not setNumber of areasum path: 4his router is 1. 1 normal 0 stub 0 nssaRouting for Networks: 2.2.2.0 0.0.0.255 area 012.1.1.0 0.0.0.255 area 023.1.1.0 0.0

15、.0.255 area 0 Routing Information Sour:Gateway 3.3.3.31.1.1.12.2.2.2Distance 110110110Last Update 00:24:3400:24:3400:24:34Distance: (default is 110)R2#sh ip route ospf 只显示 ospf 相关的路由条目1.0.0.0/32 ibnetted, 1 subnetsO1.1.1.1 110/65 via 12.1.1.1, 00:27:14, Serial13.0.0.0/32 ibnetted, 1 subnetsO3.3.3.3

16、110/11 via 23.1.1.3, 00:27:14, Ethernet0R2#sh i neighbor detailNeighbor 3.3.3.3,erface address 23.1.1.3he area 0 viaerface Ethernet0Neighbor priority is 1, Se is FULL, 6 se changes DR is 23.1.1.2 BDR is 23.1.1.3Options is 0 x42Dead timer due in 00:00:32Neighup for 00:30:49Index 1/1, retransmisqueue length 0, number of retransmis10 x0(0)/0 x0(0) Next 0 x0(0)/0 x0(0)Last retransmisscan length is 1,um is 1um is 0 msecLast retransmisscis 0 msec,Neighbor 1.1.1.1,erface address 12.1.1.1 erfaerial1he area 0 viaNeighbor priority is 1, Se is FULL, 6 se chang

温馨提示

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

评论

0/150

提交评论