OSPF的特殊区域及其特点

示例图

一.实验目的

1.配置OSPF的特殊区域

二.OSPF的特殊区域

1.stub区域(末梢区域):处在AS的边缘,只有连接其他区域的ABR,没有ASBR,没
 有虚连接穿越的非骨干区域
2.totally stub(完全末梢区域):处在AS的边缘,只有连接其他区域的ABR,没有
 ASBR,没有虚连接穿越的非骨干区域
3.NSSA:可以位于非边缘区域,可以有多个ABR,可以有一个或多个ASBR
4.totally NSSA:可以位于非边缘区域,可以有多个ABR,可以有一个或多个ASBR

三.OSPF特殊区域的特点

1.stub区域,只能接收Type1 LSA和type2 LSA与Type3 LSA,不能接收Type4 
   LSA和Type5 LSA
2.3.totally stub区域,只接收Type1 LSA和Type2 LSA,不接收Type3/4/5 LAS
3.stub/totally stub区域内部路由与外部AS路由通信,由本区域的ABR,向本区
 域内的路由器泛洪一条指向自己的缺省路由
4.NSSA区域,接收Type1 LSA和Type2 LSA与Type3 LSA,不接收Type4/5 LSA
5.totally NSSA区域,接收Type1 LSA和Type2 LSA,不接收Type3/4/5 LSA
6.NSSA/totally NSSA区域可以,引入外部路由,并以Type7 LSA向本区域内
  泛洪,然后在ABR上,转换成Type5 LSA后,以自己的身份发布到区域外
7.NSSA/totall NSSA区域内部路由与外部AS路由通信,由本区域的ABR,向本
  区域内的路由器泛洪一条指向自己的缺省路由
8.NSSA:"not-so-stubby"  area的缩写

四.注意事项

1.在配置NSSA/stub区域时,区域内的每个路由器都要配置
2.在配置totall  NSSA/stub时,要在ABR上,配置NSSA/stub  no-summary

四.简单配置

ar1

sysname ar1
#
interface GigabitEthernet0/0/0
 ip address 192.168.1.2 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.2.1 255.255.255.0 
#
interface LoopBack0
 ip address 10.2.2.2 255.255.255.255 
#
ospf 1 router-id 10.2.2.2 
 area 0.0.0.0 
  network 10.2.2.2 0.0.0.0 
  network 192.168.1.2 0.0.0.0 
  network 192.168.2.1 0.0.0.0 
#
return

ar2

sysname ar2
#
interface GigabitEthernet0/0/0
 ip address 192.168.6.1 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.5.1 255.255.255.0 
#
interface GigabitEthernet0/0/2
 ip address 192.168.1.1 255.255.255.0 
#
interface LoopBack0
 ip address 10.1.1.1 255.255.255.255 
#
ospf 1 router-id 10.1.1.1 
 area 0.0.0.0 
  network 10.1.1.1 0.0.0.0 
  network 192.168.1.1 0.0.0.0 
 area 0.0.0.1 
  network 192.168.6.1 0.0.0.0 
  stub 
  //配置本区域为stub区域
 area 0.0.0.2 
  network 192.168.5.1 0.0.0.0 
  stub no-summary   
  //配置本区域为totall stub,ABR禁止向本区域内泛洪,Type3 LSA
  //只需要在ABR上配置
#
return

ar3

sysname ar3
#
interface GigabitEthernet0/0/0
 ip address 192.168.3.1 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 192.168.2.2 255.255.255.0 
#
interface GigabitEthernet0/0/2
 ip address 192.168.4.1 255.255.255.0 
#
interface LoopBack0
 ip address 10.3.3.3 255.255.255.255 
#
ospf 1 router-id 10.3.3.3 
 area 0.0.0.0 
  network 10.3.3.3 0.0.0.0 
  network 192.168.2.2 0.0.0.0 
 area 0.0.0.3 
  network 192.168.3.1 0.0.0.0 
  nssa no-summary  
  //配置本区域为 totall NSSA,ABR禁止向本区域内泛洪Type3 LSA
  //只需要在ABR上配置 
 area 0.0.0.4 
  network 192.168.4.1 0.0.0.0 
  nssa
  //配置本区域为NSSA区域
#
return

ar4

sysname ar4
#
interface GigabitEthernet0/0/0
 ip address 192.168.6.2 255.255.255.0 
#
interface LoopBack0
 ip address 10.6.6.6 255.255.255.255 
#
ospf 1 router-id 10.6.6.6 
 area 0.0.0.1 
  network 10.6.6.6 0.0.0.0 
  network 192.168.6.2 0.0.0.0 
  stub 
#
return

ar5

sysname ar5
#
interface GigabitEthernet0/0/0
 ip address 192.168.5.2 255.255.255.0 
#
interface LoopBack0
 ip address 10.7.7.7 255.255.255.255 
#
ospf 1 router-id 10.7.7.7 
 area 0.0.0.2 
  network 10.7.7.7 0.0.0.0 
  network 192.168.5.2 0.0.0.0 
  stub 
#
return

ar6

sysname ar6
#
interface GigabitEthernet0/0/0
 ip address 192.168.3.2 255.255.255.0 
#
interface LoopBack0
 ip address 10.4.4.4 255.255.255.255 
#
interface LoopBack1
 ip address 172.16.1.1 255.255.255.255 
#
interface LoopBack2
 ip address 172.16.2.1 255.255.255.255 
#
interface LoopBack3
 ip address 172.16.3.1 255.255.255.255 
#
ospf 1 router-id 10.4.4.4 
 import-route direct
 area 0.0.0.3 
  network 10.4.4.4 0.0.0.0 
  network 192.168.3.2 0.0.0.0 
  nssa 
#
return

ar7

sysname ar7
#
interface GigabitEthernet0/0/0
 ip address 192.168.4.2 255.255.255.0 
#
interface LoopBack0
 ip address 10.5.5.5 255.255.255.255 
#
ospf 1 router-id 10.5.5.5 
 area 0.0.0.4 
  network 10.5.5.5 0.0.0.0 
  network 192.168.4.2 0.0.0.0 
  nssa
#
return

你可能感兴趣的:(OSPF)