您的位置:首页 > 其它

CCNP-12 OSPF试验8(BSCI)

2007-10-19 14:55 417 查看

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类型有哪些。

本文出自 “★Beckham~23” 博客,请务必保留此出处http://loveme23.blog.51cto.com/7891/46812
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: