TTEP.CN > 手机 >

OSPF多区域配置及路由汇总


拓扑说明:R1、R2在区域1内,R2、R3在区域0内,R3、R4在区域2内。R2、R3为ABR区域边界路由器。
实验目的:
1,怎样进行多区域下OSPF配置
2,如何区别不同区域下的路由
3,如何通过路由汇总来减少在OSPF中路由条目
www.ttep.cn
对于R1、R2、R3、R4在路由器中的配置请参考附件:
1,在R2上查看OSPF邻居表:

R2#show ip ospf ne

Neighbor ID Pri State Dead Time Address Interface
192.168.1.9 0 FULL/ - 00:00:33 192.168.1.6 Serial1/1
10.1.2.1 0 FULL/ - 00:00:32 192.168.1.1 Serial1/0
说明R1和R3已经建立了邻居关系
www.ttep.cn
2,在R2上查看路由表:
R2#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

172.16.0.0/32 is subnetted, 2 subnets
O IA 172.16.1.1 [110/129] via 192.168.1.6, 00:26:33, Serial1/1
O IA 172.16.2.1 [110/129] via 192.168.1.6, 00:26:33, Serial1/1
10.0.0.0/32 is subnetted, 2 subnets
O 10.1.2.1 [110/65] via 192.168.1.1, 00:26:43, Serial1/0
O 10.1.1.1 [110/65] via 192.168.1.1, 00:26:43, Serial1/0
192.168.1.0/30 is subnetted, 3 subnets
O IA 192.168.1.8 [110/128] via 192.168.1.6, 00:26:33, Serial1/1
C 192.168.1.0 is directly connected, Serial1/0
C 192.168.1.4 is directly connected, Serial1/1

O IA表示其它区域的路由;O表示区域内路由;C表示与路由器直连网段
[110/128]110表示OSPF管理距离,128表示COST值
对于路由选路时不同路由协议优选管理距离小的,同种路由协议优选COST值小的。
3.查看R3上的链路状态数据库:
www.ttep.cn
R2#show ip ospf database

OSPF Router with ID (192.168.1.5) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count
192.168.1.5 192.168.1.5 270 0x80000002 0x003342 2
192.168.1.9 192.168.1.9 413 0x80000003 0x00D698 2

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum
10.1.1.1 192.168.1.5 270 0x80000002 0x003F3F
10.1.2.1 192.168.1.5 270 0x80000002 0x003449
172.16.1.1 192.168.1.9 659 0x80000002 0x003098
172.16.2.1 192.168.1.9 659 0x80000002 0x0025A2
192.168.1.0 192.168.1.5 270 0x80000002 0x000A1B
192.168.1.8 192.168.1.9 659 0x80000002 0x00A177

Router Link States (Area 1)

Link ID ADV Router Age Seq# Checksum Link count
10.1.2.1 10.1.2.1 372 0x80000008 0x005CA5 4
192.168.1.5 192.168.1.5 270 0x80000005 0x0027B7 2

Summary Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum
172.16.1.1 192.168.1.5 271 0x80000002 0x00CAC1
172.16.2.1 192.168.1.5 271 0x80000002 0x00BFCB
192.168.1.4 192.168.1.5 271 0x80000002 0x00E13F
192.168.1.8 192.168.1.5 271 0x80000002 0x003CA0

Router link States 类型1的LSA,Summary Net Link States 类型3的LSA

附件:http://up.2cto---/2013/0202/20130202022529830.rar



最近发表
赞助商链接