CN103856573B - A kind of collocation method of internet protocol address, apparatus and system - Google Patents

A kind of collocation method of internet protocol address, apparatus and system Download PDF

Info

Publication number
CN103856573B
CN103856573B CN201210513124.0A CN201210513124A CN103856573B CN 103856573 B CN103856573 B CN 103856573B CN 201210513124 A CN201210513124 A CN 201210513124A CN 103856573 B CN103856573 B CN 103856573B
Authority
CN
China
Prior art keywords
address
server
temporary
attribute
bit
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
Application number
CN201210513124.0A
Other languages
Chinese (zh)
Other versions
CN103856573A (en
Inventor
李涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210513124.0A priority Critical patent/CN103856573B/en
Publication of CN103856573A publication Critical patent/CN103856573A/en
Application granted granted Critical
Publication of CN103856573B publication Critical patent/CN103856573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention discloses a kind of collocation method of IP address, apparatus and system, is related to computer information technology field, can save temporary ip address by discharging no temporary ip address in time, improves node loading efficiency, and ensure to communicate successfully.The embodiment of the present invention sends DHCP request message by Dynamic Host Configuration Protocol server, and the dhcp message is used for acquisition request IP address;The IP address of the Dynamic Host Configuration Protocol server transmission and the attribute-bit of IP address are received, it is fixed ip address or temporary ip address that the IP attribute-bits are used for the IP address;The IP address type recognized according to attribute-bit is temporary ip address, by temporary ip address release.The embodiment of the present invention is suitable to carry out the NIC in server used when configuring IP address in loading procedure.

Description

A kind of collocation method of internet protocol address, apparatus and system
Technical field
The present invention relates to computer information technology field, more particularly to a kind of collocation method of internet protocol address, Apparatus and system.
Background technology
, it is necessary to dispose substantial amounts of server in cloud computing system, for example, sometimes need to service thousands of Device is disposed, wherein, deployment is carried out to server including to node installation operating system and business software etc..When to server When being loaded, server can be loaded by different NICs according to the difference in functionality of server.
For example, including n NIC on server, wherein n is more than or equal to 1, and each NIC is supported to add Carry., it is necessary to all distribute internet protocol address to the NIC that server 1 starts after server 1 starts.Dynamic Host configuration(Dynamic host configurationprotocol,DHCP)Work(of the server according to different server Can, it is the heterogeneous networks interface card distribution I P addresses in server, for example, the distribution fixed ip address of NIC 1, is net Network interface card 2 distributes temporary ip address.Dynamic Host Configuration Protocol server recognizes the identity for being loaded server, DHCP by fixed ip address Server can be communicated with the NIC for getting fixed ip address, if multiple network interfaces are stuck in same net In section, then server may be communicated by getting the NIC of temporary ip address with Dynamic Host Configuration Protocol server, then DHCP service Device thinks that the identity for being loaded server is illegal, and the message that it sends is not processed.
Therefore, it is necessary to multiple network interfaces when being loaded to server by NIC using prior art Card distribution IP address, but the IP address type of distribution can not be recognized, and then the IP address distributed can not further be processed.
The content of the invention
Embodiments of the invention provide a kind of collocation method of internet protocol address, apparatus and system, can pass through Server is carried out to recognize IP address type when IP address is configured, and then IP address is processed.
In a first aspect, the present invention provides a kind of collocation method of internet protocol address, including:
Server sets protocol DHCP server and sends DHCP request message to DynamicHost, and the DHCP request message is used In acquisition request IP address;
The server receives the IP address of the Dynamic Host Configuration Protocol server transmission and the attribute-bit of the IP address;Wherein institute Attribute-bit is stated for identifying the IP address for fixed ip address or temporary ip address.
In the first possible embodiment, with reference in a first aspect, also including:
The server is according to the attribute-bit, when it is determined that the IP address for receiving is temporary ip address, release The temporary ip address.
In second possible embodiment, with reference in a first aspect, also including:The server is according to the attribute mark Know, when it is determined that the IP address for receiving is fixed ip address, preserve the fixed ip address.
With reference to second possible realization of the first possible implementation or first aspect of first aspect, first aspect Mode, in the third possible implementation, the attribute-bit be used to identify the IP address for fixed ip address or Temporary ip address, specifically includes:
When the attribute-bit includes the server info, the IP address is fixed ip address;
When the attribute-bit does not include the server info, the IP address is temporary ip address;Wherein, the clothes Business device packet contains the server name.
Second aspect, the present invention provides a kind of collocation method of internet protocol address, including:
The DHCP request message that the reception server sends, the DHCP request message is used for acquisition request IP address;
The attribute-bit of IP address and the IP address is sent to the server;Wherein described attribute-bit is used to identify The IP address is fixed ip address or temporary ip address.
With reference to second aspect, in the first possible embodiment, the attribute-bit is for identifying the IP address Fixed ip address or temporary ip address, specifically include:
When the attribute-bit includes the server info, the IP address is fixed ip address;
When the attribute-bit does not include the server info, the IP address is temporary ip address;Wherein, the clothes Business device packet contains the server name.
The third aspect, the present invention provides a kind of server, including:
Transmitting element, DHCP request message is sent for setting protocol DHCP server to DynamicHost, and the DHCP please Message is sought for acquisition request IP address;
Receiving unit, for receiving the IP address of the Dynamic Host Configuration Protocol server transmission and the attribute-bit of the IP address;Its Described in attribute-bit be used to identify the IP address for fixed ip address or temporary ip address.
With reference to the third aspect, in the first possible implementation, also including processing unit, for according to the attribute Mark, when it is determined that the IP address for receiving is temporary ip address, discharges the temporary ip address.
With reference to the third aspect, in second possible embodiment, also including processing unit, for according to the attribute mark Know, when it is determined that the IP address for receiving is fixed ip address, preserve the fixed ip address.
With reference to the first possible implementation or second possible reality of the third aspect of the third aspect, the third aspect Existing mode, in the third possible implementation, the attribute-bit be used to identifying the IP address for fixed ip address or Person's temporary ip address, specifically includes:
When the attribute-bit includes the server info, the IP address is fixed ip address;
When the attribute-bit does not include the server info, the IP address is temporary ip address;Wherein, the clothes Business device packet contains the server name.
Fourth aspect, the embodiment of the invention provides a kind of dynamic host configuration protocol DHCP server, including:
Receiving unit, for the DHCP request message that the reception server sends, the DHCP request message is obtained for request Take IP address;
Transmitting element, the attribute-bit for sending IP address and the IP address to the server;Wherein described category Property identify for identifying the IP address for fixed ip address or temporary ip address.
With reference to fourth aspect, in the first possible implementation, the attribute-bit is used to identify the IP address It is fixed ip address or temporary ip address, specifically includes:
When the attribute-bit includes the server info, the IP address is fixed ip address;
When the attribute-bit does not include the server info, the IP address is temporary ip address;Wherein, the clothes Business device packet contains the server name.
5th aspect, the embodiment of the invention provides a kind of configuration system of internet protocol address, including above-mentioned the Three aspects any described server and any dynamic host configuration protocol DHCP server of above-mentioned fourth aspect.
The embodiment of the present invention provides a kind of selection IP address collocation method, apparatus and system, and server takes by DHCP Business device sends dhcp message, and the dhcp message is used for acquisition request IP address;Receive the IP ground that the Dynamic Host Configuration Protocol server sends Location and the attribute-bit of the IP address, the attribute-bit of IP address are used to represent the IP address for fixed ip address or face When IP address so that server can identify the type of IP address, such that it is able to further treatment.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also Other accompanying drawings are obtained with according to these accompanying drawings.
Fig. 1 is a kind of flow chart of IP address collocation method that the embodiment of the present invention 1 is provided;
Fig. 2 a are a kind of a kind of structure chart of server that the embodiment of the present invention 2 is provided;
Fig. 2 b are a kind of another structure chart of server that the embodiment of the present invention 2 is provided;
Fig. 3 is a kind of structure chart of dynamic host configuration protocol DHCP server that the embodiment of the present invention 3 is provided;
Fig. 4 is the structure chart that a kind of IP address that the embodiment of the present invention 4 is provided configures system.
Specific 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 carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention provides a kind of IP address collocation method, and the executive agent of the method can be server, that is, exist Physical node in cloud computing system, it is understood that be physical server or virtual machine, as shown in figure 1, the method includes:
Step 101, server sets agreement to DynamicHost(Dynamic host configurationprotocol, DHCP)Server sends DHCP request message, and the DHCP request message is used for acquisition request IP address;
In the present embodiment, server includes multiple NICs, when the server starts, multiple nets in server Network interface card can send dhcp message to Dynamic Host Configuration Protocol server successively, to obtain Internet protocol(Internet Protocol, IP) Address is communicated.DHCP is a procotol for LAN, uses UDP(User Datagram Protocol, UDP)Agreement works, for internal network or Internet service provider's automatic IP address allocation.UDP is open Formula system is interconnected(Open SystemInterconnect, OSI)A kind of connectionless transport layer protocol in reference model, there is provided Towards the simple unreliable information transmission service of affairs.
In startup of server, it is necessary to be the NIC configuration IP address on server, by Dynamic Host Configuration Protocol server DHCP request message is sent, is that NIC obtains IP address.The DHCP request that Dynamic Host Configuration Protocol server the reception server sends disappears Breath, the IP address for being sent to server can be fixed ip address, can also be temporary ip address.Fixed ip address is long-term point The IP address that one computer of dispensing or the network equipment are used.In general, just possess solid using the computer of Internet access via leased-line Fixed Internet IP address.Temporary ip address is to be allocated temporarily to the IP address that a computer or the network equipment are used, After this computer or the network equipment restart, then an IP address is reacquired.I.e. by Modem, ISDN, ADSL, The computer that the modes such as wired broadband, cell wideband are surfed the Net, assigned IP address of surfing the Net every time is different from.Because IP ground Location resource is of great value, and most of user is surfed the Net by temporary ip address.
It should be noted that can have multiple NICs in each server, such as NIC1, NIC2 ... NICn, n are Natural number more than or equal to 1.Wherein, first network interface card can be NIC1.Each NIC in server according to The natural numbering of each NIC sends dhcp message to obtain IP address to Dynamic Host Configuration Protocol server successively.That is NIC1 takes to DHCP Business device sends dhcp message, and then NIC2 sends dhcp message to Dynamic Host Configuration Protocol server, by that analogy.
Step 102, the server receives the IP address of the Dynamic Host Configuration Protocol server transmission and the attribute mark of the IP address Know;Wherein described attribute-bit is used to identify the IP address for fixed ip address or temporary ip address.
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 To represent the type of IP address, as fixed ip address or be temporary ip address.
When IP address is confirmed for temporary ip address by the attribute-bit of IP address, server discharges the IP address, from And save IP address resource and improve server loading efficiency.The temporary ip address that server is received is follow-up for server to be added Load is useless, therefore the temporary ip address release that the present invention will be obtained, so that Dynamic Host Configuration Protocol server can be other nets It is continuing with during network interface card distribution temporary ip address, so as to save the resource of temporary ip address.Meanwhile, if fixed ip address The same network segment is in temporary ip address, when being communicated with Dynamic Host Configuration Protocol server, Dynamic Host Configuration Protocol server will be considered that temporary ip address not It is legal, cause communication failure.Therefore temporary ip address is discharged, it is ensured that the proper communication of server.
When IP address is confirmed for fixed ip address by the attribute-bit of IP address, server preserves the IP address, from And communicated using the IP address.Fixed ip address, attribute-bit, corresponding NIC title that server will be received It is stored in temporary folder, so that server is communicated subsequently through the NIC with Dynamic Host Configuration Protocol server, continues to hold Other are operated row, for example, install business packet etc..
The attribute-bit of IP address can be represented using the server info, when such as comprising the server info, The IP address is fixed ip address;During not comprising the server info, the IP address is temporary ip address;Wherein, institute State server info and include the server name, can also believe including the IP address of Dynamic Host Configuration Protocol server, gateway, subnet mask etc. Breath.This is a kind of exemplary illustration, and attribute-bit can also use " 0 " and " 1 " to represent, such as attribute-bit value is " 0 ", table Show the IP address for fixed ip address, attribute-bit value is temporary ip address for " 1 ".Do not make specific limit to attribute-bit herein It is fixed, as long as be able to can be made a distinction to IP address type.
The embodiment of the present invention provides a kind of collocation method of IP address, and the IP address distributed is used by Dynamic Host Configuration Protocol server Attribute-bit makes a distinction, to identify fixed IP and temporary ip address;And it is different according to IP address type, by fixed IP ground Location is preserved, and temporary ip address is discharged so that save temporary ip address resource, improves server loading efficiency, while anti- Only multiple same server multiple IP address cause communication failure in the same network segment.
It should be noted that when other NICs in server complete to obtain temporary ip address and discharge acquisition After temporary ip address, the NIC for possessing fixed ip address is communicated by server with Dynamic Host Configuration Protocol server.DHCP service Device verifies that the fixed ip address identity of the NIC passes through, and generally Dynamic Host Configuration Protocol server provides the module of authentication, Identification can be carried out to accessing its server.Can allow to continue to communicate for the server that identification passes through. Dynamic Host Configuration Protocol server returns to server next step and needs instruction to be processed.These instructions are customized instructions, such as install certain A little business packets etc., server does corresponding action according to the instruction that Dynamic Host Configuration Protocol server is returned.
It should be noted that IP address collocation method is provided in the present invention is applied to physical server, it is also applied for virtual Server, or physical server and virtual server and situation about depositing.For example, work as being connect to the virtual network in virtual server During mouth card distribution IP address, virtual server 1 is the virtual machine created on physical server, in the presence of first in virtual server 1 Virtual network interface card and the second virtual network interface card, match somebody with somebody to the first virtual network interface card and the second virtual network interface card The method that the operation of IP address may refer to the present embodiment description is put, is not repeated one by one herein.It should be noted that firstly the need of Physical server is entered to configure IP address by each NIC in physical server, the system for completing physical server Loading, then IP address is distributed the virtual network interface card in virtual server, and loaded by virtual network interface card virtual Server, now, NIC in physical server is act as between transfer of virtual server and Dynamic Host Configuration Protocol server Information.Virtual server can be by the form of bridge and physical network interface card(For example, first network interface card or second NIC)Connection, is communicated eventually through physical network interface card with network.
Embodiment 2
The embodiment of the present invention provides a kind of server, it is understood that is physical server or virtual server, such as schemes Shown in 2a, including:Transmitting element 201, receiving unit 202
Transmitting element 201, DHCP request message, the DHCP are sent for setting protocol DHCP server to DynamicHost Request message is used for acquisition request IP address;
Receiving unit 202, for receiving the IP address of the Dynamic Host Configuration Protocol server transmission and the attribute-bit of the IP address; Wherein described attribute-bit is used to identify the IP address for fixed ip address or temporary ip address.
In the present embodiment, server includes multiple NICs, when the server starts, multiple nets in server Network interface card can send dhcp message to Dynamic Host Configuration Protocol server successively, to obtain Internet protocol(Internet Protocol, IP) Address is communicated.DHCP is a procotol for LAN, uses UDP(User Datagram Protocol, UDP)Agreement works, for internal network or Internet service provider's automatic IP address allocation.UDP is open Formula system is interconnected(Open SystemInterconnect, OSI)A kind of connectionless transport layer protocol in reference model, there is provided Towards the simple unreliable information transmission service of affairs.
In startup of server, it is necessary to be on server NIC configuration IP address, by transmitting element 201 to Dynamic Host Configuration Protocol server sends DHCP request message, is that NIC obtains IP address.What Dynamic Host Configuration Protocol server the reception server sent DHCP request message, the IP address for being sent to server can be fixed ip address, can also be temporary ip address.Fixed IP ground Location is the IP address that long-term allocation is used to a computer or the network equipment.In general, using the calculating of Internet access via leased-line Machine just possesses fixed internet ip address.Temporary ip address is to be allocated temporarily to a computer or the network equipment is used IP address, after this computer or the network equipment restart, then reacquire an IP address.I.e. by Modem, The computer that the modes such as ISDN, ADSL, wired broadband, cell wideband are surfed the Net, the every time assigned IP address of online not phases Together.Because IP address resource is of great value, most of user is surfed the Net by temporary ip address.
It should be noted that can have multiple NICs in each server, such as NIC1, NIC2 ... NICn, n are Natural number more than or equal to 1.Wherein, first network interface card can be NIC1.The transmitting element 201 of server is according to each network The natural numbering of interface card sends dhcp message to obtain IP address to Dynamic Host Configuration Protocol server successively.I.e. transmitting element 201 is NIC1 Dhcp message is sent to Dynamic Host Configuration Protocol server, then transmitting element 201 is that NIC2 sends dhcp message to Dynamic Host Configuration Protocol server, with such Push away.
Receiving unit 202 receives the IP address of Dynamic Host Configuration Protocol server transmission and the attribute-bit of IP address.The attribute of IP address Mark is used for representing the type of IP address, as fixed ip address or be temporary ip address.
As shown in Figure 2 b, the embodiment of the present invention also includes processing unit 203, when the attribute-bit by IP address confirms IP When address is temporary ip address, processing unit 203 discharges the IP address.The temporary ip address that server is received is for server Follow-up loading be it is useless, therefore the present invention will obtain temporary ip address release, so that Dynamic Host Configuration Protocol server can be It is continuing with during other NIC distribution temporary ip address, so as to save the resource of temporary ip address.Meanwhile, if solid Determine IP address and be in the same network segment with temporary ip address, when being communicated with Dynamic Host Configuration Protocol server, Dynamic Host Configuration Protocol server will be considered that temporarily IP address is illegal, causes communication failure.Therefore temporary ip address is discharged, it is ensured that the proper communication of server.
When IP address is confirmed for fixed ip address by the attribute-bit of IP address, processing unit 203 preserves IP ground Location, so as to be communicated using the IP address.Fixed ip address, attribute-bit, corresponding network interface that server will be received Card title is stored in temporary folder, so that server is communicated subsequently through the NIC with Dynamic Host Configuration Protocol server, Other operations are continued executing with, for example, business packet etc. is installed.
The attribute-bit of IP address can be represented using the server info, when such as comprising the server info, The IP address is fixed ip address;During not comprising the server info, the IP address is temporary ip address;Wherein, institute State server info and include the server name, can also believe including the IP address of Dynamic Host Configuration Protocol server, gateway, subnet mask etc. Breath.This is a kind of exemplary illustration, and attribute-bit can also use " 0 " and " 1 " to represent, such as attribute-bit value is " 0 ", table Show the I P addresses for fixed ip address, attribute-bit value is temporary ip address for " 1 ".Do not make specific limit to attribute-bit herein It is fixed, as long as be able to can be made a distinction to IP address type.
The embodiment of the present invention provides a kind of server, and the IP address distributed is entered using attribute-bit by Dynamic Host Configuration Protocol server Row is distinguished, to identify fixed IP and temporary ip address;And it is different according to IP address type, fixed ip address is protected Deposit, temporary ip address is discharged so that save temporary ip address resource, improve server loading efficiency, while preventing multiple same One server multiple IP address causes communication failure in the same network segment.
It should be noted that when other NICs in server complete to obtain temporary ip address and discharge acquisition After temporary ip address, the NIC for possessing fixed ip address is communicated by server with Dynamic Host Configuration Protocol server.DHCP service Device verifies that the fixed ip address identity of the NIC passes through, and generally Dynamic Host Configuration Protocol server provides the module of authentication, Identification can be carried out to accessing its server.Can allow to continue to communicate for the server that identification passes through. Dynamic Host Configuration Protocol server returns to server next step and needs instruction to be processed.These instructions are customized instructions, such as install certain A little business packets etc., server does corresponding action according to the instruction that Dynamic Host Configuration Protocol server is returned.
It should be noted that server is provided in the present invention is applied to physical server, virtual server is also applied for, or Person's physical server and virtual server and situation about depositing.For example, when to the virtual network interface card distribution in virtual server During IP address, virtual server 1 is the virtual machine created on physical server, there is the first virtual network in virtual server 1 Interface card and the second virtual network interface card, to the first virtual network interface card and the second virtual network interface card configuration IP address Operation may refer to the present embodiment description method, do not repeat one by one herein.It should be noted that firstly the need of by physics Each NIC in server enters to configure IP address to physical server, completes the system loads of physical server, then IP address is distributed the virtual network interface card in virtual server, and virtual server is loaded by virtual network interface card, Now, the information acting as between transfer of virtual server and Dynamic Host Configuration Protocol server of the NIC in physical server.It is empty Intending server can be by the form of bridge and physical network interface card(For example, first network interface card or the second network connect Mouth card)Connection, is communicated eventually through physical network interface card with network.
Embodiment 3
The invention provides a kind of dynamic host configuration protocol DHCP server, as shown in figure 3, including receiving unit 301 With transmitting element 302;Wherein, receiving unit 301, for receiving unit, for the DHCP request message that the reception server sends, The DHCP request message is used for acquisition request IP address;
Transmitting element 302, the attribute-bit for sending IP address and the IP address to the server;It is wherein described Attribute-bit is used to identify the IP address for fixed ip address or temporary ip address.Wherein, the attribute-bit is used to mark The IP address is known for fixed ip address or temporary ip address, is specifically included:
When the attribute-bit includes the server info, the IP address is fixed ip address;The attribute-bit During not comprising the server info, the IP address is temporary ip address;Wherein, the server info includes the service Device title.Can also including the IP address of Dynamic Host Configuration Protocol server, gateway, subnet mask etc. information.This is a kind of exemplary illustration, Attribute-bit can also use " 0 " and " 1 " to represent, such as attribute-bit value is " 0 ", represent the IP address for fixed ip address, Attribute-bit value is temporary ip address for " 1 ".Do not make specific restriction to attribute-bit herein, as long as can be to IP address type energy Enough make a distinction.
Dynamic Host Configuration Protocol server provided in an embodiment of the present invention, disappears according to the DHCP request that server sends Breath, the attribute-bit of IP address and IP address is sent to server;Wherein attribute-bit is used to represent the type of IP address, so that Enable the server to be distinguished according to attribute-bit the type of IP address.
Embodiment 4
A kind of IP address configuration system is the embodiment of the invention provides, as shown in figure 4, including as shown in Fig. 2 a or Fig. 2 b Dynamic host configuration protocol DHCP server 2 shown in server 1 and Fig. 3.Server 1 sends dynamic master to Dynamic Host Configuration Protocol server 2 Machine configuration protocol DHCP request message;The DHCP request message is used for acquisition request IP address;Dynamic Host Configuration Protocol server 2 receives service The DHCP request message that device 1 sends;Dynamic Host Configuration Protocol server 2 sends the attribute mark of IP address and the IP address to the server 1 Know;Wherein described attribute-bit is used to identify the IP address for fixed ip address or temporary ip address.The attribute-bit During comprising 1 information of server, the IP address is fixed ip address;The attribute-bit is believed not comprising the server 1 During breath, the I P addresses are temporary ip address;Wherein, the packet of the server 1 title containing the server 1.Can also wrap Include the information such as IP address, gateway, the subnet mask of Dynamic Host Configuration Protocol server.This is a kind of exemplary illustration, and attribute-bit can also Represented using " 0 " and " 1 ", such as attribute-bit value is " 0 ", represent the IP address for fixed ip address, attribute-bit value is " 1 " It is temporary ip address.Do not make specific restriction to attribute-bit herein, as long as be able to can be made a distinction to IP address type. The type of IP address is distinguished according to attribute-bit, when IP address is fixed ip address, server 2 preserves the IP address;Work as IP When address is temporary ip address, the IP address is discharged.
The detailed description of system provided in an embodiment of the present invention may refer to Example 1 and Example 2 of the present invention.The present invention The server 1 and Dynamic Host Configuration Protocol server 2 provided in embodiment are specifically as follows common computer, work station or private server Deng the present invention is not especially limited, and is respectively provided with memory and at least one central processing unit, the memory and described at least Individual central processing unit is connected by bus, memory storage computer instruction, and at least one central processing unit is used to perform Computer instruction in memory, while also realizing some necessary components of server capability comprising general external interface etc.. Wherein, the algorithm of the computer instruction for being stored in memory is referred to the description of the embodiment of the present invention 1, will not be repeated here.
The embodiment of the present invention provides a kind of configuration system of IP address, and the IP address distributed is used by Dynamic Host Configuration Protocol server Attribute-bit makes a distinction, to identify fixed IP and temporary ip address;And it is different according to IP address type, by fixed IP ground Location is preserved, and temporary ip address is discharged so that save temporary ip address resource, improves server loading efficiency, while anti- Only multiple same server multiple IP address cause communication failure in the same network segment.
It should be noted that, device embodiment described above is only schematical, wherein described as separating component The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Selection some or all of module therein is needed to realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not In the case of paying creative work, you can to understand and implement.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be borrowed Software is helped to add the mode of required common hardware to realize, naturally it is also possible to include application specific integrated circuit, specially by specialized hardware Realized with CPU, private memory, special components and parts etc., but the former is more preferably implementation method in many cases.Based on so Understanding, the part that technical scheme substantially contributes to prior art in other words can be with the shape of software product Formula is embodied, and the computer software product is stored in the storage medium that can read, such as the floppy disk of computer, and USB flash disk, movement are hard Disk, read-only storage(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory)、 Magnetic disc or CD etc., including some instructions are used to so that a computer equipment(Can be personal computer, server, or Person's network equipment etc.)Perform the method described in each embodiment of the invention.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for device and For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method The part explanation of embodiment.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (9)

1. a kind of collocation method of internet protocol address, it is characterised in that including:
Server sets protocol DHCP server and sends DHCP request message to DynamicHost, and the DHCP request message is used for please Seek acquisition IP address;
The server receives the IP address of the Dynamic Host Configuration Protocol server transmission and the attribute-bit of the IP address;Wherein described category Property identify for identifying the IP address for fixed ip address or temporary ip address;
, according to the attribute-bit, when it is determined that the IP address for receiving is temporary ip address, release is described for the server Temporary ip address;
When it is determined that the IP address for receiving is fixed ip address, the fixed ip address is preserved.
2. method according to claim 1, it is characterised in that the attribute-bit is used to identify the IP address to fix IP address or temporary ip address, specifically include:
When the attribute-bit includes the server info, the IP address is fixed ip address;
When the attribute-bit does not include the server info, the IP address is temporary ip address;Wherein, the server Packet contains the server name.
3. a kind of collocation method of internet protocol address, it is characterised in that including:
The DHCP request message that the reception server sends, the DHCP request message is used for acquisition request IP address;
The attribute-bit of IP address and the IP address is sent to the server;Wherein described attribute-bit is described for identifying IP address is fixed ip address or temporary ip address;
Wherein, when the IP address is temporary ip address, the server discharges the temporary ip address;
When the IP address is fixed ip address, the server preserves the fixed ip address.
4. method according to claim 3, it is characterised in that the attribute-bit is used to identify the IP address to fix IP address or temporary ip address, specifically include:
When the attribute-bit includes the server info, the IP address is fixed ip address;
When the attribute-bit does not include the server info, the IP address is temporary ip address;Wherein, the server Packet contains the server name.
5. a kind of server, it is characterised in that including:
Transmitting element, DHCP request message is sent for setting protocol DHCP server to DynamicHost, and the DHCP request disappears Cease for acquisition request IP address;
Receiving unit, for receiving the IP address of the Dynamic Host Configuration Protocol server transmission and the attribute-bit of the IP address;Wherein institute Attribute-bit is stated for identifying the IP address for fixed ip address or temporary ip address;
Processing unit, for according to the attribute-bit, when it is determined that the IP address for receiving is temporary ip address, discharges institute State temporary ip address;
When it is determined that the IP address for receiving is fixed ip address, the fixed ip address is preserved.
6. server as claimed in claim 5, it is characterised in that the attribute-bit is used to identify the IP address to fix IP address or temporary ip address, specifically include:
When the attribute-bit includes the server info, the IP address is fixed ip address;
When the attribute-bit does not include the server info, the IP address is temporary ip address;Wherein, the server Packet contains the server name.
7. a kind of dynamic host configuration protocol DHCP server, it is characterised in that including:
Receiving unit, for the DHCP request message that the reception server sends, the DHCP request message is used for acquisition request IP Address;
Transmitting element, the attribute-bit for sending IP address and the IP address to the server;Wherein described attribute mark Know for identifying the IP address for fixed ip address or temporary ip address;
Wherein, when the IP address is temporary ip address, the server discharges the temporary ip address;
When the IP address is fixed ip address, the server preserves the fixed ip address.
8. server as claimed in claim 7, it is characterised in that the attribute-bit is used to identify the IP address to fix IP address or temporary ip address, specifically include:
When the attribute-bit includes the server info, the IP address is fixed ip address;
When the attribute-bit does not include the server info, the IP address is temporary ip address;Wherein, the server Packet contains the server name.
9. the configuration system of a kind of internet protocol address, it is characterised in that including as described in claim 5 to 6 is any Server and the dynamic host configuration protocol DHCP server as described in claim 7 or 8.
CN201210513124.0A 2012-12-04 2012-12-04 A kind of collocation method of internet protocol address, apparatus and system Active CN103856573B (en)

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 CN103856573A (en) 2014-06-11
CN103856573B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
EP3340547B1 (en) 2016-08-03 2019-11-27 Huawei Technologies Co., Ltd. Network interface card 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN103856573A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
CN103580980B (en) The method and device thereof that virtual network finds and automatically configures automatically
CN102647486B (en) Address distribution method, equipment and system
EP2375659B1 (en) Scalable distributed user plane partitioned two-stage forwarding information base lookup for subscriber internet protocol host routes
CN103856573B (en) A kind of collocation method of internet protocol address, apparatus and system
CN102025792B (en) Router and IP address setting method thereof
EP2169877A1 (en) Processing method and device for qinq termination configuration
CN101729500B (en) Method, device and system for identifying IP session
CN103516547B (en) A kind of network parameter distribution method and device
CN110213391B (en) Method and device for configuring network protocol address
JP2006506852A (en) Intelligent configuration bridge system and method for adding complementary capabilities to existing high speed data infrastructure
JP2012216884A5 (en)
CN102171986B (en) A method and a gateway for providing multiple internet access
CN103797774A (en) Device and method for network address conversion
WO2013185731A2 (en) Method and system for managing ipv6 address conflict automatically
WO2015125111A1 (en) IPoE DUAL-STACK SUBSCRIBER FOR ROUTED RESIDENTIAL GATEWAY CONFIGURATION
CN104144096A (en) Virtual network layer construction method, device and system
CN105577853A (en) Method and device for automatically solving IP network segment conflict
CN101741925A (en) Method for allocating access addresses and access equipment
EP3108642B1 (en) Ipoe dual-stack subscriber for bridged residential gateway configuration
CN104506403A (en) Virtual network managing method supporting multi-stage isolation
CN102098347B (en) Internet address management method and system based on terminal
CN1874358B (en) Method and system for managing configuration of internet addresses
WO2021121040A1 (en) Broadband access method and apparatus, device, and storage medium
CN102055812A (en) Method and system for realizing identifier and locator mapping
US10819627B2 (en) Network device stacking

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.