OSPF LSA 类型 ——连载三 网络汇总 LSA
 
 
1
OSPF的LSA类型 ——连载三网络汇总LSA_第1张图片
(基本配置见“ OSPF LSA 类型 ——连载一”)
 
3          网络汇总 LSA
 
           网络汇总 LSA 通告的是一个区域外部的网络(包括缺省路由),在区域间传递的 LSA ,且只能在单个区域中泛洪。一条 LSA 信息即是一条路由信息。
 
           LSA 传播范围:域间路由,能泛洪到整个 AS 中,始发路由器除外。
           LSA 通告路由器: ABR Router ID (经过一个 ABR ,就会改为这个 ABR Router ID
           LSA 链路状态 ID :网络号
           LSA 包含的内容:本区域中的路由信息,包括网络号和掩码
 
           show ip ospf database summary     查看一条网络汇总 LSA
 
R4# show ip ospf database summary
 
            OSPF Router with ID ( 4.4.4 .4) (Process ID 110)
 
                Summary Net Link States (Area 1)
 
  Routing Bit Set on this LSA
  LS age: 1126
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 12.1.1 .0 (summary Network Number)    // 传递进该区域的网络号作为链路状态 ID
  Advertising Router: 2.2.2 .2          // ABR Router ID
  LS Seq Number: 80000004
  Checksum: 0xF722
  Length: 28
  Network Mask: /24
        TOS: 0  Metric: 10        // Metric=10 ,通往 12.1.1 .0 网路走的是以太网络
 
  Routing Bit Set on this LSA
  LS age: 1126
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 13.1.1 .0 (summary Network Number)
  Advertising Router: 2.2.2 .2
  LS Seq Number: 80000004
  Checksum: 0x6D6B
  Length: 28
  Network Mask: /24
        TOS: 0  Metric: 74
 
  Routing Bit Set on this LSA
  LS age: 1128
  Options: (No TOS-capability, DC, Upward)
  LS Type: Summary Links(Network)
  Link State ID: 35.1.1.0 (summary Network Number)
  Advertising Router: 2.2.2 .2
  LS Seq Number: 80000002
  Checksum: 0xD4AF
  Length: 28
  Network Mask: /24
        TOS: 0  Metric: 138
======================================
R4# sh 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
 
     35.0.0.0/24 is subnetted, 1 subnets
O IA    35.1.1.0 [110/202] via 24.1.1.2, 01:02:28, Serial1/1
// O IA= OSPF inter area 24.1.1.2 说发往 35.1.1.0 的数据包全部转给我,因为我是 ABR
  3 LSA 学习区域间的路由,并将其泛洪到区域中的其他路由器。但不会在泛洪给始发给它的那台。
     24.0.0.0/24 is subnetted, 1 subnets
C       24.1.1.0 is directly connected, Serial1/1
     12.0.0 .0/24 is subnetted, 1 subnets
O IA    12.1.1 .0 [110/74] via 24.1.1.2, 01:02:34, Serial1/1
     13.0.0 .0/24 is subnetted, 1 subnets
O IA     13.1.1 .0 [110/138] via 24.1.1.2, 01:02:24, Serial1/1