文本版|topic 高级搜索
   名人堂 帮助 论坛制度 意见反馈 | 首页 博客 周新贴 专题 求职 读书
RSS 底部
 
社区导航: 专家门诊   网络技术   操作系统   数据库   程序设计   系统应用   考试认证   CIO及信息化   站长交流   综合交流   下载基地  51CTO产品服务 设为首页 | 收藏本站
51CTO技术论坛» 网络管理 » 网络解决方案 » OSPF高级配置       [ 打印]  [ 订阅]  [ 收藏]  [ 推荐给朋友]   [ 本帖文本页]

论坛跳转:
     
标题: [原创] OSPF高级配置  ( 查看:201  回复:0 )   
  本主题由 零距离 于 2008-3-24 09:37 移动  
 
沙漠孤鹰
新新人类  点击可查看详细



帖子 31
精华 0
无忧币 14
积分 45
阅读权限 20
注册日期 2006-3-17
最后登录 2008-8-14 离线

[查看资料]  [发短消息]  [Blog
[个人主页]         
发表于:2008-3-24 01:33   标题:OSPF高级配置
上一帖 |
【实    验   一】


拓朴结构



知识点:NSSA  路由重分发 路由汇总

【任务:】

1.在R1上创建3个loop口,分别为172.16.0.1/16,3个口都运行RIP。
                              172.17.0/1/16
                                             172.18.0.1/16

2. 在R4上创建3个loop口,分别为10.1.0.1/16,3个口都运行RIP
                                            10.2.0.1/16
                                            10.3.0.1/16
      
3.把区域2配置成NSSA区域;
  
4. 在路由器R1上把RIP路由重分布到OSPF
   
5.在路由器R4上把RIP路由得分布到OSPF

7.在路由器R2上对重分布进来的外部路由172进行汇总
   
8.在路由器R3上对域间路由11,12,13进行汇总;


R1的配置:

基础配置
Router#config t
Router(config)# Hostname R1
R1(config)#int f0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)#int lo1
R1(config-if)#ip address 172.16.0.1 255.255.0.0
R1(config-if)#int lo2
R1(config-if)#ip address 172.17.0.1 255.255.0.0
R1(config-if)#int lo3
R1(config-if)#ip address 172.18.0.1 255.255.0.0

路由配置
R1(config)#router os 1
R1(config-router)#net 192.168.1.0.0.0 0.255 area 2

R1(config)#router rip
R1(config-router)#net 172.16.0.0

NSSA区域配置
R1(config-router)#area 2 nssa

把RIP重分发到OSPF配置
R1(config)#router os 1
R1(config-router)#redistrubute rip subnet


R2的配置:

基础配置:
Router#config t
Router(config)# Hostname R2
R2(config)#int f0/0
R2(config-if) ip address 192.168.1.2 255.255.255.0
R2(config)#int s0/0
R2(config-if) ip address 192.168.2.1 255.255.255.0

路由配置:
R2(config)#router os 1
R2(config-router)#net 192.168.1.0 0.0.0.255 area 2
R2(config-router)#net 192.168.2.0 0.0.0.255 area 0

NSSA区域配置
R2(config-router)#area 2 nssa

对外部172路由进行汇总
R2(config-router)#summary-address 172.0.0.0 255.0.0.0


R3的配置:

基础配置:
Router#config t
Router(config)# Hostname R3
R3(config)#int s0/0
R3(config-if)#ip add 192.168.2.2 255.255.255.0
R3(config)#int s0/1
R3(config-if)#ip add 192.168.3.1 255.255.255.0

路由配置:
R3(config)#router os 1
R3(config-router)#net 192.168.2.0 0.0.0.255 area 0
R3(config-router)#net 192.168.3.0 0.0.0.255 area 1

区间路由汇总:
R2(config-router)#area 1 range 10.0.0.0 255.0.0.0


R4的配置:

基础配置:
Router#config t
Router(config)# Hostname R4
R4(config)#int s0/0
R4(config-if)#ip add 192.168.3.2 255.255.255.0
R4(config)#int lo1
R4(config-if)#ip address 10.1.0.1 255.255.0.0
R4(config)#int lo2
R4(config-if)#ip address 10.2.0.1 255.255.0.0
R4(config)#int lo3
R4(config-if)#ip address 10.3.0.1 255.255.0.0

路由配置:
R4(config)#router os 1
R4(config-router)#net 192.168.3.0 0.0.0.255 area 1

R4(config)#router rip
R4(config-router)#net 10.0.0.0

路由重分布—rip 到OSPF
R4(config)#router os 1
R4(config-router)#redistrubute rip subnet


【验证:】

1.在区域2的R2上观察从RIP重发布进来的172路由,
      Show ip route
         显示了172的,N2路由,
      没显示从其他区域来的10 E2网络。
      
2.在R2路由器上sh ip route 可以看到一条NULL0路由,3条详细的172路由,在R3上只能看到一条172汇总路由;
      在R3路由器上看到一条汇总路由NULL1,3条说细的10路由,在R2上只能看到一条10的汇总路由。


3.在路由器R3上可以看到E2的10路由和E2的172路由。




【实    验   二】

拓朴结构



知识点:虚链链路

【任务:】1.在R2和R3上配置虚链路,把区域2挂到区域0上。

R2的配置:

基础配置
R2(config)#int lo0
R2(config-if)#ip address 2.2.2.2 255.255.255.255

R2(config)#router os 1
R2(config-router)#router-id 2.2.2.2

虚链路配置
R2(config-router)#area 1 virtual-link 3.3.3.3

R3的配置:
基础配置
R3(config)#int lo0
R3(config-if)#ip address 3.3.3.3 255.255.255.255

R3(config)#router os 1
R3(config)#router-id 3.3.3.3

虚链路配置
R3(config-router)#area 1 virtual-link 2.2.2.2

【验证:】

1.在R3上sho ip route可以看到多了区域2的路由,并且接口是VIRL-LINK

2.在R2,R3上sh ip ospf virtual-link



论坛活动:测测你对IT技术大会的了解指数(赠微软礼品、无忧币)
2008-3-24 01:331楼
[ 顶部 ]
     
论坛跳转:  

| | |

标记已读 · 删除论坛Cookies · 文本版 · WAP
 
| 诚征版主 | 版主堂 | 意见建议 | 大史记 | 论坛地图
Copyright©2005-2008 51CTO.COM  Powered by Discuz!
本论坛言论纯属发布者个人意见,不代表51CTO网站立场!如有疑义,请与管理员联系。
京ICP备05051492号