In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Lab Topology:
Experimental requirements; interworking of the whole network
Experimental idea: this experiment uses internal routing method to convert routers in non-backbone areas into ABR, so as to realize the interworking of discontinuous areas.
The steps of the experiment:
The first method: 1. The router ip address assignment required in the lab is shown in the following figure:
R1
Gi 0/0/0 192.168.12.1/24
Gi0/0/2 192.168.14.1/24
R2
Gi0/0/0 192.168.12.2/24
Gi0/0/1 192.168.23.2/24
Gi0/0/2 192.168.26.2/24
R3
Gi0/0/1 192.168.23.3/24
Gi0/0/2 192.168.35.3/24
Gi0/0/3 192.168.43.3/24
R4
Gi0/0/0 192.168.14.2/24
Gi0/0/1 192.168.46.4/24
Gi0/0/2 192.168.1.254/24
Gi4/0/0 192.168.47.4/24
Gi04/0/1 192.168.43.4/24
R5
Gi0/0/0 192.168.35.5/24
Gi0/0/1 192.168.2.254/24
R6
Gi0/0/0 192.168.46.6/24
Gi0/0/1 192.168.26.6/24
R7
Gi0/0/0 100.2.2.254/24
Gi0/0/1 192.168.47.7/24
Configure the router IP address as shown in the figure
two。 Configure ospfR1 by area division in the topology diagram: (belonging to 2 area 0 / 14) [R1] ospf 1 router-id 1.1.1.1 (this is not an ip address It is only named in the form of an IP address) [r1-ospf-1] area 0 (o is the backbone) [r1-ospf-1-area-0.0.0.0] network 192.168.12.1 0.0.0.0 [r1-ospf-1] area 14 (area 2 of R1 belongs to area 14) [r1-ospf-1-area-0.0.0.14] network 192.168.14.1 0.0.0.0 [ R1-ospf-1-area-0.0.0.14] stub (area 14 is set to the stub area Five types of LSA are not allowed in this area) R2: (totally area 0) [R2] ospf 1 router-id 2.2.2.2 [r2-ospf-1] area 0 (R2 all belong to area 0) [r2-ospf-1-area-0.0.0.0] network 192.168.12.2 0.0.0.0 [r2-ospf-1-area-0.0.0.0] network 192.168.23.2 0.0. 0.0 [r2-ospf-1-area-0.0.0.0] network 192.168.26.2 0.0.0.0R3: [R3] ospf 1 router-id 3.3.3.3 [r3-ospf-1] area 0 [r3-ospf-1-area-0.0.0.0] network 192.168.23.3 0.0.0.0 [r3-ospf-1-area-0.0. 0] network 192.168.43.3 0.0.0.0 (R4 is connected to R3 the physical line is to convert R4 into ABR So the connection area belongs to area 0) [r3-ospf-1] area 35 [r3-ospf-1-area-0.0.0.35] network 192.168.35.3 0.0.0.0R4: (belongs to 2 regions area 14 0.0.0.0R4 47) [R4] ospf 1 router-id 4.4.4.4 [r4-ospf-1] area 14 [r4-ospf-1-area-0.0.0.14] network 192.168.1.254 0 .0.0.0 [r4-ospf-1-area-0.0.0.14] network 192.168.14.2 0.0.0.0 [r4-ospf-1-area-0.0.0.14] network 192.168.46.4 0.0.0.0 [r4-ospf-1-area-0.0.0.14] stub (set stub area) [r4-ospf-1] area 47 [r4-ospf-1-area-0.0 .0.47] net 192.168.47.4 0.0.0.0R5: (totally area 35) [R5] ospf 1 router-id 5.5.5.5 [r5-ospf-1] area 35 [r5-ospf-1-area-0.0.0.35] network 192.168.254 0.0.0.0 [r5-ospf-1-area-0.0.0.35] network 192.168.35.5 0.0.0. 0R6: [R6] ospf 1 router-id 6.6.6.6 [r6-ospf-1] area 0 [r6-ospf-1-area-0.0.0.0] network 192.168.26.6 0.0.0.0 [r6-ospf-1] area 14 [r6-ospf-1-area-0.0.0.14] network 192.168.46.6 0.0.0.0 [r6Aff- 1-area-0.0.0.14] stubR7: [R7] ospf 1 router-id 7.7.7.7 [r7-ospf-1] area 47 [r7-ospf-1-area-0.0.0.47] network 100.2.2.254 0.0.0.0 [r7-ospf-1-area-0.0.0.47] network 192.168.47.7 0.0.0.0 prompts you to establish a neighbor relationship As shown below:
Figure 1-6 shows the process state of establishing a neighbor relationship.
At this time, because there is a physical line connected between R3 and R4, the whole link is interoperable. If this line is removed, the type 1 LSA sent by R7 to area 14 cannot be synchronized to other area routers. Because R4 is not ABR, the received type 1 LSA will not be sent to area 0, so there are no route entries to area 47 in other routes.
Validate, test:
View neighbor on R4: [R4] display ospf peer brief
Check to see if R4 has neighbors in area 0 (router-id 3.3.3.3) or R3 has R4 in area0 neighbors (router-id 4.4.4.4).
Router-id 3.3.3.3 in the figure shows that a neighbor relationship has been established.
PC test: ping 100.2.2.1
Ping is connected, which solves the problem of interworking in discontiguous areas, but if there are many discontiguous routers, the connection is very inconvenient, and the router interface is limited, so this method is generally used temporarily to use the second method: virtual link.
The virtual link still converts R4 into ABR to achieve interworking, but it establishes a virtual link between R1Magol R4, and the transmission uses the actual area 14 line to transmit hello packets of ospf. The successful neighbor relationship established by the virtual link always belongs to area 0.
Configuration method:
Disconnect the line between R3MagneR4, so that the neighbor relationship of R3MagneR4 is gone, and R7 is disconnected from other areas, but R1Magine R4 is interoperable (the premise of establishing a virtual link is that the link neighbor relationship is intact).
At this point, you only need to configure R1Magol R4 for area 14. The configuration is as follows:
First delete the stub area on R1 and R4, because virtual links can no longer be set to special locales
R1: [r1-ospf-1] area 14 [r1-ospf-1-area-0.0.0.14] undo stub [r1-ospf-1-area-0.0.0.14] vlink-peer 4.4.4.4 (router-id of R4 Note that it is not an IP address) R4: [r4-ospf-1] area 14 [r4-ospf-1-area-0.0.0.14] undo stub [r4-ospf-1-area-0.0.0.14] vlink-peer 1.1.1.1 (R1 router-id) R6: [r6-ospf-1] area 14 [r6-ospf-1-area-0.0.0.14] undo stub
View the virtual link on R1: [R1] dis ospf vlink
It can be seen from the figure that the virtual link has been successfully established between router-id 4.4.4.4 and router-id 1.1.1.1.
Of course, virtual links are generally not recommended, because virtual links can no longer be established in special areas, so type 5 LSA has no regional restrictions. If type 5 LSA is unstable, it will cause area 0 instability, and the whole network will be unstable, which is generally used temporarily.
The third method (the longest used by the enterprise) treats R7 as an external route
Configuration method:
Delete the virtual link on R1Magic R4 and configure it on R4:
[r4] ospf 1
[r4-ospf-1] area 14
[r4-ospf-1-area-0.0.0.14] un vlink-peer 1.1.1.1
[r4-ospf-1] area 47
[r4-ospf-1-area-0.0.0.47] un net 192.168.47.4 0.0.0.0
[r4-ospf-1] un area 47
[r4-ospf-1] ospf 2 (re-enable an ospf process 2)
[r4-ospf-2] area 47
[r4-ospf-2-area-0.0.0.47] net 192.168.47.4 0.0.0.0
[r4-ospf-2] import-route ospf 1
[r4-ospf-1] import-route ospf 2
Verify:
From the above figure R4, there are two processes, both established neighbor networks or interworking, recently suddenly encountered this kind of large network interconnection problem, so write some methods.
This method is most commonly used by enterprises to solve the problem of discontinuous areas. I hope it will be helpful to everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.