In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
OSPF protocol is a kind of protocol which is widely used by us at present. The name extension is open shortest path first. It translates to
Open shortest path first. It has the following characteristics: 1 it is a public protocol, any company or product can use this protocol to configure dynamic routing 2 unlimited network size 3 support hierarchical network design
The hierarchical design includes 1 backbone layer, and the 0 area is the backbone area, which is generally expressed in decimal or dotted decimal system.
(2) non-backbone areas, all non-backbone areas must be connected to backbone areas.
As shown in the figure above, the three routers are connected to form the backbone area; PC16 and PC17 are the non-backbone areas. The principle is to turn on the OSPF protocol in this simple network, then the network part of the IP address of each port of the three routers will be sent into the protocol message, and each router will learn from each other and add it to its own routing table.
Experiment: Unicom PC16 and PC17
Idea: the interconnection between two PC needs to go through three routers, and according to the idea of adding static route, it needs to be configured in R1 / GIG0/0,R2 interface and R3 / GIG0/0. Now, instead of adding static routes, we use the OSPF protocol.
Step: 1 configure PC16 IP to 192.168.10.1 gateway 192.168.10.254
Configure PC17 IP to 192.168.20.1 Gateway 192.168.20.254
2 configure R1 interface GIG0/0 IP address 10.10.2.1
Configure the R1 interface GIGI0/1 IP address 192.168.10.254
Configure R2 interface GIG0/0 IP address 10.10.2.2
Configure R2 interface GIGI0/1 IP address 10.10.3.1
Configure R3 interface GIG0/0 IP address 10.10.3.2
Configure the R1 interface GIGI0/1 IP address 192.168.20.254
3 configure dynamic routin
Configure R1
R1 (config) # router ospf 1
R1 (config-router) # network 10.10.2.0 0.0.0.255 area 0
R1 (config-router) # network 192.168.10.0 0.0.0.255 area 0
Configure R2
R2 (config) # router ospf 1
R2 (config-router) # network 10.10.2.0 0.0.0.255 area 0
R2 (config-router) # network 10.10.3.0 0.0.255 area 0
Configure R3
R3 (config) # router ospf 1 / / enable OSPF 1
R3 (config-router) # network 10.10.3.0 0.0.255 area 0
R3 (config-router) # network 192.168.20.0 0.0.0.255 area 0 / / the ports covered by the IP address range behind NETWORK enable the OSPF protocol, and the port can send the protocol message; the port can accept the protocol message 0.0.0.255 inverse mask means that the network segment of the IP address is transferred into the protocol message, and the transmission range is area 0, which is transmitted in the backbone layer to achieve the purpose of letting each router learn this content.
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.