ospf各种区域间的lsa

来源:互联网 发布:mysql最大并发连接数 编辑:程序博客网 时间:2024/04/28 20:04
ospf各种区域间的lsa总结
没有特殊配置 

<Huawei>dis ospf routing 

     OSPF Process 1 with Router ID 1.1.1.1
          Routing Tables 

Routing for Network 
Destination        Cost  Type       NextHop         AdvRouter       Area
10.0.0.0/24        1     Transit    10.0.0.1        1.1.1.1         0.0.0.1
20.0.0.0/24        2     Inter-area 10.0.0.2        2.2.2.2         0.0.0.1
30.0.0.0/24        3     Inter-area 10.0.0.2        2.2.2.2         0.0.0.1

Total Nets: 3  
Intra Area: 1  Inter Area: 2  ASE: 0  NSSA: 0 

<Huawei>dis ospf ls

     OSPF Process 1 with Router ID 1.1.1.1
         Link State Database 

                 Area: 0.0.0.1
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    2.2.2.2         2.2.2.2            342  36    80000004       1
Router    1.1.1.1         1.1.1.1            340  36    80000005       1
Network   10.0.0.1        1.1.1.1            340  32    80000002       0
Sum-Net   20.0.0.0        2.2.2.2            334  28    80000001       1
Sum-Net   30.0.0.0        2.2.2.2            216  28    80000001       2

B
     OSPF Process 1 with Router ID 2.2.2.2
          Routing Tables 

Routing for Network 
Destination        Cost  Type       NextHop         AdvRouter       Area
10.0.0.0/24        1     Transit    10.0.0.2        2.2.2.2         0.0.0.1
20.0.0.0/24        1     Transit    20.0.0.1        2.2.2.2         0.0.0.0
30.0.0.0/24        2     Inter-area 20.0.0.2        3.3.3.3         0.0.0.0

Total Nets: 3  
Intra Area: 2  Inter Area: 1  ASE: 0  NSSA: 0 

<Huawei>dis ospf lsdb

     OSPF Process 1 with Router ID 2.2.2.2
         Link State Database 

                 Area: 0.0.0.0
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    2.2.2.2         2.2.2.2            302  36    80000005       1
Router    3.3.3.3         3.3.3.3            300  36    80000004       1
Network   20.0.0.1        2.2.2.2            302  32    80000002       0
Sum-Net   10.0.0.0        2.2.2.2            404  28    80000001       1
Sum-Net   30.0.0.0        3.3.3.3            287  28    80000001       1

                 Area: 0.0.0.1
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    2.2.2.2         2.2.2.2            413  36    80000004       1
Router    1.1.1.1         1.1.1.1            412  36    80000005       1
Network   10.0.0.1        1.1.1.1            412  32    80000002       0
Sum-Net   20.0.0.0        2.2.2.2            404  28    80000001       1
Sum-Net   30.0.0.0        2.2.2.2            286  28    80000001       2

C
OSPF Process 1 with Router ID 3.3.3.3
          Routing Tables 

Routing for Network 
Destination        Cost  Type       NextHop         AdvRouter       Area
20.0.0.0/24        1     Transit    20.0.0.2        3.3.3.3         0.0.0.0
30.0.0.0/24        1     Transit    30.0.0.1        3.3.3.3         0.0.0.2
10.0.0.0/24        2     Inter-area 20.0.0.1        2.2.2.2         0.0.0.0

Total Nets: 3  
Intra Area: 2  Inter Area: 1  ASE: 0  NSSA: 0 

