1.查看R1的OSPF路由信息
[R1]display ip routing-table protocol ospf
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 O_ASE 50 1 D 12.1.1.2 GigabitEthernet0/0/0
2.2.2.2/32 OSPF 20 10 D 12.1.1.2 GigabitEthernet0/0/0
3.1.0.0/22 OSPF 20 11 D 12.1.1.2 GigabitEthernet0/0/0
3.3.3.3/32 OSPF 20 11 D 12.1.1.2 GigabitEthernet0/0/0
4.4.4.4/32 OSPF 20 12 D 12.1.1.2 GigabitEthernet0/0/0
23.0.0.0/8 OSPF 20 11 D 12.1.1.2 GigabitEthernet0/0/0
34.0.0.0/8 OSPF 20 12 D 12.1.1.2 GigabitEthernet0/0/0
44.1.0.0/22 O_ASE 50 2 D 12.1.1.2 GigabitEthernet0/0/0
2.R1与R2之间配置stub,减少外部路由接收
[R1]ospf 1
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]stub
[R2]ospf 1
[R2-ospf-1]area 1
[R2-ospf-1-area-0.0.0.1]stub
3.查看R1的stub区域后的OSPF路由信息
[R1]display ip routing-table protocol ospf
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 OSPF 20 11 D 12.1.1.2 GigabitEthernet0/0/0
2.2.2.2/32 OSPF 20 10 D 12.1.1.2 GigabitEthernet0/0/0
3.1.0.0/22 OSPF 20 11 D 12.1.1.2 GigabitEthernet0/0/0
3.3.3.3/32 OSPF 20 11 D 12.1.1.2 GigabitEthernet0/0/0
4.4.4.4/32 OSPF 20 12 D 12.1.1.2 GigabitEthernet0/0/0
23.0.0.0/8 OSPF 20 11 D 12.1.1.2 GigabitEthernet0/0/0
34.0.0.0/8 OSPF 20 12 D 12.1.1.2 GigabitEthernet0/0/0
4.在ABR(R2)上配置完全末节区域,R1查看OSPF路由信息
[R2-ospf-1-area-0.0.0.1]stub no-summary
[R1]display ip routing-table protocol ospf
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 OSPF 20 11 D 12.1.1.2 GigabitEthernet0/0/0
2.2.2.2/32 OSPF 20 10 D 12.1.1.2 GigabitEthernet0/0/0
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容