CCNP-12 OSPF试验8(BSCI)

CCNP-12 OSPF试验8

实验拓扑:

试验要求:试验要求: R1 R2 R3 R4 按照拓扑上连好, R1 R2 R4 OSPF R3 RIPv2 ,首先把 AREA 1 设置为普通区域,并且配置 R1 重分布 RIPv2 路由到 OSPF ,观察 R4 上的 LSDB 的类型,然后再把 AREA 1 配置成为完全 STUB 区域,观察 R4 LSDB 有什么变化。
试验目的:掌握 OSPF  完全 STUB 的配置方法,并且能够分析 LSDB 的变化。

实验配置:
R1
R1(config)#int s1/0
R1(config-if)#ip add 199.99.1.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no shu
R1(config-if)#exit
R1(config)#int s1/1
R1(config-if)#ip add 199.99.2.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no shu
R1(config-if)#exit
R1(config)#int loop0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#ip ospf network point-to-point
R1(config-if)#exit
R1(config)#router ospf 100
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 199.99.1.0 0.0.0.255 area 0
R1(config-router)#redistribute rip subnets
R1(config-router)#exit
R1(config)#router rip   
R1(config-router)#version 2
R1(config-router)#network 199.99.2.0
R1(config-router)#exit
 
R2
R2(config)#int s1/0
R2(config-if)#ip add 199.99.1.2 255.255.255.0
R2(config-if)#no shu
R2(config-if)#exit
R2(config)#int s1/1
R2(config-if)#ip add 199.99.3.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shu
R2(config-if)#exit
R2(config)#int loop0
R2(config-if)#ip add 2.2.2.2 255.255.255.0
R2(config-if)#ip ospf network point-to-point
R2(config-if)#exit
R2(config)#router ospf 100
R2(config-router)#router-id 2.2.2.2
R2(config-router)#network 199.99.1.0 0.0.0.255 area 0
R2(config-router)#network 199.99.3.0 0.0.0.255 area 1
R2(config-router)#end
 
R3
R3(config)#int s1/0
R3(config-if)#ip add 199.99.2.2 255.255.255.0
R3(config-if)#no shu
R3(config-if)#exit
R3(config)#int loop0
R3(config-if)#ip add 3.3.3.3 255.255.255.0
R3(config-if)#exit
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 199.99.2.0
R3(config-router)#network 3.3.3.0
R3(config-router)#end
 
R4
R4(config)#int s1/0
R4(config-if)#ip add 199.99.3.2 255.255.255.0
R4(config-if)#no shu
R4(config-if)#exit
R4(config)#int loop0
R4(config-if)#ip add 4.4.4.4 255.255.255.0
R4(config-if)#ip ospf network point-to-point
R4(config-if)#exit
R4(config)#router ospf 100
R4(config-router)#router-id 4.4.4.4
R4(config-router)#network 199.99.3.0 0.0.0.255 area 1
R4(config-router)#end
 
OK ,以上配置为基本配置,下面在 R4 show ip route 查看一下路由表:
R4#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
O E2 3.0.0.0/8 [110/20] via 199.99.3.1, 00:00:00, Serial1/0
     4.0.0.0/24 is subnetted, 1 subnets
C       4.4.4.0 is directly connected, Loopback0
C    199.99.3.0/24 is directly connected, Serial1/0
O E2 199.99.2.0/24 [110/20] via 199.99.3.1, 00:00:00, Serial1/0
O IA 199.99.1.0/24 [110/128] via 199.99.3.1, 00:00:00, Serial1/0
发现有两条 O E2 自治系统外路由和一条 O IA 区域间路由。在看一下 LSDB
R4#show ip ospf database
 
            OSPF Router with ID (4.4.4.4) (Process ID 100)
 
                Router Link States (Area 1)
 
Link ID         ADV Router      Age         Seq#       Checksum Link count
2.2.2 .2         2.2.2.2         17          0x80000002 0x0081A3 2
4.4.4 .4         4.4.4.4         16          0x80000002 0x00AF6D 2
 
                Summary Net Link States (Area 1)
 
Link ID         ADV Router      Age         Seq#       Checksum
199.99.1.0      2.2.2.2         26          0x80000001 0x00F6D1
 
                Summary ASB Link States (Area 1)
 
Link ID         ADV Router      Age         Seq#       Checksum
1.1.1 .1         2.2.2.2         12          0x80000001 0x00935C
 
                Type-5 AS External Link States
 
Link ID         ADV Router      Age         Seq#       Checksum Tag
3.0.0 .0         1.1.1.1         9           0x80000001 0x00A2F6 0
199.99.2.0      1.1.1.1         15          0x80000001 0x00E589 0
发现有 LSA TYPE-1 and 3 and 4 and 5 ,下面先回忆一下上次试验,如果把 AREA 1 配置成为 STUB 区域的话,那么路由表里会出现什么变化? -- 路由表里会看不到 O E2 的路由了,他被一条 O* IA 默认路由所取代, LSDB 里面同样看不到 LSA TYPE-4 and 5 的路由,在 TYPE-3 下面会多出一个默认路由,好了,这是配置了 STUB 区域后看到的变化,现在我们把 AREA 1 配置成为 TOTAL STUB (完全 STUB ),看看路由表和 LSDB 会出现什么变化,下面是配置方法:
R2(config)#router ospf 100
R2(config-router)#area 1 stub no-summary
R2(config-router)#end
 
R4(config)#router ospf 100
R4(config-router)#area 1 stub
STUB 的配置方法相似, STUB 区域内的每台 OSPF 路由器必须配置 area xx stub ,然后在 ABR 上配置 area xx stub no-summary ,这样 AREA XX 就成为了一个完全 STUB 区域了。下面先在 R4 clear ip ospf p ,然后 show ip route 观察有什么变化?
R4#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is 199.99.3.1 to network 0.0.0.0
 
     4.0.0.0/24 is subnetted, 1 subnets
C       4.4.4.0 is directly connected, Loopback0
C    199.99.3.0/24 is directly connected, Serial1/0
O*IA 0.0.0.0/0 [110/65] via 199.99.3.1, 00:00:03, Serial1/0
发现不仅 O E2 路由看不到了,就连 O IA 也没有了,取而代之的是一条默认路由 O*IA ,下一跳地址是 ABR 的接口地址,这样的话路由表大大减小了。再看看 show ip ospf database
R4#show ip ospf database
 
            OSPF Router with ID (4.4.4.4) (Process ID 100)
 
                Router Link States (Area 1)
 
Link ID         ADV Router      Age         Seq#       Checksum Link count
2.2.2 .2         2.2.2.2         24          0x80000004 0x009B89 2
4.4.4 .4         4.4.4.4         4           0x80000001 0x00CF50 2
 
                Summary Net Link States (Area 1)
 
Link ID         ADV Router      Age         Seq#       Checksum
0.0.0 .0         2.2.2.2         29          0x80000001 0x0075C0
 
神奇吧?现在就剩下 LSA TYPE-1 and 3 了,发现 TYPE-3 变成了一条 0.0.0 .0 的默认路由 LSA 。这使 LSDB 变得比 STUB 区域的 LSDB 还小,这样的话大大减小了 CPU 的消耗。

实验总结:掌握 OSPF TOTAL STUB 的配置方法,并且能够清楚地知道和理解 TOTAL STUB 中的 LSA 类型有哪些。

















本文转自loveme2351CTO博客,原文链接: http://blog.51cto.com/loveme23/46812  ,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值