<Huawei>DIs ospf ls

     OSPF Process 1 with Router ID 3.3.3.3
         Link State Database 

                 Area: 0.0.0.0
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    2.2.2.2         2.2.2.2            358  36    80000005       1
Router    3.3.3.3         3.3.3.3            354  36    80000004       1
Network   20.0.0.1        2.2.2.2            358  32    80000002       0
Sum-Net   10.0.0.0        2.2.2.2            460  28    80000001       1
Sum-Net   30.0.0.0        3.3.3.3            341  28    80000001       1

                 Area: 0.0.0.2
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    4.4.4.4         4.4.4.4            259  36    80000003       1
Router    3.3.3.3         3.3.3.3            254  36    80000005       1
Network   30.0.0.1        3.3.3.3            254  32    80000002       0
Sum-Net   20.0.0.0        3.3.3.3            341  28    80000001       1
Sum-Net   10.0.0.0        3.3.3.3            341  28    80000001       2






D


     OSPF Process 1 with Router ID 4.4.4.4
          Routing Tables 

Routing for Network 
Destination        Cost  Type       NextHop         AdvRouter       Area
30.0.0.0/24        1     Transit    30.0.0.2        4.4.4.4         0.0.0.2
10.0.0.0/24        3     Inter-area 30.0.0.1        3.3.3.3         0.0.0.2
20.0.0.0/24        2     Inter-area 30.0.0.1        3.3.3.3         0.0.0.2

Total Nets: 3  
Intra Area: 1  Inter Area: 2  ASE: 0  NSSA: 0 

<Huawei>dis ospf ls

     OSPF Process 1 with Router ID 4.4.4.4
         Link State Database 

                 Area: 0.0.0.2
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    4.4.4.4         4.4.4.4            284  36    80000003       1
Router    3.3.3.3         3.3.3.3            281  36    80000005       1
Network   30.0.0.1        3.3.3.3            281  32    80000002       0
Sum-Net   20.0.0.0        3.3.3.3            368  28    80000001       1
Sum-Net   10.0.0.0        3.3.3.3            368  28    80000001       2

总结:network 1.1.1.1 0.0.0.0 才能在每个区域看到1.1.1.1 路由,在区域1 是stub类型 在其他是inter-area类型。





2 存在特殊区域
没有特殊配置 

<Huawei>dis ospf routing 

     OSPF Process 1 with Router ID 1.1.1.1
          Routing Tables 

Routing for Network 
Destination        Cost  Type       NextHop         AdvRouter       Area
10.0.0.0/24        1     Transit    10.0.0.1        1.1.1.1         0.0.0.1
20.0.0.0/24        2     Inter-area 10.0.0.2        2.2.2.2         0.0.0.1
30.0.0.0/24        3     Inter-area 10.0.0.2        2.2.2.2         0.0.0.1

Total Nets: 3  
Intra Area: 1  Inter Area: 2  ASE: 0  NSSA: 0 

<Huawei>dis ospf ls

     OSPF Process 1 with Router ID 1.1.1.1
         Link State Database 

                 Area: 0.0.0.1
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    2.2.2.2         2.2.2.2            342  36    80000004       1
Router    1.1.1.1         1.1.1.1            340  36    80000005       1
Network   10.0.0.1        1.1.1.1            340  32    80000002       0
Sum-Net   20.0.0.0        2.2.2.2            334  28    80000001       1
Sum-Net   30.0.0.0        2.2.2.2            216  28    80000001       2

B
     OSPF Process 1 with Router ID 2.2.2.2
          Routing Tables 

Routing for Network 
Destination        Cost  Type       NextHop         AdvRouter       Area
10.0.0.0/24        1     Transit    10.0.0.2        2.2.2.2         0.0.0.1
20.0.0.0/24        1     Transit    20.0.0.1        2.2.2.2         0.0.0.0
30.0.0.0/24        2     Inter-area 20.0.0.2        3.3.3.3         0.0.0.0

Total Nets: 3  
Intra Area: 2  Inter Area: 1  ASE: 0  NSSA: 0 

