1:给R1 g0/0/1 Loopback 0 R2 g0/0/1 g0/0/0 Loopback R3 g0/0/0 配置 area1
2:给R3 g0/0/1 Loopback 0 R4 g0/0/1 配置area0
3: 给R4 g0/0/0 Loopback 0 R5 g0/0/0 Loopback 配置area2
4: 给R6 R1配rip
5: 给R1 R2 R3 R4 R5 配 OSPF
R1:syint g0/0/1ip add 11.0.0.1 255.255.255.0int g0/0/0ip add 16.0.0.1 255.255.255.0int LoopBack 0 配置还回口ip add 1.1.1.1 255.255.255.255qrouter id 1.1.1.1 配route idospf 1 进入ospf 1 (OSPF默认就是1可以直接输入OSPF)area 1 进入area 1network 1.1.1.1 0.0.0.255 说 1.1.1.1network 11.0.0.0 0.0.0.255 说 11.0.0.0q 退回q
R2:syint g0/0/1ip add 11.0.0.2 255.255.255.0int g0/0/0ip add 12.0.0.1 255.255.255.0qint LoopBack 0ip add 2.2.2.2 255.255.255.255qrouter id 2.2.2.2ospf 1area 1network 2.2.2.2 0.0.0.255network 0.0.0.0 255.255.255.255qq
R3:syint g0/0/0ip add 12.0.0.2 255.255.255.0int g0/0/1ip add 13.0.0.1 255.255.255.0int LoopBack 0ip add 3.3.3.3 255.255.255.255qrouter id 3.3.3.3ospf 1area 1network 12.0.0.0 0.0.0.255qarea 0network 3.3.3.3 0.0.0.255network 13.0.0.0 0.0.0.255qq
R4:syint g0/0/1ip add 13.0.0.2 255.255.255.0int g0/0/0ip add 14.0.0.1 255.255.255.0int LoopBack 0ip add 4.4.4.4 255.255.255.255qrouter id 4.4.4.4ospf 1area 0network 13.0.0.0 0.0.0.255qarea 2network 4.4.4.4 0.0.0.255network 14.0.0.0 0.0.0.255qq
R5:syint g0/0/0ip add 14.0.0.2 255.255.255.0int LoopBack 0ip add 5.5.5.5 255.255.255.255qrouter id 5.5.5.5ospf 1area 2network 5.5.5.5 0.0.0.255network 14.0.0.0 0.0.0.255qq
R1ripversion 2un summarynetwork 16.0.0.0import-route ospf cost 1ospf 1import-route rip cost 2
R6int g0/0/0ip add 16.0.0.2 255.255.255.0int LoopBack 0ip add 6.6.6.6 255.255.255.255qrouter id 6.6.6.6ripversion 2un summarynetwork 16.0.0.0network 6.0.0.0q
末梢区域过滤掉 4 5 7 类
R4 R5上设置 非纯末梢
[Huawei]ospf 10
[Huawei-ospf-10]area 2
[Huawei-ospf-10-area-0.0.0.2]stub
在R5查看
4类 5类没了 3类还在
上面即是给华为路由器eNSP 配置 rip OSPF 路由重发布的全部过程,这样就可以优化性能了,在此感谢本文的原创出处 “网络技术” 博客:http://funinghua.blog.51cto.com/9125449/1548455,谢谢阅读,希望能帮到大家,请继续关注脚本之家,我们会努力分享更多优秀的文章。