IP address segment: 210.143.144.1 ~ 210.143.159.254,
210.143. (1001) 0000.00000000 indicates the network address and identifies a network,
210.143. (1001) 1111.11111111 is the broadcast address, which can broadcast messages to all addresses in the network.
This CIDR block is equivalent to 210.143.144.0/20, that is, 210.143. (1001) 0000.00000000, and 20 indicates the subnet
This example describes a Python implementation method that calculates a network segment based on an IP address and subnet mask. Share to everyone for your reference. Specific as follows:
This code is tested in the Linux environment 2.6.6python version!
#!/usr/bin/env python#_*_encoding:utf-8_*_#input your IP address
The following small series for everyone to bring an article WinForm C # get the MAC address, IP address, subnet mask, the default gateway instance. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
1. Add an assembly
2. Introduce namespaces
Using System.Management;
3.
JS verification IP address, subnet mask, Gateway and MAC Method, jsmac
This article describes how to verify the IP address, subnet mask, gateway, and MAC in JS. Share it with you for your reference. The details are as follows:
I
In this paper, a complete example of the implementation of C + + to obtain IP, subnet mask, gateway, DNS and other local network parameters of the method for your reference, the specific complete example is as follows:
#pragma comment (lib, "Ws2_32.lib") #include
This article describes how to verify the validity of IP addresses and subnet masks in js. For more information, see
The Code is as follows:
Function checkIP){Obj = ip;Var exp =/^ (\ d {1, 2} | 1 \ d | 2 [0-4] \ d | 25 [0-5]) \. (\ d {1, 2} | 1 \ d | 2 [0-4] \ d | 25 [0-5]) \. (\ d {1, 2} | 1 \ d | 2 [0-4] \ d | 25 [0-5]) \. (\ d {1, 2} | 1 \ d | 2 [0-4] \ d
This article mainly introduces how to use Python to calculate network segments based on IP addresses and subnet masks. It involves Python character string operation techniques based on the Linux platform and has some reference value, for more information about how to use Python to calculate network segments based on IP addresses and
Transferred from:
Http://bbs.51cto.com/thread-68584-1-1.html
Subnet Mask and subnet divisionDirectory:I. SummaryIi. Concepts and functions of subnet mask3. Why do I need to use the subnet mask?4. How to obtain the Network/Host ad
Subnet Mask and subnet division
Directory:I. SummaryIi. Concepts and functions of subnet mask3. Why do I need to use the subnet mask?4. How to obtain the Network/Host address using the subnet
subnet mask and subnet partitioningDirectory:
I. Summary
The concept and function of subnet mask
Third, why do I need to use the subnet mask
Four, how to use the
Directory:I. SummaryIi. Concepts and functions of subnet mask3. Why do I need to use the subnet mask?4. How to obtain the Network/Host address using the subnet maskV. Classification of subnet masksVi. subnet addressing technology7
A summary of the concept and function of two-subnet mask how to use subnet mask four how to get network/host address by subnet mask classification of five subnet masks six
both have special meanings that are created for special purposes. the network ID is the official address of a subnet. the broadcast ID is the broadcast address listened to by all devices on the subnet. whenever you want to reference a subnet, you can set the network ID and Its subnet
I. Concepts and functions of two subnet masks 3. Why do I need to use a subnet mask 4. How do I use a subnet mask to obtain a network/Host address 5? What is the classification of a subnet mas
Python: a simple method for converting the subnet mask and a python Subnet Mask
This article describes how to convert the subnet mask in Python. We will share this with you for your reference. The details are as follows:
Here, t
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.