Static routing IP configuration

Static routing IP configuration
Insert picture description here

According to the above requirements, configure the static route of the above router

1: Divide the appropriate network domain
(1) Summarized routing: Because each router is the boundary of a network domain, it is necessary to allocate them reasonably to achieve IP aggregation, and try to divide the network domain connected by a router into a network Segments are summarized into a total route, which will reduce the number of routing tables.

2: It is required that the IP of 5.5.5.0 /24 is not written in the routing table, and its IP can be pinged. This requires a default route to solve this problem

(1) 0.0.0.0 A route that does not limit the destination; when the router queries the routing table, after checking all local direct, static, and dynamic routing entries; use this entry if there is still no reachable path

(2) When using, it must be written in one direction, and the other direction is written with summary routing. It should be because if the default route is used for writing, routing loops will occur, causing the router to work repeatedly and automatically shut down.

3: Routing black hole: The summarized address contains the network segment that does not actually exist in the network, which will cause the flow to go or not and waste link resources; it can be avoided as much as possible through accurate address planning and summary.

4: When the routing black hole meets the default route, a loop will inevitably occur. You can configure an empty interface route to the summary network segment on the black hole router to prevent the loop route from being generated ([R1] ip route-static 1.1.0.0 22 NULL 0 ), when the router matches routing entries, it is based on the longest matching rule; the most accurate subnet mask is matched

5: Floating static routing-By modifying the default priority of static routing, it can play a role of path backup. The default priority of static routing entries is 60; the smaller the value of priority 0-255, the better.
Command [R1] ip route-static 1.1.1.0 24 13.1.1.2 preference 61

The successful experiment is shown in the figure below

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

By analogy, every router in the figure can ping every IP address. Since there are 5 routing tables in the figure, there are 5 summary addresses, so no more than 5 routing tables are handwritten by each router. , This is the end of the above experimental points. If you don’t understand, please privately ask questions.

Guess you like

Origin blog.csdn.net/wwyyh/article/details/111087103