拓扑图:
说明:R1的s0/1:172.16.12.1/24 lo0:10.10.1.1/24
R2的s0/1:172.16.12.2/24 s0/2:172.16.23.2/24 lo0:10.10.2.2/24
R3的s0/2:172.16.23.3/24 s0/3:172.16.34.3/24 lo0:10.10.3.3/24
R4的s0/3:172.16.34.4/24 lo0:10.10.4.4/24
1.ip地址配置(略)
2.配置OSPF
R1:
router ospf 100
network 10.10.1.1 0.0.0.0 area 0
network 172.16.12.1 0.0.0.0 area 1
R2:
router ospf 100
network 10.10.2.2 0.0.0.0 area 1
network 172.16.12.2 0.0.0.0 area 1
network 172.16.23.2 0.0.0.0 area 2
R3:
router ospf 100
network 10.10.3.3 0.0.0.0 area 2
network 172.16.23.3 0.0.0.0 area 2
network 172.16.34.3 0.0.0.0 area 3
R4:
router ospf 100
network 10.10.4.4 0.0.0.0 area 3
network 172.16.34.4 0.0.0.0 area 3
3.查看OSPF邻接关系和路由表
R1:
R2:
R3:
R4:
4.配置虚电路
R1:
router ospf 100
area 1 virtual-link 10.10.2.2
R2:
router ospf 100
area 1 virtual-link 10.10.1.1
area 2 virtual-link 10.10.3.3
R3:
router ospf 100
area 2 virtual-link 10.10.2.2
5.查看邻接关系和路由表
R1:
R2:
R3:
R4:
6.简单验证路由
本文转自kindIT 51CTO博客,原文链接:http://blog.51cto.com/kindit/1037711,如需转载请自行联系原作者