ospf重发布综合实验

 

1.如图连接,合理规划IP地址,所有路由器各自创建一个loopback接口

2.R1再创建三个接口IP地址为201.1.1.1/24、201.1.2.1/24、201.1.3.1/24

   R5再创建三个接口IP地址为202.1.1.1/24、202.1.2.1/24、202.1.3.1/24

   R7再创建三个接口IP地址为203.1.1.1/24、203.1.2.1/24、203.1.3.1/24

3.如图运行路由协议

  R1 -R2  -R3之间使用MGRE网络,为hub-spoke 网络结构,R1为hub端 ,

部署OSPF网络,MGRE修改为BMA网络类型

4.area  1  区域不得出现4.5类LSA (做nssa区域)

5.其他区域优先通过R3访问R1 三个环回接口

6.尽量减少路由条目数量 (汇总)

7.area 1 区域增加安全性  (认证)

8.全网可达

地址规划

环回接口:

R1:200.1.1.1  24 201.1.1.1/24、201.1.2.1/24、201.1.3.1/24

R2:200.1.2.2  24

R3:200.1.3.3  24

R4:200.1.4.4  24

R5:200.1.5.5  24 202.1.1.1/24、202.1.2.1/24、202.1.3.1/24

R6:200.1.6.6  24

R7:200.1.7.7  24 203.1.1.1/24、203.1.2.1/24、203.1.3.1/24

Tunnel口:

R1:100.1.1.1 24

R2:100.1.1.2 24

R3:100.1.1.3 24

物理接口地址:

Area0

R1:198.0.0.1 24

R2: 198.0.2.1 24

R3: 198.0.3.1 24

Isp198.0.0.2 24

     198.0.2.2 24

     198.0.3.2 24

Rrea1

R2: 198.24.1.1 24

R3: 198.34.1.1 24

R4:4/0/0: 198.24.1.2 24   

   4/0/1: 198.34.1.2 24

   0/0/0: 198.45.1.1 24 rip200

   0/0/1:198.46.1.1 24 area2

R5: 198.45.1.2 24   rip200

R6: 198.46.1.2 24   area2

     198.67.1.1 24   rip100

R7: 198.67.1.2 24   rip100

R1:

R2:

R3:

ISP:

R4:

R5:

R6:

R7:

R1 -R2-R3之间使用MGRE网络,为hub-spoke 网络结构,R1为hub端 ,部署OSPF网络,MGRE修改为BMA网络类型

R1R2R3配置缺省路由指向isp

R1:

R2:

 

R3:

 

area  1  区域不得出现4.5类LSA (做nssa区域)

运行ospf

Nssa

[r2-ospf-2-area-0.0.0.1]nssa

[r3-ospf-2-area-0.0.0.1]nssa

[r4-ospf-2-area-0.0.0.1]nssa

R2

R3

R4

Rip200

R4

R5

Area2

R4

R6

Rip100

R6

R7

 

重发布:初步实现全网可达

在R4上用rip下放缺省;写两条缺省分别指向R2和R3

在R6上下放rip缺省;向R4指条缺省

重发布如下图  

测试:R1pingR5/R7

 

其他区域优先通过R3访问R1 三个环回接口

 

现在去area0 走两条负载缺省,可以修改去R3缺省的的优先级,将优先级调大

 

尽量减少路由条目数量

做路由汇总:

R2:[R2-ospf-1-area-0.0.0.0]abr-summary 201.1.0.0 255.255.252.0 cost 100

R3:[R3-ospf-1-area-0.0.0.0]abr-summary 201.1.0.0 255.255.252.0 cost 50(干涉选路)

R4:[R4-ospf-1-area-0.0.0.1]abr-summary 201.1.0.0 255.255.252.0 

       [R4-ospf-1]asbr-summary  202.1.0.0 255.255.252.0  (5类汇总)

R6: [R6-ospf-3]asbr-summary  203.1.0.0 255.255.252.0 (5类汇总)

area 1 区域增加安全性

做R2 R3 R4上做区域认证

[R2-ospf-1-area -0.0.0.1]authentication-mode simple cipher cisco

[R3-ospf-1-area -0.0.0.1]authentication-mode simple cipher cisco

[R4-ospf-1-area -0.0.0.1]authentication-mode simple cipher cisco

 

其余方法:tunnel

1>解决不规则区域:也可以做tunnel分别在R2R3上与R4建立tunnel,在R4上形成去area0的负载均衡;

将R4tunnel口宣告到area0中,使R4成为一个合法的ABR,但要注意R2 R3 R4的环回要放到area1中以避免邻居翻滚现象

R2:                                                                            R4:

interface Tunnnel0/0/1                                                interface Tunnnel0/0/1     

  ip adderss 10.1.1.1   255.255.255.0                           ip adderss 10.1.1.2   255.255.255.0

  tunnel-protocol are                                                      tunnel-protocol are

  source 2.2.2.2                                                             source 4.4.4.4  

  destination 4.4.4.4                                                      destination 2.2.2.2

2>干涉选路:可以在R3做汇总时将R1环回的汇总路由减小cost值,在R2上加大cost值来进行干涉。

R2:[R2-ospf-1-area-0.0.0.0]abr-summary 201.1.0.0 255.255.252.0 cost 100

R3:[R3-ospf-1-area-0.0.0.0]abr-summary 201.1.0.0 255.255.252.0 cost 50(干涉选路)

R4:[R4-ospf-1-area-0.0.0.0]abr-summary 201.1.0.0 255.255.252.0 (通过area0学习到明细环回因此要在area中汇总)

 

 

 

 

02f,18aug03,agi added #include 02e,02jun03,agi removed #include "rwproto.h" 02d,02jun03,agi changed #include "rwos.h" to include "ospf_rwos.h" 02c,29may03,agi removed unused includes, added new includes 02c,08may03,asr Changes to make OSPF virtual stack compatible 02b,09may03,agi added #include , removed #include 02a,17feb02,ram SPR 81808 Added OSPF memory partition support 21,13october01,kc Dynamic configuration changes. 20,21september01,kc Removed unused raw socket specific declarations. 19,26september00,reshma Added WindRiver CopyRight 18,25september00,reshma RFC-1587 implementation for OSPF NSSA Option, also tested against ANVL. 17,20july00,reshma Unix compatibility related changes. 16,06july00,reshma Removed unnecessary header files and defines. 15,23february00,reshma Changes for ospf mib 14,23december99,reshma Compatibility with VxWorks-IP and VxWorks RTM-interface 13,13august99,jack compilation fixes no IP case 12,05august99,nishit Replaced including IP header files by the new ospf_ip_structures.h 11,17may99,jack Added new include file ospf_patricia_32_bits_key_prototypes.h 10,28december98,jack Compiled and added some comments 09,25november98,rajive Deleted socket include file 08,11november98,jack Config changes, linted and big endian changes 07,30october98,jack Incorporate changes for compilation on Vxworks 06,12february98,release engineer code style changes, feature enhancements, complete CISCO and BAY compaltibility. OSPF v4.2.0 05,10july97,cindy Pre-release v1.52b 04,10february97,cindy Release Version 1.52 03,22october97,cindy Release Version 1.50 02,05june96,cindy Including visnpstr.h as a kludge for the first beta release. 01,05june96,cindy First Beta Release
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值