实验十一OSPF缺省路由
程序员文章站
2024-03-25 11:46:10
...
1、 全网划分为三个区域a012,R5为外网
2、 全网启动OSPF协议
3、 由于R5为外网所以在R4上做一条去往R5的缺省路由将缺省路由注入OSPF中查看R1,R2的数据库表,都有这条路由
AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 0.0.0.0 10.0.4.4 38 36 80000001 1
AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 0.0.0.0 10.0.4.4 180 36 80000001 1
4、 将区域2做为stub区域查看数据库表
Area: 0.0.0.2
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 10.0.2.2 10.0.2.2 4 48 80000005 1
Router 10.0.13.3 10.0.13.3 3 36 80000005 1
Network 10.0.23.3 10.0.13.3 5 32 80000002 0
Sum-Net 0.0.0.0 10.0.13.3 49 28 80000001 1
Sum-Net 10.0.34.0 10.0.13.3 49 28 80000001 1
Sum-Net 10.0.13.0 10.0.13.3 49 28 80000001 1
Sum-Net 192.168.1.1 10.0.13.3 49 28 80000001 1
区域2也有一条三类的缺省路由,进一步调为完全stub区域
[r2]dis ospf lsdb
OSPF Process 1 with Router ID 10.0.2.2
Link State Database
Area: 0.0.0.2
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 10.0.2.2 10.0.2.2 6 48 80000008 1
Router 10.0.13.3 10.0.13.3 6 36 80000006 1
Network 10.0.23.2 10.0.2.2 7 32 80000001 0
Sum-Net 0.0.0.0 10.0.13.3 135 28 80000001 1
5、 将区域1做为完全NSSA区域
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 10.0.13.3 10.0.13.3 6 36 80000014 1
Router 10.0.1.1 10.0.1.1 2 36 80000017 1
Network 10.0.13.1 10.0.1.1 2 32 80000002 0
Sum-Net 0.0.0.0 10.0.13.3 11 28 80000001 1
NSSA 0.0.0.0 10.0.13.3 8 36 80000005 1
上一篇: Java的编译、运行