how to determine subnet mask

Alibabacloud.com offers a wide variety of articles about how to determine subnet mask, easily find your how to determine subnet mask information here online.

Determine if two IPs belong to the same subnet

Description A subnet mask is a basis for determining whether the IP addresses of any two computers belong to the same subnet.The subnet mask is the same as the IP address structure, which is a 32-bit binary number, where the network number section is all "1" and the host number is all "0". Use the

Huawei oj--determine whether two IPs belong to the same subnet

Title DescriptionA subnet mask is a basis for determining whether the IP addresses of any two computers belong to the same subnet.The subnet mask is the same as the IP address structure, which is a 32-bit binary number, where the network number section is all "1" and the host number is all "0". Use the

[Huawei Machine Test exercises]54. Determine whether the IP addresses of any two computers belong to the same subnet

: Determine whether the IP addresses of any two computers belong to the same subnet * Source: Huawei Machine Test exercises---- -------------------------------------*/#include #include "OJ.h"#include #include using namespace STD;/* Function: Determine the IP address of the two computers is the same subnet. Prototype: i

Determine the network segment, subnet, network number

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 belo

Determine if IP address and mask are legitimate programs

#include #include #include #include int if_a_string_is_a_valid_ipv4_address (const char *STR){struct IN_ADDR addr;int ret;volatile int local_errno;errno = 0;ret = Inet_pton (af_inet, str, ADDR);Local_errno = errno;if (Ret > 0);else if (Ret printf ("Eafnosupport:%s\n", Strerror (Local_errno));Elseprintf ("\"%s\ "is not a valid IPV4 address\n", str);return ret;}BOOL Issubnetmask_and_is_ipv4_address (const char *ip_address, char *subnet){if (if_a_string_

Total Pages: 7 1 .... 3 4 5 6 7 Go to: Go

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.