In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Knowledge point 1: private network address 10.0.0.0" 10.255.255.255
172.16.0.05172.31.255.255
192.168.0.05192.168.255.255
Knowledge point 2: private network data cannot be directly transferred to the second private network address in the internet of the public network address.
The principle of 3:GRE data transmission is shown in figure 1 below.
Figure 1
Data 10.1.1.2 is transferred to the R1 router. The R1 router will first add 1.1.1.1 to 1.1.1.2 data encapsulation, and then add the data. The starting ip address is 100.1.1.1 and the ending IP address is 200.1.1.1. In this way, there is a shell of the public network packet outside the data, which can be transmitted at the public network address and go directly to the R4 router 192.168.1.4. 1.1.1.1 and 1.1.1.2 are direct tunnels for GRE data transmission. Please search for specific information by yourself.
Next, set the port ip address of each router.
R2
R2 > en
R2#conf t (enters global configuration mode)
R2 (config) # int f0ap0 (enter this router f0ap0 port)
R2 (config-if) # ip add 10.1.1.2 255.255.255.0 (configure IP address and default gateway)
R2 (config-if) # no sh (open the router port)
R2 (config-if) # exit (exit port configuration mode and return to global configuration mode)
R2 (config) # ip route 0.0.0.0 0.0.0.0 10.1.1.1 (points to R1 static route. If you cannot add static route, please set the IP address of R2)
R1
R1 (config) # int f0Let0
R1 (config-if) # ip address 10.1.1.1 255.255.255.0
R1 (config-if) # no sh
R1 (config-if) # exit
R1 (config) # int F0plet1
R1 (config-if) # ip add 100.1.1.1 255.255.255.0
R1 (config-if) # no sh
R1 (config-if) # exit
R1 (config) # ip route 0.0.0.0 0.0.0.0 100.1.1.5 (static route to R5 hybrid network)
R5
R5 (config) # int f0swap 1
R5 (config-if) # ip add 100.1.1.5 255.255.255.0
R5 (config-if) # no sh
R5 (config) # int f0Let0
R5 (config-if) # ip add 200.1.1.5 255.255.255.0
R5 (config-if) # no sh
R5 is a hybrid network and no static routes need to be configured.
R3
R3 (config) # int f0Let0
R3 (config-if) # ip add 200.1.1.1 255.255.255.0
R3 (config-if) # no sh
R3 (config) # int f0swap 1
R3 (config-if) # ip address 192.168.1.3 255.255.255.0
R3 (config-if) # no sh
R3 (config) # ip route 0.0.0.0 0.0.0.0 200.1.1.5 (static route to R5)
R4
R4 (config) # int f0swap 1
R4 (config-if) # ip add 192.168.1.4 255.255.255.0
R4 (config-if) # no sh
R4 (config) # ip route 0.0.0.0 0.0.0.0 192.168.1.3 (static route to R3)
If you are interested, you can look at the ping ip address of each router to see the packet loss rate of data transmission.
Next, we will establish a fast path for R1 and R3, regardless of whether there are fewer routers in the hybrid network of R5. I will only take this fast channel.
R1
R1 (config) # interface tunnel 1 (create a virtual IP name)
R1 (config-if) # ip address 1.1.1.1 255.255.255.0 (virtual IP address and default gateway)
R1 (config-if) # tunnel source 100.1.1.1 (start IP address transfer)
R1 (config-if) # tunnel destination 200.1.1.1 (end IP address transfer)
R1 (config-if) # exit
R1 (config) # ip route 192.168.1.0 255.255.255.0 1.1.1.2 (static route)
R3
R3 (config) # interface tunnel 3
R3 (config-if) # ip address 1.1.1.2 255.255.255.0
R3 (config-if) # tunnel source 200.1.1.1
R3 (config-if) # tunnel destination 100.1.1.1
R3 (config-if) # exit
R3 (config) # ip route 10.1.1.0 255.255.255.0 1.1.1.1 (static route)
This experiment has been completed by 90%. The last step is to encrypt the transmitted data, which will be continued in the next chapter.
Several key commands are explained here:
Packet loss rate of data transmission between two devices of ping 10.1.1.0
R1#show interfaces tunnel 1 (view the configuration of virtual ports)
Traceroute 10.1.1.1 (tracking the direction of data transmission)
Exit returns to the previous level
Copy running-config startup-config (save configuration file, for Cisco only)
Attachment: http://down.51cto.com/data/2367116
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.