实验拓扑: R3s0/6/1-------s0/6/1--R1--s0/6/0 ----------------s0/6/0---R2
R3与R1互联的接口在area 1 R1与R2互联的接口在area 0
实验目的: 在R3 上引入直连网段的几个loopback接口,将R3视为ASBR路由器,作ASBR路由聚合
在R3上发布几个网段的路由,在R1上作ABR聚合
具体的配置:
R1、
interface Serial0/6/0 link-protocol ppp ip address 192.168.1.1 255.255.255.0
interface Serial0/6/1 link-protocol ppp ip address 172.16.1.1 255.255.255.0
ospf 1 area 0.0.0.0 network 192.168.1.0 0.0.0.255 area 0.0.0.1 abr-summary 99.0.0.0 255.0.0.0 network 172.16.1.0 0.0.0.255 #
R2:
ospf 1 area 0.0.0.0 network 192.168.1.0 0.0.0.255
interface Serial0/6/0 link-protocol ppp ip address 192.168.1.2 255.255.255.0
R3、
interface Serial0/6/0 link-protocol ppp # interface Serial0/6/1 link-protocol ppp ip address 172.16.1.2 255.255.255.0 # interface Serial0/6/2 link-protocol ppp # interface Serial0/6/3 link-protocol ppp # interface NULL0 # interface LoopBack0 ip address 10.1.1.1 255.255.255.255 # interface LoopBack2 ip address 10.1.1.254 255.255.255.255 # interface LoopBack4 ip address 99.1.0.1 255.255.255.255 # interface LoopBack5 ip address 99.2.1.1 255.255.255.255 # interface LoopBack6 ip address 99.3.1.1 255.255.255.255 #
ospf 1 import-route direct asbr-summary 10.1.1.0 255.255.255.0 area 0.0.0.1 network 172.16.1.0 0.0.0.255 network 99.1.0.0 0.0.255.255 network 99.2.0.0 0.0.255.255 network 99.3.0.0 0.0.255.255 # load xml-configuration # user-interface con 0 user-interface vty 0 4 # return
总结: 一、ABR上作聚合只能是在一个区域,如这个实验R3---R1---R2
R3上network了几个99网段,由于R3所在的区域是area 1 ,所以R1上也要在同一个区域1作聚合
二、ASBR上聚合
如这个实验,在R3上引入10网段,如果要作聚合,则要在R3(是ASBR)上作聚合,且在OSPF视图下作聚合
|