CN103856573A - Method, device and system for configuring internet protocol address - Google Patents
Method, device and system for configuring internet protocol address Download PDFInfo
- Publication number
- CN103856573A CN103856573A CN201210513124.0A CN201210513124A CN103856573A CN 103856573 A CN103856573 A CN 103856573A CN 201210513124 A CN201210513124 A CN 201210513124A CN 103856573 A CN103856573 A CN 103856573A
- Authority
- CN
- China
- Prior art keywords
- address
- server
- bit
- attribute
- temporary
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000005540 biological transmission Effects 0.000 claims description 11
- 238000004891 communication Methods 0.000 abstract description 10
- 101100388291 Arabidopsis thaliana DTX49 gene Proteins 0.000 description 6
- 101100268840 Danio rerio chrna1 gene Proteins 0.000 description 6
- 101150065731 NIC1 gene Proteins 0.000 description 6
- PWHVEHULNLETOV-UHFFFAOYSA-N Nic-1 Natural products C12OC2C2(O)CC=CC(=O)C2(C)C(CCC2=C3)C1C2=CC=C3C(C)C1OC(O)C2(C)OC2(C)C1 PWHVEHULNLETOV-UHFFFAOYSA-N 0.000 description 6
- 101100388299 Arabidopsis thaliana DTX54 gene Proteins 0.000 description 4
- 101100294133 Arabidopsis thaliana NIC2 gene Proteins 0.000 description 4
- 230000000875 corresponding effect Effects 0.000 description 4
- GWWNCLHJCFNTJA-UHFFFAOYSA-N nicandrenone-2 Natural products C12OC2C2(O)CC=CC(=O)C2(C)C(CCC23C)C1C3CCC2(O)C(C)C1OC(O)C2(C)OC2(C)C1 GWWNCLHJCFNTJA-UHFFFAOYSA-N 0.000 description 4
- 101150012579 ADSL gene Proteins 0.000 description 2
- 102100020775 Adenylosuccinate lyase Human genes 0.000 description 2
- 108700040193 Adenylosuccinate lyases Proteins 0.000 description 2
- 238000000151 deposition Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a method, device and system for configuring an internet protocol address and relates to the technical field of computer information. By releasing an unused temporary IP address in time, the temporary IP address is saved, the node loading efficiency is improved, and successful communication is guaranteed. According to the method, a DHCP request message is sent to a DHCP server, and the DHCP message is used for requesting to acquire an IP address; the IP address and the attribute identification of the IP address which are sent by the DHCP server are received, and the IP attribute identification is used for identifying whether the IP address is a fixed IP address or a temporary IP address; if the IP address identified according to the attribute identification is a temporary IP address, the temporary IP address is released. The method, device and system are suitable for configuring IP addresses when a network interface card in a server is loaded.
Description
Technical field
The present invention relates to computer information technology field, relate in particular to collocation method, the Apparatus and system of a kind of Internet protocol IP address.
Background technology
In cloud computing system, need to dispose a large amount of servers, for example sometimes need thousands of station servers to dispose, wherein, server is disposed and comprised node installation operating system and business software etc.In the time that server is loaded, can load server by different network interface unit according to the difference in functionality of server.
For example, comprise n network interface unit on server, wherein n is more than or equal to 1, and each network interface unit is supported to load.After server 1 starts, the whole assigns the Internet protocol IP of the network interface unit address that need to start server 1.DHCP (Dynamic host configurationprotocol, DHCP) server is according to the function of different server, for the heterogeneous networks interface card in server distributes I P address, for example, network interface unit 1 is distributed fixed ip address, for network interface unit 2 is distributed temporary ip address.Dynamic Host Configuration Protocol server is identified the identity that is loaded server by fixed ip address, Dynamic Host Configuration Protocol server can communicate with the network interface unit that gets fixed ip address, if multiple network interfaces are stuck in the same network segment, server may be communicated by letter with Dynamic Host Configuration Protocol server by the network interface unit that gets temporary ip address, Dynamic Host Configuration Protocol server thinks that this identity that is loaded server is illegal, and the message of its transmission is not processed.
Therefore,, while adopting prior art by network interface unit, server to be loaded, need to, to multiple network interface unit distributing IP address, still can not identify the IP address class type of distribution, and then can not further process the IP address of distributing.
Summary of the invention
Embodiments of the invention provide collocation method, the Apparatus and system of a kind of Internet protocol IP address, can identify IP address class type when server is carried out to IP address configuration, and then IP address is processed.
First aspect, the invention provides the collocation method of a kind of Internet protocol IP address, comprising:
Server arranges protocol DHCP server to DynamicHost and sends DHCP request message, and described DHCP request message is for acquisition request IP address;
Described server receives the IP address of described Dynamic Host Configuration Protocol server transmission and the attribute-bit of described IP address; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.
In the possible embodiment of the first, in conjunction with first aspect, also comprise:
Described server, according to described attribute-bit, in the time determining that the described IP address receiving is temporary ip address, discharges described temporary ip address.
In the possible embodiment of the second, in conjunction with first aspect, also comprise: described server, according to described attribute-bit, in the time determining that the described IP address receiving is fixed ip address, is preserved described fixed ip address.
In conjunction with the first possibility implementation of first aspect, first aspect or the possible implementation of the second of first aspect, in the third possible implementation, it is fixed ip address or temporary ip address that described attribute-bit is used for identifying described IP address, specifically comprises:
When described attribute-bit comprises described server info, described IP address is fixed ip address;
When described attribute-bit does not comprise described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name.
Second aspect, the invention provides the collocation method of a kind of Internet protocol IP address, comprising:
The DHCP request message that reception server sends, described DHCP request message is for acquisition request IP address;
Send the attribute-bit of IP address and described IP address to described server; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.
In conjunction with second aspect, in the possible embodiment of the first, it is fixed ip address or temporary ip address that described attribute-bit is used for identifying described IP address, specifically comprises:
When described attribute-bit comprises described server info, described IP address is fixed ip address;
When described attribute-bit does not comprise described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name.
The third aspect, the invention provides a kind of server, comprising:
Transmitting element, sends DHCP request message for protocol DHCP server is set to DynamicHost, and described DHCP request message is for acquisition request IP address;
Receiving element, for receiving the IP address of described Dynamic Host Configuration Protocol server transmission and the attribute-bit of described IP address; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.
In conjunction with the third aspect, in the possible implementation of the first, also comprise processing unit, for according to described attribute-bit, in the time determining that the described IP address receiving is temporary ip address, discharge described temporary ip address.
In conjunction with the third aspect, in the possible embodiment of the second, also comprise processing unit, for according to described attribute-bit, in the time determining that the described IP address receiving is fixed ip address, preserve described fixed ip address.
In conjunction with the possible implementation of the second of the possible implementation of the first of the third aspect, the third aspect or the third aspect, in the third possible implementation, it is fixed ip address or temporary ip address that described attribute-bit is used for identifying described IP address, specifically comprises:
When described attribute-bit comprises described server info, described IP address is fixed ip address;
When described attribute-bit does not comprise described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name.
Fourth aspect, the embodiment of the present invention provides a kind of dynamic host configuration protocol DHCP server, comprising:
Receiving element, the DHCP request message sending for reception server, described DHCP request message is for acquisition request IP address;
Transmitting element, for sending the attribute-bit of IP address and described IP address to described server; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.
In conjunction with fourth aspect, in the possible implementation of the first, it is fixed ip address or temporary ip address that described attribute-bit is used for identifying described IP address, specifically comprises:
When described attribute-bit comprises described server info, described IP address is fixed ip address;
When described attribute-bit does not comprise described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name.
The 5th aspect, the embodiment of the present invention provides the configuration-system of a kind of Internet protocol IP address, comprises the above-mentioned third aspect arbitrary described server and the arbitrary described dynamic host configuration protocol DHCP server of above-mentioned fourth aspect.
The embodiment of the present invention provides a kind of IP of selection address configuration method, Apparatus and system, and server is by sending dhcp message to Dynamic Host Configuration Protocol server, and described dhcp message is for acquisition request IP address; Receive the IP address of described Dynamic Host Configuration Protocol server transmission and the attribute-bit of described IP address, the attribute-bit of IP address is used for representing that described IP address is fixed ip address or temporary ip address, thereby server can identify the type of IP address, thereby can further process.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of a kind of IP address configuration method that Fig. 1 provides for the embodiment of the present invention 1;
A kind of structure chart of a kind of server that Fig. 2 a provides for the embodiment of the present invention 2;
The another kind of structure chart of a kind of server that Fig. 2 b provides for the embodiment of the present invention 2;
The structure chart of a kind of dynamic host configuration protocol DHCP server that Fig. 3 provides for the embodiment of the present invention 3;
The structure chart of a kind of IP address configuration system that Fig. 4 provides for the embodiment of the present invention 4.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention provides a kind of IP address configuration method, and the executive agent of the method can be server, i.e. physical node in cloud computing system, also can be understood as physical server or virtual machine, and as shown in Figure 1, the method comprises:
In the present embodiment, server comprises multiple network interface unit, and in the time of startup of server, in server, multiple network interface unit can send dhcp message to Dynamic Host Configuration Protocol server successively, communicate to obtain Internet protocol (Internet Protocol, IP) address.DHCP is the procotol of a local area network (LAN), and user's datagram protocol (User Datagram Protocol, UDP) agreement work, for giving internal network or Internet service provider's automatic IP address allocation.UDP is a kind of connectionless transport layer protocol in open system interconnection (Open SystemInterconnect, OSI) reference model, and the simple unreliable information transfer service towards affairs is provided.
In the time of startup of server, need to be the network interface unit configuration of IP address on server, by sending DHCP request message to Dynamic Host Configuration Protocol server, for network interface unit is obtained IP address.The DHCP request message that Dynamic Host Configuration Protocol server reception server sends, send to server IP address can for fixed ip address, also can be for temporary ip address.Fixed ip address is the IP address that long-term allocation is used to a computer or the network equipment.In general, adopt the computer of Internet access via leased-line just to have fixing Internet IP address.Temporary ip address is to distribute to the IP address that a computer or the network equipment use temporarily, after this computer or the network equipment restart, again obtains an IP address.The computer of surfing the Net by modes such as Modem, ISDN, ADSL, wired broadband, community widebands, the IP address of at every turn surfing the Net assigned is not identical.Because IP address resource is of great value, most of user surfs the Net by temporary ip address.
It should be noted that can there be multiple network interface unit in each server, for example NIC1, NIC2 ... NICn, n is more than or equal to 1 natural number.Wherein, first network interface card can be NIC1.Each network interface unit in server sends dhcp message to obtain IP address to Dynamic Host Configuration Protocol server successively according to the numbering naturally of each network interface unit.Be that NIC1 sends dhcp message to Dynamic Host Configuration Protocol server, then NIC2 sends dhcp message to Dynamic Host Configuration Protocol server, by that analogy.
Server receives the IP address of Dynamic Host Configuration Protocol server transmission and the attribute-bit of IP address.The attribute-bit of IP address is used for representing the type of IP address, is fixed ip address or for temporary ip address.
In the time that the attribute-bit by IP address confirms that IP address is temporary ip address, server discharges this IP address, improves server loading efficiency thereby save IP address resource.For server, follow-up loading is useless to the temporary ip address that server receives, therefore the present invention discharges the temporary ip address obtaining, so that the network interface unit that Dynamic Host Configuration Protocol server can be other continues to use while distributing temporary ip address, thereby the resource of saving temporary ip address.Meanwhile, if fixed ip address and temporary ip address in the same network segment, while communicating with Dynamic Host Configuration Protocol server, Dynamic Host Configuration Protocol server can think that temporary ip address is illegal, causes communication failure.Therefore discharge temporary ip address, can guarantee the proper communication of server.
In the time that the attribute-bit by IP address confirms that IP address is fixed ip address, server is preserved this IP address, thereby uses this IP address to communicate.Server is kept at the fixed ip address of receiving, attribute-bit, corresponding network interface unit title in temporary folder, communicate by this network interface unit and Dynamic Host Configuration Protocol server so that server is follow-up, continue to carry out other operations, for example, business packet etc. is installed.
The attribute-bit of IP address can represent with described server info, as described in comprising when server info, described IP address is fixed ip address; While not comprising described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name, can also comprise the information such as the IP address, gateway, subnet mask of Dynamic Host Configuration Protocol server.This is a kind of exemplary illustration, and attribute-bit also can use " 0 " and " 1 " to represent, if attribute-bit value is " 0 ", represents that this IP address is fixed ip address, and attribute-bit value is that " 1 " is temporary ip address.Attribute-bit is not done to concrete restriction at this, as long as can distinguish IP address class type.
The embodiment of the present invention provides a kind of IP collocation method of address, by Dynamic Host Configuration Protocol server, the IP address use attribute mark of distributing is distinguished, to identify fixing IP and temporary ip address; And according to IP address class type difference, fixed ip address is preserved, temporary ip address is discharged, make to save temporary ip address resource, improve server loading efficiency, prevent that the multiple IP of multiple same servers address from causing communication failure in the same network segment simultaneously.
It should be noted that, after other network interface unit in server complete and obtain temporary ip address and discharge the temporary ip address that obtains, the network interface unit that has fixed ip address is communicated by letter with Dynamic Host Configuration Protocol server by server.Dynamic Host Configuration Protocol server verifies that the fixed ip address identity of this network interface unit passes through, and generally Dynamic Host Configuration Protocol server provides the module of authentication, can carry out identification to the server of accessing it.The server passing through for identification can allow to continue communication.Dynamic Host Configuration Protocol server returns to server, and next step needs instruction to be processed.These instructions are self-defining instructions, and such as some business packet etc. is installed, corresponding action is done in the instruction that server returns according to Dynamic Host Configuration Protocol server.
It should be noted that, in the present invention, provide IP address configuration method to be applicable to physical server, be also applicable to virtual server, or physical server and virtual server the situation of depositing.For example, in the time of virtual network interface card distributing IP address in virtual server, the virtual machine of virtual server 1 for creating on physical server, in virtual server 1, there is the first virtual network interface card and the second virtual network interface card, the method that can describe referring to the present embodiment the operation of the first virtual network interface card and the second virtual network interface card configuration of IP address, does not repeat one by one at this.It should be noted that, first need, by each network interface unit in physical server, physical server is entered to configuration of IP address, complete the system loads of physical server, again to the virtual network interface card distributing IP address in virtual server, and load virtual server by virtual network interface card, now, the information between transfer of virtual server and Dynamic Host Configuration Protocol server that act as of the network interface unit in physical server.Virtual server can for example, connect by the form of bridge and physical network interface card (, first network interface card or second network interface card), finally communicates by physical network interface card and network.
Embodiment 2
The embodiment of the present invention provides a kind of server, also can be understood as physical server or virtual server, as shown in Figure 2 a, comprising: transmitting element 201, receiving element 202
Transmitting element 201, sends DHCP request message for protocol DHCP server is set to DynamicHost, and described DHCP request message is for acquisition request IP address;
Receiving element 202, for receiving the IP address of described Dynamic Host Configuration Protocol server transmission and the attribute-bit of described IP address; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.
In the present embodiment, server comprises multiple network interface unit, and in the time of startup of server, in server, multiple network interface unit can send dhcp message to Dynamic Host Configuration Protocol server successively, communicate to obtain Internet protocol (Internet Protocol, IP) address.DHCP is the procotol of a local area network (LAN), and user's datagram protocol (User Datagram Protocol, UDP) agreement work, for giving internal network or Internet service provider's automatic IP address allocation.UDP is a kind of connectionless transport layer protocol in open system interconnection (Open SystemInterconnect, OSI) reference model, and the simple unreliable information transfer service towards affairs is provided.
In the time of startup of server, need to be the network interface unit configuration of IP address on server, send DHCP request message by transmitting element 201 to Dynamic Host Configuration Protocol server, for network interface unit is obtained IP address.The DHCP request message that Dynamic Host Configuration Protocol server reception server sends, send to server IP address can for fixed ip address, also can be for temporary ip address.Fixed ip address is the IP address that long-term allocation is used to a computer or the network equipment.In general, adopt the computer of Internet access via leased-line just to have fixing internet ip address.Temporary ip address is to distribute to the IP address that a computer or the network equipment use temporarily, after this computer or the network equipment restart, again obtains an IP address.The computer of surfing the Net by modes such as Modem, ISDN, ADSL, wired broadband, community widebands, the IP address of at every turn surfing the Net assigned is not identical.Because IP address resource is of great value, most of user surfs the Net by temporary ip address.
It should be noted that can there be multiple network interface unit in each server, for example NIC1, NIC2 ... NICn, n is more than or equal to 1 natural number.Wherein, first network interface card can be NIC1.The transmitting element 201 of server sends dhcp message to obtain IP address to Dynamic Host Configuration Protocol server successively according to the numbering naturally of each network interface unit.Be that transmitting element 201 sends dhcp message for NIC1 to Dynamic Host Configuration Protocol server, then transmitting element 201 sends dhcp message for NIC2 to Dynamic Host Configuration Protocol server, by that analogy.
Receiving element 202 receives the IP address of Dynamic Host Configuration Protocol server transmission and the attribute-bit of IP address.The attribute-bit of IP address is used for representing the type of IP address, is fixed ip address or for temporary ip address.
As shown in Figure 2 b, the embodiment of the present invention also comprises processing unit 203, and in the time that the attribute-bit by IP address confirms that IP address is temporary ip address, processing unit 203 discharges this IP address.For server, follow-up loading is useless to the temporary ip address that server receives, therefore the present invention discharges the temporary ip address obtaining, so that the network interface unit that Dynamic Host Configuration Protocol server can be other continues to use while distributing temporary ip address, thereby the resource of saving temporary ip address.Meanwhile, if fixed ip address and temporary ip address in the same network segment, while communicating with Dynamic Host Configuration Protocol server, Dynamic Host Configuration Protocol server can think that temporary ip address is illegal, causes communication failure.Therefore discharge temporary ip address, can guarantee the proper communication of server.
In the time that the attribute-bit by IP address confirms that IP address is fixed ip address, processing unit 203 is preserved this IP address, thereby uses this IP address to communicate.Server is kept at the fixed ip address of receiving, attribute-bit, corresponding network interface unit title in temporary folder, communicate by this network interface unit and Dynamic Host Configuration Protocol server so that server is follow-up, continue to carry out other operations, for example, business packet etc. is installed.
The attribute-bit of IP address can represent with described server info, as described in comprising when server info, described IP address is fixed ip address; While not comprising described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name, can also comprise the information such as the IP address, gateway, subnet mask of Dynamic Host Configuration Protocol server.This is a kind of exemplary illustration, and attribute-bit also can use " 0 " and " 1 " to represent, if attribute-bit value is " 0 ", represents that this I P address is fixed ip address, and attribute-bit value is that " 1 " is temporary ip address.Attribute-bit is not done to concrete restriction at this, as long as can distinguish IP address class type.
The embodiment of the present invention provides a kind of server, by Dynamic Host Configuration Protocol server, the IP address use attribute mark of distributing is distinguished, to identify fixing IP and temporary ip address; And according to IP address class type difference, fixed ip address is preserved, temporary ip address is discharged, make to save temporary ip address resource, improve server loading efficiency, prevent that the multiple IP of multiple same servers address from causing communication failure in the same network segment simultaneously.
It should be noted that, after other network interface unit in server complete and obtain temporary ip address and discharge the temporary ip address that obtains, the network interface unit that has fixed ip address is communicated by letter with Dynamic Host Configuration Protocol server by server.Dynamic Host Configuration Protocol server verifies that the fixed ip address identity of this network interface unit passes through, and generally Dynamic Host Configuration Protocol server provides the module of authentication, can carry out identification to the server of accessing it.The server passing through for identification can allow to continue communication.Dynamic Host Configuration Protocol server returns to server, and next step needs instruction to be processed.These instructions are self-defining instructions, and such as some business packet etc. is installed, corresponding action is done in the instruction that server returns according to Dynamic Host Configuration Protocol server.
It should be noted that, in the present invention, provide server to be applicable to physical server, be also applicable to virtual server, or physical server and virtual server the situation of depositing.For example, in the time of virtual network interface card distributing IP address in virtual server, the virtual machine of virtual server 1 for creating on physical server, in virtual server 1, there is the first virtual network interface card and the second virtual network interface card, the method that can describe referring to the present embodiment the operation of the first virtual network interface card and the second virtual network interface card configuration of IP address, does not repeat one by one at this.It should be noted that, first need, by each network interface unit in physical server, physical server is entered to configuration of IP address, complete the system loads of physical server, again to the virtual network interface card distributing IP address in virtual server, and load virtual server by virtual network interface card, now, the information between transfer of virtual server and Dynamic Host Configuration Protocol server that act as of the network interface unit in physical server.Virtual server can for example, connect by the form of bridge and physical network interface card (, first network interface card or second network interface card), finally communicates by physical network interface card and network.
Embodiment 3
The invention provides a kind of dynamic host configuration protocol DHCP server, as shown in Figure 3, comprise receiving element 301 and transmitting element 302; Wherein, receiving element 301, for receiving element, the DHCP request message sending for reception server, described DHCP request message is for acquisition request IP address;
Transmitting element 302, for sending the attribute-bit of IP address and described IP address to described server; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.Wherein, it is fixed ip address or temporary ip address that described attribute-bit is used for identifying described IP address, specifically comprises:
When described attribute-bit comprises described server info, described IP address is fixed ip address; When described attribute-bit does not comprise described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name.Can also comprise the information such as the IP address, gateway, subnet mask of Dynamic Host Configuration Protocol server.This is a kind of exemplary illustration, and attribute-bit also can use " 0 " and " 1 " to represent, if attribute-bit value is " 0 ", represents that this IP address is fixed ip address, and attribute-bit value is that " 1 " is temporary ip address.Attribute-bit is not done to concrete restriction at this, as long as can distinguish IP address class type.
The Dynamic Host Configuration Protocol server that the embodiment of the present invention provides, the DHCP request message sending according to server, to the attribute-bit of server transmission IP address and IP address; Wherein attribute-bit is used for representing the type of IP address, thereby makes server can distinguish according to attribute-bit the type of IP address.
Embodiment 4
The embodiment of the present invention provides a kind of IP address configuration system, as shown in Figure 4, comprises the dynamic host configuration protocol DHCP server 2 shown in server 1 and the Fig. 3 as shown in Fig. 2 a or Fig. 2 b.Server 1 sends dynamic host configuration protocol DHCP request message to Dynamic Host Configuration Protocol server 2; Described DHCP request message is for acquisition request IP address; The DHCP request message that Dynamic Host Configuration Protocol server 2 reception servers 1 send; Dynamic Host Configuration Protocol server 2 sends the attribute-bit of IP address and described IP address to described server 1; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.When described attribute-bit comprises described server 1 information, described IP address is fixed ip address; When described attribute-bit does not comprise described server 1 information, described I P address is temporary ip address; Wherein, described server 1 packets of information is containing described server 1 title.Can also comprise the information such as the IP address, gateway, subnet mask of Dynamic Host Configuration Protocol server.This is a kind of exemplary illustration, and attribute-bit also can use " 0 " and " 1 " to represent, if attribute-bit value is " 0 ", represents that this IP address is fixed ip address, and attribute-bit value is that " 1 " is temporary ip address.Attribute-bit is not done to concrete restriction at this, as long as can distinguish IP address class type.Distinguish the type of IP address according to attribute-bit, in the time that IP address is fixed ip address, server 2 is preserved this IP address; In the time that IP address is temporary ip address, discharge this IP address.
The detailed description of the system that the embodiment of the present invention provides can be referring to the embodiment of the present invention 1 and embodiment 2.The server 1 and the Dynamic Host Configuration Protocol server 2 that in the embodiment of the present invention, provide are specifically as follows common computer, work station or private server etc., the present invention does not do concrete restriction, all there is memory and at least one central processing unit, described memory is connected by bus with described at least one central processing unit, memory stores computer instruction, described at least one central processing unit is for the computer instruction of execute store, also comprises general external interface etc. simultaneously and realize some necessary assemblies of server capability.Wherein, the algorithm of the computer instruction of storing in memory can, with reference to the description of the embodiment of the present invention 1, not repeat them here.
The embodiment of the present invention provides a kind of IP configuration-system of address, by Dynamic Host Configuration Protocol server, the IP address use attribute mark of distributing is distinguished, to identify fixing IP and temporary ip address; And according to IP address class type difference, fixed ip address is preserved, temporary ip address is discharged, make to save temporary ip address resource, improve server loading efficiency, prevent that the multiple IP of multiple same servers address from causing communication failure in the same network segment simultaneously.
It should be noted that, device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.Those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, can certainly comprise that application-specific integrated circuit (ASIC), dedicated cpu, private memory, special components and parts etc. realize by specialized hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computer, USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in the present invention each embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually referring to, what each embodiment stressed is and the difference of other embodiment.Especially,, for device and system embodiment, because it is substantially similar in appearance to embodiment of the method, so describe fairly simplely, relevant part is referring to the part explanation of embodiment of the method.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.
Claims (13)
1. a collocation method for Internet protocol IP address, is characterized in that, comprising:
Server arranges protocol DHCP server to DynamicHost and sends DHCP request message, and described DHCP request message is for acquisition request IP address;
Described server receives the IP address of described Dynamic Host Configuration Protocol server transmission and the attribute-bit of described IP address; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.
2. the method for claim 1, is characterized in that, also comprises:
Described server, according to described attribute-bit, in the time determining that the described IP address receiving is temporary ip address, discharges described temporary ip address.
3. the method for claim 1, is characterized in that, also comprises: described server, according to described attribute-bit, in the time determining that the described IP address receiving is fixed ip address, is preserved described fixed ip address.
4. according to the arbitrary described method of claims 1 to 3, it is characterized in that, it is fixed ip address or temporary ip address that described attribute-bit is used for identifying described IP address, specifically comprises:
When described attribute-bit comprises described server info, described IP address is fixed ip address;
When described attribute-bit does not comprise described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name.
5. a collocation method for Internet protocol IP address, is characterized in that, comprising:
The DHCP request message that reception server sends, described DHCP request message is for acquisition request IP address;
Send the attribute-bit of IP address and described IP address to described server; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.
6. method according to claim 5, is characterized in that, it is fixed ip address or temporary ip address that described attribute-bit is used for identifying described IP address, specifically comprises:
When described attribute-bit comprises described server info, described IP address is fixed ip address;
When described attribute-bit does not comprise described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name.
7. a server, is characterized in that, comprising:
Transmitting element, sends DHCP request message for protocol DHCP server is set to DynamicHost, and described DHCP request message is for acquisition request IP address;
Receiving element, for receiving the IP address of described Dynamic Host Configuration Protocol server transmission and the attribute-bit of described IP address; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.
8. server as claimed in claim 7, is characterized in that, also comprises processing unit, for according to described attribute-bit, in the time determining that the described IP address receiving is temporary ip address, discharges described temporary ip address.
9. server as claimed in claim 7, is characterized in that, also comprises processing unit, for according to described attribute-bit, in the time determining that the described IP address receiving is fixed ip address, preserves described fixed ip address.
10. the server as described in as arbitrary in claim 7 to 9, is characterized in that, it is fixed ip address or temporary ip address that described attribute-bit is used for identifying described IP address, specifically comprises:
When described attribute-bit comprises described server info, described IP address is fixed ip address;
When described attribute-bit does not comprise described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name.
11. 1 kinds of dynamic host configuration protocol DHCP servers, is characterized in that, comprising:
Receiving element, the DHCP request message sending for reception server, described DHCP request message is for acquisition request IP address;
Transmitting element, for sending the attribute-bit of IP address and described IP address to described server; It is fixed ip address or temporary ip address that wherein said attribute-bit is used for identifying described IP address.
12. servers as claimed in claim 11, is characterized in that, it is fixed ip address or temporary ip address that described attribute-bit is used for identifying described IP address, specifically comprises:
When described attribute-bit comprises described server info, described IP address is fixed ip address;
When described attribute-bit does not comprise described server info, described IP address is temporary ip address; Wherein, described server info comprises described server name.
The configuration-system of 13. 1 kinds of Internet protocol IP addresses, is characterized in that, comprises server as described in as arbitrary in claim 7 to 10 and dynamic host configuration protocol DHCP server as described in claim 11 or 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210513124.0A CN103856573B (en) | 2012-12-04 | 2012-12-04 | A kind of collocation method of internet protocol address, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210513124.0A CN103856573B (en) | 2012-12-04 | 2012-12-04 | A kind of collocation method of internet protocol address, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103856573A true CN103856573A (en) | 2014-06-11 |
CN103856573B CN103856573B (en) | 2017-06-13 |
Family
ID=50863777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210513124.0A Active CN103856573B (en) | 2012-12-04 | 2012-12-04 | A kind of collocation method of internet protocol address, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103856573B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107579833A (en) * | 2016-07-05 | 2018-01-12 | 中兴通讯股份有限公司 | A kind of method and device for individual line subscriber speed-raising |
WO2018023499A1 (en) * | 2016-08-03 | 2018-02-08 | 华为技术有限公司 | Network interface card, computer device and data packet processing method |
US10623310B2 (en) | 2016-08-03 | 2020-04-14 | Huawei Technologies Co., Ltd. | Network interface card, computing device, and data packet processing method |
CN114500471A (en) * | 2022-03-28 | 2022-05-13 | 北京天维信通科技有限公司 | IP address list analysis and maintenance method, system, intelligent terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1787539A (en) * | 2005-12-01 | 2006-06-14 | 中国科学院计算技术研究所 | Method for distribution of IP address in wideband wireless city area network |
CN101917398A (en) * | 2010-06-28 | 2010-12-15 | 北京星网锐捷网络技术有限公司 | Method and equipment for controlling client access authority |
US7869372B2 (en) * | 2003-09-26 | 2011-01-11 | Ixia | Method and systems for verifying a connection from a gateway to a network |
CN102026160A (en) * | 2009-09-21 | 2011-04-20 | 中兴通讯股份有限公司 | Method and system for security access to mobile backhaul network |
-
2012
- 2012-12-04 CN CN201210513124.0A patent/CN103856573B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7869372B2 (en) * | 2003-09-26 | 2011-01-11 | Ixia | Method and systems for verifying a connection from a gateway to a network |
CN1787539A (en) * | 2005-12-01 | 2006-06-14 | 中国科学院计算技术研究所 | Method for distribution of IP address in wideband wireless city area network |
CN102026160A (en) * | 2009-09-21 | 2011-04-20 | 中兴通讯股份有限公司 | Method and system for security access to mobile backhaul network |
CN101917398A (en) * | 2010-06-28 | 2010-12-15 | 北京星网锐捷网络技术有限公司 | Method and equipment for controlling client access authority |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107579833A (en) * | 2016-07-05 | 2018-01-12 | 中兴通讯股份有限公司 | A kind of method and device for individual line subscriber speed-raising |
CN107579833B (en) * | 2016-07-05 | 2022-03-18 | 中兴通讯股份有限公司 | Method and device for speeding up private line user |
WO2018023499A1 (en) * | 2016-08-03 | 2018-02-08 | 华为技术有限公司 | Network interface card, computer device and data packet processing method |
CN109074330A (en) * | 2016-08-03 | 2018-12-21 | 华为技术有限公司 | Network interface card calculates equipment and data package processing method |
US10581729B2 (en) | 2016-08-03 | 2020-03-03 | Huawei Technologies Co., Ltd. | Network interface card, computing device, and data packet processing method |
US10623310B2 (en) | 2016-08-03 | 2020-04-14 | Huawei Technologies Co., Ltd. | Network interface card, computing device, and data packet processing method |
CN109074330B (en) * | 2016-08-03 | 2020-12-08 | 华为技术有限公司 | Network interface card, computing device, and data packet processing method |
CN114500471A (en) * | 2022-03-28 | 2022-05-13 | 北京天维信通科技有限公司 | IP address list analysis and maintenance method, system, intelligent terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103856573B (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11265368B2 (en) | Load balancing method, apparatus, and system | |
US8631100B2 (en) | Automatic assignment of hardware addresses within computer networks | |
US8289968B1 (en) | Distributed network address translation in computer networks | |
CN111934918A (en) | Network isolation method and device for container instances in same container cluster | |
EP3664420B1 (en) | Managing address spaces across network elements | |
US10361970B2 (en) | Automated instantiation of wireless virtual private networks | |
US20130024553A1 (en) | Location independent dynamic IP address assignment | |
EP2169877A1 (en) | Processing method and device for qinq termination configuration | |
CN110213391B (en) | Method and device for configuring network protocol address | |
CN101478429A (en) | Method, system and equipment for version upgrade | |
CN102027732A (en) | Providing access over an ip network to a server application program | |
CN103856573A (en) | Method, device and system for configuring internet protocol address | |
CN106060131B (en) | A kind of method and apparatus for distributing dns server | |
CN102726025A (en) | Installation method and relative devices of business packet | |
CN101577723B (en) | Method for preventing neighbor discovery protocol message attack and device | |
US9246804B1 (en) | Network routing | |
WO2016202016A1 (en) | Device management method, apparatus and system | |
CN103338275A (en) | Port distribution method and apparatus | |
US9258277B1 (en) | Decentralized packet dispatch in network devices | |
CN113014680B (en) | Broadband access method, device, equipment and storage medium | |
JP2019519165A (en) | Network equipment stacking | |
CN117255018A (en) | Network configuration method and device for bare metal instance and computer equipment | |
US20060015595A1 (en) | Method and apparatus for obtaining addresses for multiple interfaces in a device | |
CN109819027A (en) | A kind of server system remote start-up method, device, equipment and storage medium | |
CN110247778A (en) | Installation method of operating system, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220214 Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province Patentee after: Huawei Cloud Computing Technologies Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |