In many routing protocols, OSPF has many advantages, such as its adaptability to all sizes of the network (up to thousands of routers), no self loop, support zoning, can route classification. Let's focus on the division of the region, and before we start, let's take a look at some basic knowledge about zoning:
1, our network can be seen as the composition of a number of autonomous systems, through the collection and transmission of autonomous system link state to dynamically find and propagate routes to achieve the information synchronization of autonomous systems.
2, each autonomous system can be divided into different areas, if a router port is assigned to more than one area, this router is called the area boundary router ABR, it refers to those who are in the region edge to connect multiple areas of the router.
3, through the ABR can learn the routing information of other regions, all ABR and the routers located between them are called backbone regions, and since all regions must be logically connected to backbone areas, the concept of virtual joins is particularly introduced, allowing for the logical connectivity of those areas that are physically partitioned.
4, the router connected to the autonomous system is called Autonomous system boundary router ASBR, through ASBR to learn the routing information outside the OSPF autonomous system (such as static routing, RIP, etc.)
5, a network segment can only belong to the same area
All right, we got it. Later, we carried out our experiments, the experiment by the Huawei three routers, two switches and a firewall to complete, as shown in the following figure, we used OSPF and rip two kinds of routing protocols, OSPF network divided into 3 areas, R1, SW1 and a loopback port on the firewall to facilitate our testing
Topology map
I. Configuration of Router R1
1, first with the IP address
2. Start OSPF and add ports to the zone
It should be noted here that the Huawei router and switch, firewall in the configuration of OSPF some of the differences, we need to start the OSPF
Second, take R1 as an example, configure IP addresses and OSPF for R2
1, after the match we try to ping the S0 port but found that the ping is not pass
It should be noted here that Huawei's equipment in the last port of a link (that is, the S0 on the R1) to be reset, the following to reset and ping again, found through the
2. Configure RIP protocol