Determine the network segment, subnet, network number

Source: Internet
Author: User
IP address A, b IP (a) 188.188.0.111 10111100.10111100.00000000.01101111 IP (b) 188.188.5.222 10111100.10111100.00000101.11011110 Mask 255.255.254.0 11111111.11111111.11111110.00000000255.255.254.0 is a subnet mask made up of 23 1, simply speaking, as long as the IP address from the left to the right of the first 23 bits 1 location and the same number of IPs belong to the same network segment, The number from the 24th to the next can be arbitrarily selected 0 or 1. For example, IP (a) 188.188.0.111, can be calculated with IP (a) belonging to the same network segment of the range of 188.188.0.0~188.188.1.255, the IP address in this range belongs to a network segment. IP (B) The IP range of the same network segment is 188.188.4.0~188.188.5.255. Therefore, IP (A) and IP (B) do not belong to the same network segment.  If IP (A) 192.168.5.192/25 11000000.10101000.11000000.00000101 IP (B) 192.168.5.128/25 11000000.10101000.10000000.00000101 the Mask of A and B is 11111111.11111111.11111111.10000000 we can know that A and B are all Class C IP addresses, So the network number is 192.168.5 a subnet number for the 128,b subnet number is also the 128,a host number for the 64,B host number is 0

Determine the network segment, subnet, network number

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.