ospf多区域 中配置nssa区域的结果
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
以下是华为路由器的结果:
1.基本配置:
lsdb:
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 1.1.1.1 1.1.1.1 1543 72 80000005 0 Router 2.2.2.2 2.2.2.2 1541 48 80000003 0 Sum-Net 192.168.23.0 2.2.2.2 1507 28 80000001 1562 Sum-Net 192.168.34.0 2.2.2.2 1339 28 80000001 3124 Sum-Asbr 4.4.4.4 2.2.2.2 998 28 80000001 3124
AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric External 192.168.34.1 4.4.4.4 908 36 80000001 1 External 192.168.34.0 4.4.4.4 908 36 80000001 1 External 192.168.45.0 4.4.4.4 908 36 80000001 1 External 192.168.45.2 4.4.4.4 908 36 80000001 1 External 50.50.50.50 4.4.4.4 1005 36 80000001 1
2.配置了stub区域
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 1.1.1.1 1.1.1.1 6 72 80000005 0 Router 2.2.2.2 2.2.2.2 15 48 80000002 0 Sum-Net 0.0.0.0 2.2.2.2 24 28 80000001 1 Sum-Net 192.168.23.0 2.2.2.2 19 28 80000001 1562 Sum-Net 192.168.34.0 2.2.2.2 19 28 80000001 3124
路由表
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 OSPF 10 1563 192.168.12.2 S0/2/0
10.10.10.10/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.5.0/24 Direct 0 0 192.168.5.125 Eth0/1/0
192.168.5.125/32 Direct 0 0 127.0.0.1 InLoop0
192.168.12.0/24 Direct 0 0 192.168.12.1 S0/2/0
192.168.12.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.12.2/32 Direct 0 0 192.168.12.2 S0/2/0
192.168.23.0/24 OSPF 10 3124 192.168.12.2 S0/2/0
192.168.34.0/24 OSPF 10 4686 192.168.12.2 S0/2/0
3.配置了stub no-summary
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 1.1.1.1 1.1.1.1 73 72 8000000A 0 Router 2.2.2.2 2.2.2.2 107 48 80000006 0 Sum-Net 0.0.0.0 2.2.2.2 135 28 80000001 1 路由表
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 OSPF 10 1563 192.168.12.2 S0/2/0
10.10.10.10/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.5.0/24 Direct 0 0 192.168.5.125 Eth0/1/0
192.168.5.125/32 Direct 0 0 127.0.0.1 InLoop0
192.168.12.0/24 Direct 0 0 192.168.12.1 S0/2/0
192.168.12.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.12.2/32 Direct 0 0 192.168.12.2 S0/2/0
4.配置了nssa区域
[r1-ospf-1-area-0.0.0.1]dis ospf lsdb
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 1.1.1.1 1.1.1.1 69 72 80000005 0 Router 2.2.2.2 2.2.2.2 91 48 80000002 0 Sum-Net 192.168.23.0 2.2.2.2 99 28 80000001 1562 Sum-Net 192.168.34.0 2.2.2.2 99 28 80000001 3124
路由表
estination/Mask Proto Pre Cost NextHop Interface
10.10.10.10/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.5.0/24 Direct 0 0 192.168.5.125 Eth0/1/0
192.168.5.125/32 Direct 0 0 127.0.0.1 InLoop0
192.168.12.0/24 Direct 0 0 192.168.12.1 S0/2/0
192.168.12.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.12.2/32 Direct 0 0 192.168.12.2 S0/2/0
192.168.23.0/24 OSPF 10 3124 192.168.12.2 S0/2/0
192.168.34.0/24 OSPF 10 4686 192.168.12.2 S0/2/0
*****************
[r1-ospf-1-area-0.0.0.1]nssa ?
default-route-advertise Originate Type 7 default into NSSA area
no-import-route No redistribution into this NSSA area
no-summary Do not send summary LSA into NSSA
如果带上default-route-advertise
Lsdb:
OSPF Process 1 with Router ID 1.1.1.1
Link State Database