Ospf discontiguous area network interworking
Ospf discontiguous area network interworking
Experimental topology diagram:
Configuration idea: continuous areas are connected to backbone areas and non-backbone areas at the same time, and discontinuous areas are areas that are not directly connected to backbone areas, such as region 3 below, which is directly connected to region 1.
4. Experimental configuration and steps:
# first configure all the terminals and the ip address of the router, then create different processes and areas, introduce external routes, and make the whole network interoperable
# configure IP address: AR1, ip address of AR2,AR3,AR5
# configure ip address on AR1
Itnerface g 0/0/0
Ip address 192.168.12.1 255.255.255.0
Interface g0/0/2
Ip address 192.168.14.1 255.255.255.0
# configure ip address on AR2
Interface g 0/0/0
Ip adderess 192.168.12.2 255.255.255.0
Interface g0/0/1
Ip address 192.168.13.1 255.255.255.0
Interface g0/0/2
Ip address 192.168.16.2 255.255.255.0
# configure ip address on AR3
Interface g 0/0/1
Ip address 192.168.13.2 255.255.255.0
Interface g0/0/2
Ip address 192.168.15.1 255.255.255.0
# configure ip address on AR5:
Interface g0/0/2
Ip address 192.168.15.2 255.255.255.0
Interface g0/0/1
Ip address 100.1.3.254 255.255.255.0
# next configure AR4,AR7,AR8
# configure AR4 with ip address
Interface g0/0/2
Ip address 192.168.14.2 255.255.255.0
Interface g0/0/0
Ip address 192.168.17.2 255.255.255.0
Interface ethernet 4-0-0
Ip address 100.1.1.254 255.255.255.0
Interface g0/0/1
Ip address 192.168.47.1 255.255.255.0
# configure AR8 with ip address
Interface g0/0/1
Ip address 192.168.47.2 255.255.255.0
Interface g0/0/0
Ip address 100.1.2.254
# configure AR7 with ip address
Interface g0/0/0
Ip address 192.168.17.1 255.255.255.0
Interface g0/0/2
Ip address 192.168.17.2 255.255.255.0
# configure the ip address of pc1 and the ip address of pc2
Ip address 100.1.1.1 255.255.255.0
Ip address of gateway 100.1.1.254 / / pc1
Ip address 100.1.2.1 255.255.255.0
Gateway 100.1.2.254 / / configure the ip address of pc2
# next, create different areas and create different processes to introduce external routes to enable interconnection of the entire network:
# create area 0Phone1 on AR1 and declare directly connected routes
# ospf 1
Area 0
Network 192.168.12.1 0.0.0.0
Area 1
Network 192.168.14.1 0.0.0.0
# create area 0 on AR2 and declare directly connected routes
# ospf 1
Area 0
Network 192.168.12.2 0.0.0.0
Network 192.168.13.1 0.0.0.0
Network 192.168.16.2 0.0.0.0
# create area 0Phone2 on AR3 and declare directly connected routes
Ospf 1
Area 0
Network 192.168.13.2 0.0.0.0
Area 2
Network 192.168.15.1 0.0.0.0
# create area 2 on AR5 and declare directly connected routes
Ospf1
Area 0
Network 192.168.15.2 0.0.0.0
Network 100.1.3.254 0.0.0.0
# configure ip addresses for AR4, AR7 and AR8 below
# create area 0P3 for AR4 and declare directly connected routes
# ospf 1
Area 0
Network 192.168.17.1 0.0.0.0
Area 1
Network 192.168.14.2 0.0.0.0
Ospf 2
Area 3
Network 192.168.47.1 0.0.0.0
Network 100.1.1.254 0.0.0.0
# create area 0 on AR7 and declare directly connected routes
Area 0
Network 192.168.16.1 0.0.0.0
Network 192.168.17.1 0.0.0.0
# create area 3 on AR8 and declare directly connected routes
Area 3
Network 192.168.47.2 0.0.0.0
Network 100.1.2.254 0.0.0.0
# the above configuration is complete:
# in order to interconnect the whole network, the routing of processes in different areas must be introduced
# configure routing for different processes on AR4
# ospf 1
Import-router ospf 2 / / Route introducing process 2
# ospf 2
Import-router ospf 1 / / Route introducing process 1
# Verification and testing: test on AR 8: diplay ip routing-table / / as shown in the following figure:
# as can be seen from the above figure, external routing has been introduced successfully
# continue testing with the ping command: ping 100.1.2.1 / ping 100.1.3.1
# the above experiments show that the test is successful:
# Summary: to interconnect discontiguous areas, either introduce an external route or re-draw a line to make it a border router, that is, abr
# abr is connected to the backbone area at the same time, and the normal area / / is the same as bridging