Go directly to the topology map:
Notice:
The red lines in the figure all represent the wide area network. It is necessary to configure DCE with v.35 line, encapsulate PPP, and configure pap authentication.
configure ospf
home router
config>> int loop 0
config-if>> ip add 1.1.1.1 255.255.255.255 // 配置环回地址
config-if>> exit
config>> router ospf 1 // 进程号为1
config-router>> net 192.168.1.245 0.0.0.0 area 1 // 划分到区域1
config-router>> net 202.200.111.200 0.0.0.0 area 0 // 划分到区域0
school router
config>> int loop 0
config-if>> ip add 2.2.2.2 255.255.255.255 // 配置环回地址
config-if>> exit
config>> router ospf 1 // 进程号为1
config-router>> net 192.168.2.245 0.0.0.0 area 0 // 划分到区域0
config-router>> net 202.200.111.201 0.0.0.0 area 0 // 划分到区域0
config-router>> net 202.200.112.200 0.0.0.0 area 0 // 划分到区域0
company router
config>> int loop 0
config-if>> ip add 3.3.3.3 255.255.255.255 // 配置环回地址
config-if>> exit
config>> router ospf 1 // 进程号为1
config-router>> net 192.168.3.245 0.0.0.0 area 2 // 划分到区域2
config-router>> net 202.200.112.201 0.0.0.0 area 0 // 划分到区域0
Configuration verification
home# show ip ospf neighbor
school# show ip ospf neighbor
company# show ip ospf neighbor
View routing table
home# sh ip rou
school# sh ip rou
company# sh ip rou
Result verification
192.168.1.45 ping 192.168.3.45
The pkt file is on my github: https://github.com/YLD10/Route