In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
How to parse the IP address of the relevant explanation, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
I. simple local area network
Local area network: commonly referred to as intranet
The composition of local area network: switch, network cable, computer
Switch: a device used to set up an intranet (local area network)
2. IP address
1. The computer only knows 0 and 1192.168.1.111, which is the ip address we can see. It is actually recognized as 11000000.10101000.00000001.01101111.
2. The ip address is composed of 32 bits, the first 24 bits are network bits, and the last 8 bits are host bits.
3. In a local area network, the same network segment can communicate with each other only if the first 24 binary digits of the ip address are the same.
192.168.1.111 and 192.168.1.222 can communicate with each other
4. IP addresses can be roughly divided into three categories.
3. MAC address
The MAC address is the unique logo of each computer, just like our ID card.
The IP address is the unique logo for each computer to surf the Internet, and it has a location function.
3. Subnet mask
1. Through the subnet mask, you can tell whether the two IP are inside a local area network.
2. The subnet mask shows how many bits are network numbers and how many bits are host numbers.
3. Common subnet masks:
Class An address: the default subnet mask is 255.0.0.0
Class B address: the default subnet mask is 255.255.0.0
Class C address: the default subnet mask is 255.255.255.0
IV. Gateway
At the exit of the network, if the host in network A finds that the destination host of the packet is not in the local network, the packet will be forwarded to its own gateway, and then forwarded by the gateway to other hosts, so only by setting the IP address of the gateway can the TCP/IP protocol realize the communication between different networks.
5. DNS
If the ip address of the Baidu server is 121.18.86.95, we can only access the server by visiting the ip address, but it is too difficult to remember IP, so we have the domain name, www.baidu.com, and access the domain name. The browser will go to the DNS server to find the ip corresponding to www.baidu.com, and then access the ip address to get the data we want.
VI. Ping related commands
1. Ipconfig: view ip, subnet mask, gateway, DNS and other related information
2. Ping 192.168.1.1: send packets three times by default
3. Ping-t 192.168.1.1: always ping
4. Png-n 6 192.168.1.1: specify the number of times ping
5. Nslookup www.baidu.com: obtain the IP address through the domain name (regardless of CDN)
After reading the above, have you mastered the method of how to parse the IP address? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.