<Huawei>dis ospf lsdb

     OSPF Process 1 with Router ID 2.2.2.2
         Link State Database 

                 Area: 0.0.0.0
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    2.2.2.2         2.2.2.2            302  36    80000005       1
Router    3.3.3.3         3.3.3.3            300  36    80000004       1
Network   20.0.0.1        2.2.2.2            302  32    80000002       0
Sum-Net   10.0.0.0        2.2.2.2            404  28    80000001       1
Sum-Net   30.0.0.0        3.3.3.3            287  28    80000001       1

                 Area: 0.0.0.1
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    2.2.2.2         2.2.2.2            413  36    80000004       1
Router    1.1.1.1         1.1.1.1            412  36    80000005       1
Network   10.0.0.1        1.1.1.1            412  32    80000002       0
Sum-Net   20.0.0.0        2.2.2.2            404  28    80000001       1
Sum-Net   30.0.0.0        2.2.2.2            286  28    80000001       2

C
OSPF Process 1 with Router ID 3.3.3.3
          Routing Tables 

Routing for Network 
Destination        Cost  Type       NextHop         AdvRouter       Area
20.0.0.0/24        1     Transit    20.0.0.2        3.3.3.3         0.0.0.0
30.0.0.0/24        1     Transit    30.0.0.1        3.3.3.3         0.0.0.2
10.0.0.0/24        2     Inter-area 20.0.0.1        2.2.2.2         0.0.0.0

Total Nets: 3  
Intra Area: 2  Inter Area: 1  ASE: 0  NSSA: 0 

<Huawei>DIs ospf ls

     OSPF Process 1 with Router ID 3.3.3.3
         Link State Database 

                 Area: 0.0.0.0
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    2.2.2.2         2.2.2.2            358  36    80000005       1
Router    3.3.3.3         3.3.3.3            354  36    80000004       1
Network   20.0.0.1        2.2.2.2            358  32    80000002       0
Sum-Net   10.0.0.0        2.2.2.2            460  28    80000001       1
Sum-Net   30.0.0.0        3.3.3.3            341  28    80000001       1

                 Area: 0.0.0.2
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    4.4.4.4         4.4.4.4            259  36    80000003       1
Router    3.3.3.3         3.3.3.3            254  36    80000005       1
Network   30.0.0.1        3.3.3.3            254  32    80000002       0
Sum-Net   20.0.0.0        3.3.3.3            341  28    80000001       1
Sum-Net   10.0.0.0        3.3.3.3            341  28    80000001       2






D


     OSPF Process 1 with Router ID 4.4.4.4
          Routing Tables 

Routing for Network 
Destination        Cost  Type       NextHop         AdvRouter       Area
30.0.0.0/24        1     Transit    30.0.0.2        4.4.4.4         0.0.0.2
10.0.0.0/24        3     Inter-area 30.0.0.1        3.3.3.3         0.0.0.2
20.0.0.0/24        2     Inter-area 30.0.0.1        3.3.3.3         0.0.0.2

Total Nets: 3  
Intra Area: 1  Inter Area: 2  ASE: 0  NSSA: 0 

<Huawei>dis ospf ls

     OSPF Process 1 with Router ID 4.4.4.4
         Link State Database 

                 Area: 0.0.0.2
Type      LinkState ID    AdvRouter          Age  Len   Sequence   Metric
Router    4.4.4.4         4.4.4.4            284  36    80000003       1
Router    3.3.3.3         3.3.3.3            281  36    80000005       1
Network   30.0.0.1        3.3.3.3            281  32    80000002       0
Sum-Net   20.0.0.0        3.3.3.3            368  28    80000001       1
Sum-Net   10.0.0.0        3.3.3.3            368  28    80000001       2

总结:network 1.1.1.1 0.0.0.0 才能在每个区域看到1.1.1.1 路由,在区域1 是stub类型 在其他是inter-area类型。





以上只是俩个简单的例子,附件里是配置跟总结

拓扑都是 1---------2-------3-------4 区域从左到右为area1 area0 area2
0 0
原创粉丝点击