In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
OSPF Multiarea configuration:
Ideas and steps:
1. Configure R1: port 0 ip 192.168.10.1 255.255.255.0
Create lookback 1 configuration ip:10.10.1.1 255.255.255.0
two。 Configure R2: port 0 ip 192.168.10.2 255.255.255.0
1 port ip 192.168.20.1 255.255.255.0
Create lookback 1 configuration ip:10.10.2.2 255.255.255.0
3. Configure R3: port 0 ip 192.168.30.1 255.255.255.0
1 port ip 192.168.20.2 255.255.255.0
Create lookback 1 configuration ip:10.10.3.3 255.255.255.0
4. Configure R4: port 0 ip 192.168.30.2 255.255.255.0
1 port ip 192.168.40.1 255.255.255.0
Create lookback 1 configuration ip:10.10.4.4 255.255.255.0
5. Configure R5: port 0 ip 192.168.50.1 255.255.255.0
1 port ip 192.168.40.2 255.255.255.0
Create lookback 1 configuration ip:10.10.5.5 255.255.255.0
6. Configure R6: port 0 ip 192.168.50.2 255.255.255.0
Create lookback 1 configuration ip:10.10.6.6 255.255.255.0
7. Create ospf 1 on R1
Area 12
Network 192.168.10.1 0.0.0.0
Network10.10.1.1 0.0.0.0
8. Create ospf 1 in R2
Area 12
Network 192.168.10.2 0.0.0.0
Network 192.168.20.1 0.0.0.0
Network10.10.2.2 0.0.0.0
9. Create ospf 1 on R3
Area 12
Network 192.168.20.2 0.0.0.0
Area 0
Network 192.168.30.1 0.0.0.0
Network10.10.3.3 0.0.0.0
10. Create ospf 1 on R4
Area 0
Network 192.168.30.2 0.0.0.0
Network10.10.4.4 0.0.0.0
Area 34
Network 192.168.40.1 0.0.0.0
11. Create ospf 1 on R5
Area 34
Network 192.168.40.2 0.0.0.0
Network 192.168.50.1 0.0.0.0
Network10.10.5.5 0.0.0.0
twelve。 Create ospf 1 on R6
Area 34
Network 192.168.50.2 0.0.0.0
Network10.10.6.6 0.0.0.0
13. Verify:
View the routing table configuration in any route:
Display iprouting-table
You can view all routed network segments
14. View the OSPF neighbor table on R1
Display ospf peer brief
View the OSPF neighbor table on R2
Display ospf peer brief
View the OSPF neighbor table on R3
Display ospf peer brief
View the OSPF neighbor table on R4
Display ospf peer brief
View the OSPF neighbor table on R5
Display ospf peer brief
View the OSPF neighbor table on R6
Display ospf peer brief
=
Key points:
OSPF multi-area configuration
ABR:area border router, area Border Router
-effect
Realize the interworking between different regions
-definition
A router that connects both backbone and non-backbone areas
Why is OSPF introduced / zoned?
After zoning, you can bring the following benefits:
1. Save system resources for each device in the area
(after the large area is divided, there will be less database content in the small area.)
(all routers in the same area, the database is exactly the same)
2. Enhance the stability of OSPF network.
(adverse effects of an unstable link, only in the same area)
(spread in the medium and will not affect other areas)
During the verification process:
1. Some route entries do not reflect the real network address of the corresponding port;-> network type
2. In Huawei equipment, the administrative distance (preference) of OSPF is 10; a metric, called cost (cost)
Routing protocol-route declaration method
1. Network: those who enter the protocol in this way are called internal routing.
In LS routing protocol, internal routing is subdivided into intra-area and inter-area.
2. Import-route: if you enter the protocol by way, we call it external routing.
(redistribute) in the LS protocol, external routes are divided into type 1 and type 2, with a default of 2
Topology configuration content:
1. OSPF establishes neighbors; (OSPF RID is specified manually)
Display ospf peer brief
2. Verify neighbor table and routing table
Display ospf peer brief
Display ip routing-table
3. View and change the network type of loopback 0
Display ospf interface loopback 0
Interface loopback 0
Ospf network-type broadcast
4. View the breakdown types of OSFP routes
Display ospf routing
5. Verify the ASE type route-leads to the "route declaration" mode: network / import-route
6. Configure a static route on R4, then import-route, and view it on other routers
R4:
Ip rout-static 100.1.1.0 255.255.255.0 null 0
Ospf 1
Import-route static
R3:
Display ip routing-table
Display ospf routing
OSPF normal area
LSA-link state advertisment (link-state advertisement)
Type 5 LSA
-means "external route"
-the transmission range is unlimited and can be transferred to the entire network of OSPF
OSPF special area
-refers to areas where type 5 LSA is not allowed.
-Classification
# stub area: stub area
Type 4 or 5 LSA is not allowed in this area, so all routers in this area
There are no external routes, so, in order to communicate with the external routes,
Therefore, the ABR in the stub area automatically generates a default route to the stub.
And belongs to the inter-area of OSPF.
-configuration commands:
# need to be configured on every router in this area
# configuration is as follows:
Ospf 1
Area 34
Stub
# totally stub area: complete stub area
Type 3, 4, 5 LSA is not allowed in this area (only a special type 3 LSA is retained, indicating a default route)
You can reduce the size of the database in the stub area
At the same time, it can also reduce the instability in other regions and the adverse impact on the region.
# nssa area: not so stub area
It is not allowed in this area
# totally nssa region: full NSSA region
=
Type of LSA:
Class 1 LSA-router lsa
Any OSPF router will generate a type 1 LSA in any area.
It is equivalent to the self-introduction of a router in a specific area.
Based on the type 1 LSA calculated route, we call it intra-area route.
Type 2 LSA-
Three types of LSA-summary-network
Only ABR can be generated; the function is to transfer routes between different areas.
Based on the three types of routes calculated by LSA, we call them inter-area routes.
Generation of three types of LSA:
ABR will send routes in non-backbone areas to backbone areas in the form of three types of LSA.
The ABR in the backbone area will continue to send the three types of LSA received in area 0 to others.
Non-backbone area
ARB can also change the route in area 0 into the form of type 3 LSA to send non-backbone areas.
Three types of LSA in the process of transmission, each passing through an ABR, the "advertisement router" will change
Once.
Type 4 LSA-this LSA exists only to cooperate with type 5 LSA to calculate external routes
It is generated by ABR in the same area as ASBR
The transmission process, similar to type 3 LSA, changes the "advertisement router" every time an ABR passes.
Five types of LSA-as external lsa
Only ASBR (auto system board router Autonomous system Boundary routing) can be generated to represent external routes that can be transmitted to the OSPF network.
Anywhere.
And in the process of transmission, LSA will not produce any change.
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.