1.查看R1的OSPF路由信息的COST值
<R1>display ip routing-table protocol ospf
Destination/Mask Proto Pre Cost Flags NextHop Interface
2.2.2.2/32 OSPF 10 1 D 12.1.1.2 GigabitEthernet0/0/0
3.3.3.3/32 OSPF 10 2 D 12.1.1.2 GigabitEthernet0/0/0
4.4.4.4/32 OSPF 10 3 D 12.1.1.2 GigabitEthernet0/0/0
23.0.0.0/8 OSPF 10 2 D 12.1.1.2 GigabitEthernet0/0/0
34.0.0.0/8 OSPF 10 3 D 12.1.1.2 GigabitEthernet0/0/0
2.修改R1的OSPF参考带宽,查看OSPF路由信息的COST值
[R1]ospf 1
[R1-ospf-1]bandwidth-reference 10000
[R1-ospf-1]display ip routing-table protocol ospf
Destination/Mask Proto Pre Cost Flags NextHop Interface
2.2.2.2/32 OSPF 10 10 D 12.1.1.2 GigabitEthernet0/0/0
3.3.3.3/32 OSPF 10 11 D 12.1.1.2 GigabitEthernet0/0/0
4.4.4.4/32 OSPF 10 12 D 12.1.1.2 GigabitEthernet0/0/0
23.0.0.0/8 OSPF 10 11 D 12.1.1.2 GigabitEthernet0/0/0
34.0.0.0/8 OSPF 10 12 D 12.1.1.2 GigabitEthernet0/0/0
3.查看OSPF的LSDB信息, Sum-Net是三类LAS,用于描述区域间路由
[R1-ospf-1]display 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 2.2.2.2 2.2.2.2 705 48 80000004 0
Router 1.1.1.1 1.1.1.1 119 48 80000008 10
Network 12.1.1.1 1.1.1.1 702 32 80000002 0
Sum-Net 23.0.0.0 2.2.2.2 723 28 80000001 1
Sum-Net 3.3.3.3 2.2.2.2 503 28 80000001 1
Sum-Net 34.0.0.0 2.2.2.2 495 28 80000001 2
Sum-Net 4.4.4.4 2.2.2.2 493 28 80000001 2
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容