CN113840017B - IP address automatic allocation method, device, electronic equipment and computer readable medium - Google Patents
IP address automatic allocation method, device, electronic equipment and computer readable medium Download PDFInfo
- Publication number
- CN113840017B CN113840017B CN202111013781.4A CN202111013781A CN113840017B CN 113840017 B CN113840017 B CN 113840017B CN 202111013781 A CN202111013781 A CN 202111013781A CN 113840017 B CN113840017 B CN 113840017B
- Authority
- CN
- China
- Prior art keywords
- address
- plane
- byte
- site
- stage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000004891 communication Methods 0.000 claims description 40
- 238000004590 computer program Methods 0.000 claims description 3
- 238000003860 storage Methods 0.000 claims description 3
- 238000005457 optimization Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3005—Mechanisms for avoiding name conflicts
Abstract
The invention discloses an automatic IP address allocation method, which specifically comprises the following steps: acquiring IP allocation related information of equipment to be allocated, wherein the IP allocation related information comprises station address information; acquiring a three-level station address number corresponding to the station address information, wherein the three-level station address number comprises a first-level station address number, a second-level station address number and a third-level station address number; determining a plane IP address and a first byte of the plane IP address according to the first-stage site number and the plane number; the second-stage station address number and the third-stage station address number are respectively used as a plane IP address and a second byte and a third byte of the plane IP address; a flat IP address and a flat IP address are assigned a fourth byte that does not conflict with existing devices. The invention also discloses an IP address automatic allocation device, electronic equipment and a computer readable medium. The invention can effectively avoid the phenomena of IP address conflict and subnet division error, improve the accuracy and rationality of IP address allocation and improve the working efficiency.
Description
Technical Field
The invention belongs to the field of digital information transmission, and particularly relates to an automatic IP address allocation method, an automatic IP address allocation device, electronic equipment and a computer readable medium.
Background
Due to the characteristics of the work types, part of equipment needs to carry out related business works in different sites. The IP address allocation is one of important preparation matters for the equipment to access the office network to develop related work, the traditional IP address allocation is mainly realized manually, and the IP address of the office network is allocated to the equipment manually by referring to the IP address allocation rule of the office network and combining the characteristics of equipment type, office location and the like. However, due to the continuous increase of workload and the objective need of simplifying the workflow, a set of automatic IP address allocation system is urgently needed to improve the efficiency and quality of address allocation work, avoid phenomena such as IP address conflict and subnet division errors, improve the accuracy and rationality of IP address allocation and simplify the preparation work before developing business.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention provides an automatic IP address allocation method, an automatic IP address allocation device, electronic equipment and a computer readable medium, which can effectively avoid the phenomena of IP address conflict and subnet division error and improve the accuracy and rationality of IP address allocation.
An automatic IP address allocation method, the IP address includes a plane IP address and a plane IP address, specifically includes:
Acquiring IP allocation related information of equipment to be allocated, wherein the IP allocation related information comprises station address information;
acquiring a three-level site number corresponding to the site information, wherein the three-level site number comprises a first-level site number, a second-level site number and a third-level site number;
determining the first level IP address and the first byte of the two-level IP address according to the first level site number and the plane number;
Taking the second-stage station address number and the third-stage station address number as a second byte and a third byte of the one-plane IP address and the two-plane IP address respectively;
The flat IP address and the flat IP address are allocated a fourth byte that does not collide with an existing device.
An optimization scheme, wherein the first byte of the plane IP address and the first byte of the plane IP address are determined according to the first-stage site number and the plane number, and the optimization scheme comprises the following steps:
obtaining the plane numbers of the first plane and the second plane;
obtaining a first byte of the IP address of the plane according to the plane number of the plane and the first-stage site number;
and obtaining the first byte of the two-plane IP address according to the plane number of the two planes and the first-stage site address number.
An optimization scheme, when the site information corresponds to a local area network site:
the first-level site number is determined as a number that alone represents the local area network.
An optimization scheme, when the site information corresponds to a local area network site:
If the local area network site is provided with a mobile satellite communication device, the second-stage site number used as the second byte of the planar IP address adopts one of a number representing mobile satellite communication and a corresponding number of the mobile satellite communication device, and the third-stage site number used as the third byte of the planar IP address adopts the other of the two.
In an optimization scheme, if the device to be allocated is connected to the mobile satellite communication device only, the second-stage site number used as the second byte of the one-plane IP address adopts one of a number representing mobile satellite communication and a corresponding number of the mobile satellite communication device, and the third-stage site number used as the third byte of the one-plane IP address adopts the other one of the two.
An optimization scheme, wherein the IP allocation related information further comprises equipment types;
The allocating a fourth byte for the one-plane IP address and the two-plane IP address, which does not conflict with the existing device, includes the following steps:
Determining a preset integer interval corresponding to the device type;
And selecting an integer which does not conflict with the existing equipment in the integer interval as the one plane IP address and the fourth byte of the plane IP address.
An optimization scheme, the obtaining a three-level site number corresponding to the site information, comprising:
And carrying out corresponding number matching on the station address information in a preset three-stage station address library, and finding out a first-stage station address number, a second-stage station address number and a third-stage station address number corresponding to the station address information.
An IP address automatic allocation apparatus comprising:
The equipment information acquisition module is used for acquiring IP allocation related information of equipment to be allocated, wherein the IP allocation related information comprises station address information;
The three-stage station address number acquisition module is used for acquiring three-stage station address numbers corresponding to the station address information, wherein the three-stage station address numbers comprise a first-stage station address number, a second-stage station address number and a third-stage station address number;
The first byte allocation module is used for determining the first byte of the plane IP address and the first byte of the plane IP address according to the first-stage site address number and the plane number;
A second and third byte allocation module, configured to use the second-stage site number and the third-stage site number as a second byte and a third byte of the one-plane IP address and the two-plane IP address, respectively;
And the fourth byte allocation module is used for allocating a fourth byte which does not conflict with the existing equipment to the one-plane IP address and the two-plane IP address.
An electronic device, comprising:
one or more processors;
A storage device having one or more programs stored thereon;
When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement any one of the IP address automatic allocation methods described above.
A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements any one of the aforementioned IP address auto-assignment methods.
Compared with the prior art, the invention has the following beneficial effects:
the invention automatically allocates IP addresses based on preset three-level station address numbers, namely, according to the allocation rule of the IP addresses of users of the office network metropolitan area network and the local area network, combines the type characteristics and the station arrangement condition of equipment to be allocated, constructs a model of three-level two types of station addresses and equipment types, and automatically allocates the IP addresses for newly added facility equipment. The invention can reduce the workload of manually distributing the IP addresses, improve the working efficiency, reduce the error rate, effectively avoid the phenomena of IP address conflict and subnet division error, and is more accurate and more reasonable than the existing IP address distribution mode; the network state of the device itself can also be directly known through the double-plane IP address of the device.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an automatic IP address allocation method according to the present invention;
FIG. 2 is a flow chart illustrating a first byte allocation in the method for automatically allocating IP addresses according to the present invention;
FIG. 3 is a schematic diagram of IP addresses in the method for automatically assigning IP addresses according to the present invention;
FIG. 4 is a flow chart illustrating a fourth byte allocation in the method for automatically allocating IP addresses according to the present invention;
Fig. 5 is a schematic structural diagram of an IP address automatic allocation apparatus according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, an automatic IP address allocation method, where the IP address includes a plane IP address and a plane IP address, specifically includes:
Acquiring IP allocation related information of equipment to be allocated, wherein the IP allocation related information comprises station address information;
acquiring a three-level site number corresponding to the site information, wherein the three-level site number comprises a first-level site number, a second-level site number and a third-level site number;
determining the first level IP address and the first byte of the two-level IP address according to the first level site number and the plane number;
Taking the second-stage station address number and the third-stage station address number as a second byte and a third byte of the one-plane IP address and the two-plane IP address respectively;
The flat IP address and the flat IP address are allocated a fourth byte that does not collide with an existing device.
The sites can be divided into two types according to the network scale, one is a metropolitan area site, and the other is a local area network site, which respectively corresponds to a metropolitan area network of an office network and a remote station local area network. Metropolitan sites are typically located in local and other larger areas, and local area network sites are typically located in small and medium areas remote from local. The sites can be divided into three levels according to membership, and the first level site corresponds to a large area in the map; the second-level site corresponds to a middle area of the large areas in the map; the third level site corresponds to a small one of the medium areas in the map. A group of numbers are allocated to the corresponding areas of each site in the three-level site library in advance (each site has corresponding first, second and third site numbers, and the none of the sites can be replaced by 0); the first-stage site number, the second-stage site number and the third-stage site number of the equipment to be allocated have different purposes and are respectively used for generating a first byte, a second byte and a third byte of the IP address. The fourth byte may be to select a number that does not conflict with existing devices. In addition, the local area network site includes mobile devices such as mobile satellite communication devices (e.g., sanitary vehicles) in addition to the corresponding geographic areas; when the equipment to be allocated accesses to the network through the mobile satellite communication device, the local area network number can be used as a first byte, and the number corresponding to the mobile satellite communication device and the mobile satellite communication device can be used as a second byte and a third byte.
In this embodiment, a dual-plane structure is adopted, and IP addresses of different planes are distinguished according to the first byte. For the second byte and the third byte, the corresponding second-stage site number and third-stage site number may be directly employed, which numbers do not exceed 8-bit binary numbers. In the application, on one hand, the geographical area division of the site is effectively utilized to carry out numbering and IP allocation, and on the other hand, reasonable IP allocation processing is carried out on various situations which possibly occur to the site of the local area network.
As shown in fig. 2, in one embodiment, the determining the first byte of the plane IP address and the first byte of the plane IP address according to the first-stage site number and the plane number includes the following steps:
obtaining the plane numbers of the first plane and the second plane;
obtaining a first byte of the IP address of the plane according to the plane number of the plane and the first-stage site number;
and obtaining the first byte of the two-plane IP address according to the plane number of the two planes and the first-stage site address number.
The first byte may be divided into a plane number segment for identifying a plane and a first-stage site number segment for identifying an area where the first byte is located, where the lengths of the plane number segment and the first-stage site number segment may be adjusted according to actual requirements (the plane number shown in fig. 3 is 3 bits, and the first-stage site number is 5 bits).
In one embodiment, when the site information corresponds to a local area network site, the first stage site number is determined to be a number that alone represents the local area network.
The invention can uniformly number the local area network site and the metropolitan area site as the first-stage site number; as in the present embodiment, a separate number may be assigned to lan sites, and all lan sites may use the number. Considering that the number of local area network sites is usually much smaller than that of metropolitan area network sites, the number of first site numbers corresponding to the local area network sites can be reduced according to actual conditions, for example, the number of the first site numbers of the local area network sites is adjusted to 1 in the embodiment, the first site numbers of all local area network sites are unified, so that the management of IP addresses is convenient to a certain extent, and a larger number space can be reserved for metropolitan area network sites.
In one embodiment, when the site information corresponds to a local area network site, if a mobile satellite communication device is disposed at the local area network site, the second-stage site number used as the second byte of the two-dimensional IP address uses a number representing mobile satellite communication/a corresponding number of the mobile satellite communication device, and the third-stage site number used as the third byte of the two-dimensional IP address uses a corresponding number of the mobile satellite communication device/a number representing mobile satellite communication.
Wherein, for local area network site, if a mobile satellite communication device is set, the allocation strategy of a plane can be kept unchanged (namely, the second and third bytes are set according to the second-level and third-level site numbers of the corresponding geographic area), so that the plane allocates IP addresses according to the mobile satellite communication device, namely, the mobile satellite communication device number is set as the second-level site number, and a number representing mobile satellite communication is set as the third-level site number; the reverse arrangement is also possible, for example, the number representing the mobile satellite communication is taken as the second-stage site number, and the number of the mobile satellite communication device is taken as the third-stage site number.
On the basis of the previous embodiment, if the apparatus to be allocated is connected to only the mobile satellite communication device, the second-stage site number for the second byte of the one-plane IP address adopts a number representing mobile satellite communication/a corresponding number of the mobile satellite communication device, and the third-stage site number for the third byte of the one-plane IP address adopts a corresponding number of the mobile satellite communication device/a number representing mobile satellite communication.
For local area network sites, if only a mobile satellite communication device is provided, that is, a suitable second site number cannot be found in the three-level site library to indicate (for example, the area where the second site number is located is not numbered), or the equipment to be allocated is only connected to the mobile satellite communication device and does not access the local network, the second-level site number in the three-level site number may be set to 0 (other numbers are also possible). When the second-level site number is obtained as 0, the present embodiment can allocate an IP address to a plane also according to the mobile communication device on the basis of the above embodiment. Thus, the network state of the corresponding device can be known only through the information provided by the different plane IP addresses.
As shown in fig. 4, in one embodiment, the IP allocation related information further includes a device type;
The allocating a fourth byte for the one-plane IP address and the two-plane IP address, which does not conflict with the existing device, includes the following steps:
Determining a preset integer interval corresponding to the device type;
And selecting an integer which does not conflict with the existing equipment in the integer interval as the one plane IP address and the fourth byte of the plane IP address.
Of these, the most basic requirement for the fourth byte is not to conflict with existing devices. But if the fourth byte allocation is done at will, it can cause some trouble for subsequent management. In this embodiment, a device address library is further set to divide integer intervals for different types of devices, and after the device type is acquired, the device to be allocated searches for integers which do not conflict with the existing device from the integer intervals of the corresponding device type, so that the devices in one integer interval are all of the same type, and subsequent management, identification and further information processing are facilitated.
In one embodiment, the obtaining a three-level site number corresponding to the site information includes:
And carrying out corresponding number matching on the station address information in a preset three-stage station address library, and finding out a first-stage station address number, a second-stage station address number and a third-stage station address number corresponding to the station address information.
For ease of understanding, specific examples are presented below (as shown in fig. 3, the following schemes default to three-bit binary numbers, where the first plane is "000" and the second plane is "010"; in practical applications, the number of the plane numbers may be changed to another binary number representation, and may be adapted to situations with more planes):
embodiment 1, scheme for metropolitan area networks:
In the site information of the equipment to be allocated, the number of the first-level metropolitan area network site A is 1, the first byte of the IP address corresponding to the first plane is 1, and the 1 st byte of the IP address of the second plane is 65. The number of the secondary metropolitan area network corresponding to the station address A is 11, and the second byte of the IP address corresponding to the first plane and the second plane is 11. And the 3 rd byte of the IP address corresponding to the first plane and the second plane is 4. The integer interval of the station address A corresponding to the equipment type of the equipment to be allocated is 101-150, and the equipment type is allocated to the integer 150 through conflict detection. The first plane IP address of the equipment to be allocated at site a is 1.11.4.150; the second plane IP address is 65.11.4.150.
Embodiment 2, scheme for a local area network mobile satellite free communication device:
In the site information of the equipment to be allocated, the number of the primary lan site B is 21 (the lan number may be a fixed number), and the first byte of the IP address corresponding to the first plane is 21, and the first byte of the IP address of the second plane is 85. The second local area network site B of site B is numbered 11 and the second byte corresponding to the first, planar IP address is 11. And the 3 rd byte of the IP address corresponding to the first plane and the second plane is 15 when the number of the three-level metropolitan area network station address corresponding to the station address B is 15. The integer interval of the station address B corresponding to the equipment type of the equipment to be allocated is 81-100, and the equipment is allocated to the integer 90 through conflict detection. The first plane IP address of the equipment to be allocated at site B is 21.11.15.90; the second plane IP address is 85.11.15.90.
Embodiment 3, the scheme for a local area network with mobile satellite communication device:
In the site information of the equipment to be allocated, the number of a plane of the site C of the secondary local area network is 50, a 61-type guard car is configured at the site C, the first byte of the IP address corresponding to the first plane is 20 (the number of the local area network can be fixed), and the first byte of the IP address of the second plane is 84; the second byte of the IP address corresponding to the first plane is 50 (second-stage site number), and the second byte of the IP address of the second plane is 61 (guard car number). The network number of one plane of the three-level lan site of site C is 22, and the 3 rd byte of the IP address corresponding to the first plane is 22 (lan third-level site number), and the 3 rd byte of the IP address corresponding to the second plane is 21 (mobile satellite communication number). The integer interval of the station address C corresponding to the equipment type of the equipment to be allocated is 26-30, and the integer allocated through conflict detection is 27. The first plane IP address of the data interface of the equipment to be detected of the station address C is 20.50.22.27; the second plane IP address is 84.61.21.27.
Embodiment 4, scheme for mobile satellite communication device only for local area network:
In the station address information of the equipment to be allocated, the second-level local area network station address D has no serial number corresponding to a plane, and the station address D is provided with a No. 62 sanitary car, so that the first byte of the IP address corresponding to the first plane is 20 (the serial number of the local area network can be fixed), and the first byte of the IP address of the second plane is 84; the second byte of the IP address corresponding to the first plane is 62 (guard car number), and the second byte of the IP address of the second plane is 62 (guard car number). The third byte of the IP address of the station D corresponding to the first plane is 21 (mobile satellite communication number), and the third byte of the IP address corresponding to the second plane is 21 (mobile satellite communication number). The integer interval of the station address D corresponding to the equipment type of the equipment to be allocated is 50-80, and the integer allocated through conflict detection is 58. The first plane IP address of the data interface of the equipment to be detected of the station address D is 20.62.21.58; the second plane IP address is 84.62.21.58.
As shown in fig. 5, an embodiment of the present invention further provides an apparatus for automatically allocating IP addresses, including:
The equipment information acquisition module is used for acquiring IP allocation related information of equipment to be allocated, wherein the IP allocation related information comprises station address information;
The three-stage station address number acquisition module is used for acquiring three-stage station address numbers corresponding to the station address information, wherein the three-stage station address numbers comprise a first-stage station address number, a second-stage station address number and a third-stage station address number;
The first byte allocation module is used for determining the first byte of the plane IP address and the first byte of the plane IP address according to the first-stage site address number and the plane number;
A second and third byte allocation module, configured to use the second-stage site number and the third-stage site number as a second byte and a third byte of the one-plane IP address and the two-plane IP address, respectively;
And the fourth byte allocation module is used for allocating a fourth byte which does not conflict with the existing equipment to the one-plane IP address and the two-plane IP address.
The embodiment of the invention also provides electronic equipment, which comprises: one or more processors; a storage device having one or more programs stored thereon; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement an IP address auto-assignment method as described above.
The electronic device may be a computer system, where the computer system may include a server and a terminal that communicates with the server in a server/client or server/browser mode, where the server provides a database creation, maintenance of an IP address atomic model and a service model, determination and maintenance of an IP address pool, and processing of receiving an IP address application request, and the client presents a UI interface for interaction with a user.
The embodiment of the invention also provides a computer readable medium, on which a computer program is stored, wherein the program is executed by a processor to implement an automatic IP address allocation method as described above.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present invention, which are described in more detail and are not to be construed as limiting the scope of the present invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of the invention should be assessed as that of the appended claims.
Claims (10)
1. The automatic IP address allocation method is characterized in that the IP address comprises a plane IP address and a plane IP address, and specifically comprises the following steps:
Acquiring IP allocation related information of equipment to be allocated, wherein the IP allocation related information comprises station address information;
acquiring a three-level site number corresponding to the site information, wherein the three-level site number comprises a first-level site number, a second-level site number and a third-level site number;
determining the first level IP address and the first byte of the two-level IP address according to the first level site number and the plane number;
Taking the second-stage site number as a second byte of the one-plane IP address and the two-plane IP address, and taking the third-stage site number as a third byte of the one-plane IP address and the two-plane IP address;
The flat IP address and the flat IP address are allocated a fourth byte that does not collide with an existing device.
2. The method for automatically allocating an IP address according to claim 1, wherein:
the step of determining the first byte of the plane IP address and the first byte of the plane IP address according to the first-stage site number and the plane number comprises the following steps:
obtaining the plane numbers of the first plane and the second plane;
obtaining a first byte of the IP address of the plane according to the plane number of the plane and the first-stage site number;
and obtaining the first byte of the two-plane IP address according to the plane number of the two planes and the first-stage site address number.
3. The method for automatically allocating an IP address according to claim 1, wherein:
when the site information corresponds to a local area network site:
the first-level site number is determined as a number that alone represents the local area network.
4. A method for automatically assigning IP addresses according to any one of claims 1 to 3, characterized in that:
when the site information corresponds to a local area network site:
If the local area network site is provided with a mobile satellite communication device, the second-stage site number used as the second byte of the planar IP address adopts one of a number representing mobile satellite communication and a corresponding number of the mobile satellite communication device, and the third-stage site number used as the third byte of the planar IP address adopts the other of the two.
5. The method for automatically assigning IP addresses of claim 4 wherein:
if the equipment to be allocated is connected to only the mobile satellite communication device, the second-stage site number used as the second byte of the one-plane IP address adopts one of a number representing mobile satellite communication and a corresponding number of the mobile satellite communication device, and the third-stage site number used as the third byte of the one-plane IP address adopts the other of the two.
6. The method for automatically allocating an IP address according to claim 1, wherein:
the IP allocation related information also comprises equipment type;
The allocating a fourth byte for the one-plane IP address and the two-plane IP address, which does not conflict with the existing device, includes the following steps:
Determining a preset integer interval corresponding to the device type;
And selecting an integer which does not conflict with the existing equipment in the integer interval as the one plane IP address and the fourth byte of the plane IP address.
7. The method for automatically allocating an IP address according to claim 1, wherein:
the obtaining the three-level site number corresponding to the site information comprises the following steps:
And carrying out corresponding number matching on the station address information in a preset three-stage station address library, and finding out a first-stage station address number, a second-stage station address number and a third-stage station address number corresponding to the station address information.
8. An IP address automatic allocation apparatus, wherein the IP address includes a plane IP address and a plane IP address, comprising:
The equipment information acquisition module is used for acquiring IP allocation related information of equipment to be allocated, wherein the IP allocation related information comprises station address information;
The three-stage station address number acquisition module is used for acquiring three-stage station address numbers corresponding to the station address information, wherein the three-stage station address numbers comprise a first-stage station address number, a second-stage station address number and a third-stage station address number;
The first byte allocation module is used for determining the first byte of the plane IP address and the first byte of the plane IP address according to the first-stage site address number and the plane number;
A second third byte allocation module, configured to use the second-stage address number as a second byte of the one-plane IP address and the two-plane IP address, and use the third-stage address number as a third byte of the one-plane IP address and the two-plane IP address;
And the fourth byte allocation module is used for allocating a fourth byte which does not conflict with the existing equipment to the one-plane IP address and the two-plane IP address.
9. An electronic device, comprising:
one or more processors;
A storage device having one or more programs stored thereon;
When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement an IP address auto-assignment method as claimed in any one of claims 1-7.
10. A computer readable medium, characterized in that a computer program is stored thereon, wherein the program, when executed by a processor, implements an IP address automatic allocation method according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111013781.4A CN113840017B (en) | 2021-08-31 | 2021-08-31 | IP address automatic allocation method, device, electronic equipment and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111013781.4A CN113840017B (en) | 2021-08-31 | 2021-08-31 | IP address automatic allocation method, device, electronic equipment and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113840017A CN113840017A (en) | 2021-12-24 |
CN113840017B true CN113840017B (en) | 2024-04-19 |
Family
ID=78961852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111013781.4A Active CN113840017B (en) | 2021-08-31 | 2021-08-31 | IP address automatic allocation method, device, electronic equipment and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113840017B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115037722A (en) * | 2022-06-06 | 2022-09-09 | 无锡锐格思信息技术有限公司 | Method and system for automatically configuring and managing network IP address |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20000010210A (en) * | 1998-07-31 | 2000-02-15 | 강병호 | Ip address management device for multimedia satellite communication system |
CN1504038A (en) * | 2001-05-22 | 2004-06-09 | Utilization of geographic location information in IP addressing | |
CN101764856A (en) * | 2009-12-17 | 2010-06-30 | 华为技术有限公司 | IP address allocation method and gateway |
CN102118456A (en) * | 2011-01-19 | 2011-07-06 | 中国科学技术大学 | Mixed addressing method for heaven and earth networks based on geographical position information |
CN104202441A (en) * | 2014-09-10 | 2014-12-10 | 北京国双科技有限公司 | IP (internal protocol) address data processing method and device |
CN104767840A (en) * | 2015-04-08 | 2015-07-08 | 北方信息控制集团有限公司 | IP address distribution method based on area codes and data center server |
JP6074829B1 (en) * | 2016-09-28 | 2017-02-08 | 学校法人福岡工業大学 | Program, apparatus and method for determining IP address based on location information |
KR101709874B1 (en) * | 2015-11-26 | 2017-02-23 | 한국산업기술대학교산학협력단 | Ip address allocation method and ip address allocation server for performing the method |
WO2017124308A1 (en) * | 2016-01-19 | 2017-07-27 | 华为技术有限公司 | Method and device for allocating ip address |
CN108881029A (en) * | 2018-06-07 | 2018-11-23 | 北京邮电大学 | The low-track satellite network addressing based on star decoupled and method for routing and system |
RU2679962C1 (en) * | 2018-02-20 | 2019-02-14 | Акционерное общество "Российская корпорация ракетно-космического приборостроения и информационных систем" (АО "Российские космические системы") | Method of assigning ip addresses in a personal satellite communication network on low-orbit satellites repeaters with zone registration of subscriber terminals |
CN110505321A (en) * | 2019-08-26 | 2019-11-26 | 北京泰和纬度网络技术有限公司 | It is a kind of for accessing the method and system of IP address |
CN111416880A (en) * | 2019-01-08 | 2020-07-14 | 阿里巴巴集团控股有限公司 | IP address addressing method and device, computer storage medium and electronic equipment |
-
2021
- 2021-08-31 CN CN202111013781.4A patent/CN113840017B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20000010210A (en) * | 1998-07-31 | 2000-02-15 | 강병호 | Ip address management device for multimedia satellite communication system |
CN1504038A (en) * | 2001-05-22 | 2004-06-09 | Utilization of geographic location information in IP addressing | |
CN101764856A (en) * | 2009-12-17 | 2010-06-30 | 华为技术有限公司 | IP address allocation method and gateway |
CN102118456A (en) * | 2011-01-19 | 2011-07-06 | 中国科学技术大学 | Mixed addressing method for heaven and earth networks based on geographical position information |
CN104202441A (en) * | 2014-09-10 | 2014-12-10 | 北京国双科技有限公司 | IP (internal protocol) address data processing method and device |
CN104767840A (en) * | 2015-04-08 | 2015-07-08 | 北方信息控制集团有限公司 | IP address distribution method based on area codes and data center server |
KR101709874B1 (en) * | 2015-11-26 | 2017-02-23 | 한국산업기술대학교산학협력단 | Ip address allocation method and ip address allocation server for performing the method |
WO2017124308A1 (en) * | 2016-01-19 | 2017-07-27 | 华为技术有限公司 | Method and device for allocating ip address |
JP6074829B1 (en) * | 2016-09-28 | 2017-02-08 | 学校法人福岡工業大学 | Program, apparatus and method for determining IP address based on location information |
RU2679962C1 (en) * | 2018-02-20 | 2019-02-14 | Акционерное общество "Российская корпорация ракетно-космического приборостроения и информационных систем" (АО "Российские космические системы") | Method of assigning ip addresses in a personal satellite communication network on low-orbit satellites repeaters with zone registration of subscriber terminals |
CN108881029A (en) * | 2018-06-07 | 2018-11-23 | 北京邮电大学 | The low-track satellite network addressing based on star decoupled and method for routing and system |
CN111416880A (en) * | 2019-01-08 | 2020-07-14 | 阿里巴巴集团控股有限公司 | IP address addressing method and device, computer storage medium and electronic equipment |
CN110505321A (en) * | 2019-08-26 | 2019-11-26 | 北京泰和纬度网络技术有限公司 | It is a kind of for accessing the method and system of IP address |
Non-Patent Citations (1)
Title |
---|
基于IPV4的IP子网划分;闫国栋;王鹏;;赤峰学院学报(自然科学版)(07);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113840017A (en) | 2021-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107679684B (en) | Policy allocation method, policy allocation device, storage medium and computer equipment | |
US8718030B2 (en) | Methods and apparatus for performing channel tree operations | |
CN110099142B (en) | IP address allocation method, device, equipment and storage medium | |
CN102388387A (en) | Access-control-policy template generating device, and system, method and program thereof | |
CN110519090B (en) | Method and system for allocating accelerator cards of FPGA cloud platform and related components | |
CN110267288B (en) | Mobile network complaint positioning method and device | |
GB2591973A (en) | Method and apparatus for mapping network slices onto network infrastructures with SLA guarantee | |
CN113840017B (en) | IP address automatic allocation method, device, electronic equipment and computer readable medium | |
CN111163186A (en) | ID generation method, device, equipment and storage medium | |
CN109547931B (en) | Server for determining location of mobile terminal | |
CN107704475B (en) | Multilayer distributed unstructured data storage method, query method and device | |
CN112650692A (en) | Heap memory allocation method, device and storage medium | |
CN112202935B (en) | NAT address pool management method and device | |
CN115794423B (en) | Intelligent machine room management method and device, electronic equipment and storage medium | |
CN111414528A (en) | Method and device for determining equipment identification, storage medium and electronic equipment | |
US11194836B2 (en) | Distributed data storage | |
CN112883239B (en) | Resource allocation method and device, computer equipment and storage medium | |
CN114710469B (en) | IPV4 address rationalization management method and device | |
CN112541834B (en) | Identifier processing method, device and system for hydropower industry digital object | |
CN114844791A (en) | Cloud service automatic management and distribution method and system based on big data and storage medium | |
CN113127207A (en) | Crowdsourcing task resource allocation method and device, electronic equipment and storage medium | |
CN112800470A (en) | Management method and system of differential data, server and client | |
CN110046343B (en) | Method for converting non-standard address into standard address and coding standard address | |
CN113377537A (en) | On-line multi-target resource allocation method combining bipartite graph matching method and constraint solver | |
CN109241774A (en) | A kind of difference private space decomposition method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |