In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how to achieve communication between network devices in the local area network under Linux. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
In the local area network, there are several extensions running on the linux (different from the host linux), and the network segments of these hosts are not routed in the whole local area network, and no host in the local area network can communicate with them, as shown in the figure above. It can only be done by jumping to the host and then connecting by the host.
In the local area network, there are several extensions running on the linux (different from the host linux), and the network segments of these hosts are not routed in the whole local area network, and no host in the local area network can communicate with them, as shown in the figure above. It can only be done by jumping to the host and then connecting by the host.
Problem solving:
As you can see, the host ip of 10.8.1.84 can communicate during the test, but the following 172.17.0.1 network segment is not reachable by any node in the local area network. You can only connect to hosts on the 172.17.0.1 network segment by connecting to 10.8.1.84 first.
Resolve:
Add the network segment to be accessed to the routing table of the windows, and the next hop points to the ip of the host. Because only the host can communicate with the host in this network segment.
Route-p add 172.17.0.0 mask 255.255.0.0 10.8.1.84
Verify:
Problem: some small tp-link routers in the local area network will connect some devices next time, but there will be a strange phenomenon. The device attached to the tp-link can communicate with any device in the LAN (ping is reachable), but the device in the LAN cannot communicate with the device attached below (ping is not reachable)
Analysis: the tp-link wireless small router is equivalent to a device with nat function, because the ip of the wan port of the router is the reachable ip in the local area network, but the lan port under the router includes the ip that the wireless device obtains the ip from the tp-link is generally another network segment, this ip segment is not routed in the real local area network, so the devices under the wifi can ping any device in the local area network. But any device in the local area network cannot ping the device under wifi.
Because the small tp-link router believes that the devices under the lan port need to surf the Internet, and tp-link will convert the nat of these devices under the lan port into the existing ip of the local area network, that is, the ip of wan. When the devices in the local area network need to access the devices under the wifi, because the tp-link does the nat, the devices in the local area network cannot access the devices under the wifi. You can only do virtual server (port mapping) in tp-link, map the ports of devices hanging under tp-link, and map them with ip (local area network identifiable ip) of wan port, so that other devices in the local area network can access the devices hanging under wifi.
On how to achieve communication between network devices in the local area network under Linux is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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
Http://linux5588.blog.51cto.com/65280/1293677
© 2024 shulou.com SLNews company. All rights reserved.