OSPF多区域概念及配置
1:区域与区域的间隔是路由器。
2:区域划分。
A:骨干区域(area 0)
B:非骨干区域(非area 0)
架构:所有非骨干区域必须与骨干区域相邻。如果不相邻必须采用虚链路技术实现通信。
一:网络规划(IP地址配置)
Router3
Interface f0/0
No shutdown
Ip address 34.1.1.3 255.255.255.0
Exit
Router4
Interface f0/0
No shutdown
Ip address 34.1.1.4 255.255.255.0
Exit
Interface f0/1
No shutdown
Ip address 45.1.1.4 255.255.255.0
Exit
Router5
Interface f0/0
No shutdown
Ip address 45.1.1.5 255.255.255.0
Exit
Interface f0/1
No shutdown
Ip address 56.1.1.5 255.255.255.0
Exit
Router6
Interface f0/0
No shutdown
Ip address 56.1.1.6 255.255.255.0
Exit
Interface f0/1
No shutdown
Ip address 69.1.1.6 255.255.255.0
Exit
Router9
Interface f0/0
No shutdown
Ip address 69.1.1.9 255.255.255.0
Exit
Interface f0/1
No shutdown
Ip address 91.1.1.9 255.255.255.0
Exit
Router10
Interface f0/0
No shutdown
Ip address 91.1.1.1 255.255.255.0
Exit
二:配置OSPF
Router 3
Router ospf 1
Network 34.1.1.0 0.0.0.255 area 0
Router4
Router ospf 1
Network 34.1.1.0 0.0.0.255 area 0
Network 45.1.1.0 0.0.0.255 area 1
Router 5
Router ospf 1
Network 56.1.1.0 0.0.0.255 area 1
Network 45.1.1.0 0.0.0.255 area 1
Router6
Router ospf 1
Network 56.1.1.0 0.0.0.255 area 1
Network 69.1.1.0 0.0.0.255 area 2
Router9
Router ospf 1
Network 91.1.1.0 0.0.0.255 area 2
Network 69.1.1.0 0.0.0.255 area 2
Router10
Router ospf 1
Network 91.1.1.0 0.0.0.255 area 2