CN106254571A - A kind of client ip address distribution method and device - Google Patents

A kind of client ip address distribution method and device Download PDF

Info

Publication number
CN106254571A
CN106254571A CN201610645343.2A CN201610645343A CN106254571A CN 106254571 A CN106254571 A CN 106254571A CN 201610645343 A CN201610645343 A CN 201610645343A CN 106254571 A CN106254571 A CN 106254571A
Authority
CN
China
Prior art keywords
address
client
dynamic host
host configuration
configuration protocol
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
Application number
CN201610645343.2A
Other languages
Chinese (zh)
Other versions
CN106254571B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201610645343.2A priority Critical patent/CN106254571B/en
Publication of CN106254571A publication Critical patent/CN106254571A/en
Application granted granted Critical
Publication of CN106254571B publication Critical patent/CN106254571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses

Abstract

The embodiment of the invention discloses a kind of client ip address distribution method and device, method includes: relaying Relay equipment receives the IP address assignment request of the identification information carrying client that client sends;According to this identification information, searching locally stored mapping table, wherein, in mapping table, storage has the identification information of client and the corresponding relation of an IP address that Dynamic Host Configuration Protocol server is client distribution;When matching the target list item comprising an IP address, send and carry the address conflict message of an IP address to Dynamic Host Configuration Protocol server, so that an IP address is recorded as address of conflicting by Dynamic Host Configuration Protocol server;Send this IP address assignment request to Dynamic Host Configuration Protocol server, so that Dynamic Host Configuration Protocol server is the 2nd IP address that the distribution of this client is different from an IP address.The application embodiment of the present invention is obtained in that new IP address to realize client when again reaching the standard grade.

Description

A kind of client ip address distribution method and device
Technical field
The present invention relates to communication technical field, particularly to a kind of client ip address distribution method and device.
Background technology
DHCP (Dynamic Host Configuration Protocol, DHCP) is used for as network Equipment dynamically distributes the network configuration parameters such as IP address.Client is filed a request configuration such as distribution IP address etc. to Dynamic Host Configuration Protocol server The application of information, Dynamic Host Configuration Protocol server is returned as the configuration informations such as the IP address of client distribution, to realize the configuration letters such as IP address The configuration of breath.
When Dynamic Host Configuration Protocol server is in the same network segment with client, Dynamic Host Configuration Protocol server can be directly for sending the distribution of IP address The client distribution IP address of request.When Dynamic Host Configuration Protocol server and client are in different segment, then need to use Relay (in Continue) equipment.The request message of client can be sent to not at the Dynamic Host Configuration Protocol server of the same network segment by Relay equipment, and will The message back of the response of Dynamic Host Configuration Protocol server gives described client, to complete the distribution of IP address.
The seriality used due to client, in DHCP, client application is to after IP address, and Dynamic Host Configuration Protocol server can be protected Depositing the corresponding relation between client and IP address, when client applies for IP address again, Dynamic Host Configuration Protocol server can will be protected before Reallocate this client in the IP address deposited.
However as the development of network and information technology, in some scenes, client is wished to reach the standard grade every time and can be obtained New IP address, then how to meet the client in above-mentioned scene and be obtained in that the demand of new IP address when again reaching the standard grade Become problem demanding prompt solution.
Summary of the invention
The embodiment of the invention discloses a kind of client ip address distribution method and device, again going up realizing client New IP address it is obtained in that during line.Concrete scheme is as follows:
On the one hand, embodiments provide a kind of client ip address distribution method, be applied to DynamicHost configuration Relaying Relay equipment in protocol DHCP network, described method includes:
Receive the IP address assignment request that client sends, wherein, described IP address assignment request carries described client The identification information of end;
According to described identification information, searching locally stored mapping table, wherein, in described mapping table, storage has The identification information of described client and Dynamic Host Configuration Protocol server are the corresponding relation of an IP address of described client distribution;
When matching the target list item comprising an IP address, send the address conflict message carrying an IP address To Dynamic Host Configuration Protocol server, so that a described IP address is recorded as address of conflicting by described Dynamic Host Configuration Protocol server;
Send described IP address assignment request extremely described Dynamic Host Configuration Protocol server, so that described Dynamic Host Configuration Protocol server is described client Distribute the twoth IP address different from a described IP address.
Optionally, described search locally stored mapping table according to described identification information, including:
Judge whether interface corresponding to described client opens random assortment address function;
If it is, according to described identification information, search locally stored mapping table;
Otherwise, described IP address assignment request is sent to Dynamic Host Configuration Protocol server.
Optionally, described method also includes:
When closing the random assortment address function of interface corresponding to described client, delete the mesh that described client is corresponding Mark list item.
Optionally, described method also includes:
Receive the releasing request that client sends;
Described releasing request is forwarded to Dynamic Host Configuration Protocol server.
Optionally, in described transmission described IP address assignment request to described Dynamic Host Configuration Protocol server after the meeting, described method is also wrapped Include:
Receive the address assignment response that described Dynamic Host Configuration Protocol server sends for described IP address assignment request;
The 2nd IP address according to carrying in described address assignment response updates the target list item in described mapping table;
Send described 2nd IP address to described client.
On the other hand, embodiments provide a kind of client ip address distributor, be applied to DynamicHost and join Putting the relaying Relay equipment in protocol DHCP network, described device includes: receiver module, lookup module and sending module;
Described receiver module, for receiving the IP address assignment request that client sends, wherein, the distribution of described IP address please The identification information of described client is carried in asking;
Described lookup module, for according to described identification information, searches locally stored mapping table, wherein, described In mapping table, storage has the identification information of described client and Dynamic Host Configuration Protocol server to be the IP ground that described client is distributed The corresponding relation of location;
Described sending module, for when matching the target list item comprising an IP address, sends and carries an IP The address conflict message of address is to Dynamic Host Configuration Protocol server, so that a described IP address is recorded as conflict ground by described Dynamic Host Configuration Protocol server Location;
Described sending module, is additionally operable to send described IP address assignment request extremely described Dynamic Host Configuration Protocol server, so that described Dynamic Host Configuration Protocol server is the 2nd IP address that the distribution of described client is different from a described IP address.
Optionally, described lookup module, specifically for judging whether interface corresponding to described client opens random point Join address function;
If it is, according to described identification information, search locally stored mapping table;
Otherwise, trigger described sending module and send described IP address assignment request to Dynamic Host Configuration Protocol server.
Optionally, described device also includes removing module;
Described removing module, for when closing the random assortment address function of interface corresponding to described client, deleting The target list item that described client is corresponding.
Optionally, described receiver module, it is additionally operable to receive the releasing request that described client sends;
Described sending module, is additionally operable to forward described releasing request to Dynamic Host Configuration Protocol server.
Optionally, described device also includes more new module;
Described receiver module, is additionally operable in described transmission described IP address assignment request to described Dynamic Host Configuration Protocol server after the meeting, Receive the address assignment response that described Dynamic Host Configuration Protocol server sends for described IP address assignment request;
Described more new module, for updating described corresponding pass according to the 2nd IP address carried in described address assignment response It it is the target list item in table;
Described sending module, is additionally operable to send described 2nd IP address to described client.
In this programme, relaying Relay equipment receives the IP address of the identification information carrying client that client sends Distribution request;According to this identification information, searching locally stored mapping table, wherein, in mapping table, storage has client The identification information of end and Dynamic Host Configuration Protocol server are the corresponding relation of an IP address of client distribution;An IP is comprised when matching During the target list item of address, send and carry the address conflict message of an IP address to Dynamic Host Configuration Protocol server, so that DHCP service Oneth IP address is recorded as address of conflicting by device;Send this IP address assignment request to Dynamic Host Configuration Protocol server, so that DHCP service Device is the 2nd IP address that the distribution of this client is different from an IP address.Visible, client is in transmission IP address of again reaching the standard grade During distribution request, Relay equipment can send address conflict message for an IP address of this client history distribution, with Dynamic Host Configuration Protocol server is enable to distribute the twoth IP address different from an IP address of history distribution for this client, to realize visitor Family end obtains new address when again reaching the standard grade.Certainly, arbitrary product or the method for implementing the present invention must be not necessarily required to simultaneously Reach all the above advantage.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
The schematic flow sheet of a kind of client ip address distribution method that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of IP address corresponding to the client that a kind of Relay renewal of the equipment is stored;
The structural representation of a kind of client ip address distributor that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 is the structural representation of IP address corresponding to the client that a kind of Relay renewal of the equipment is stored.
Detailed description of the invention
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 Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise Embodiment, broadly falls into the scope of protection of the invention.
Embodiments provide a kind of client ip address distribution method and device, again going up realizing client New IP address it is obtained in that during line.
A kind of client ip address distribution method provided for the embodiment of the present invention first below is introduced.
The client ip address distribution method that the embodiment of the present invention is provided, can apply to DHCP Relaying Relay equipment in DHCP network, as it is shown in figure 1, may include steps of:
S101: receive the IP address assignment request that client sends, wherein, carry this client in this IP address assignment request The identification information of end;
Wherein, this IP address assignment request can be discover message, and this identification information can include the MAC of client (Media Access Contro, media interviews control) address and ID (IDentity, identity number) information.
S102: according to this identification information, searches locally stored mapping table, wherein, stores in this mapping table The corresponding relation of the IP address having the identification information of this client and Dynamic Host Configuration Protocol server to be the distribution of this client;
It is understood that when Relay equipment receive client send IP address assignment request time, the most recordable should The identification information of client.This Relay equipment has prestored and has included the identification information of this client and Dynamic Host Configuration Protocol server is The corresponding relation of the oneth IP address of this client distribution, client and the corresponding relation of an IP address can be upper once The record during distribution of IP address.After Relay equipment receives the IP address assignment request of client, please according to the distribution of IP address Seek the identification information of entrained client, from the mapping table stored, mate this client, when in Relay equipment When storage has the identification information of this client with the corresponding relation of the IP address that Dynamic Host Configuration Protocol server is the distribution of this client, i.e. For the match is successful.After the match is successful, carry out follow-up client ip address allocation flow.
S103: when matching the target list item comprising an IP address, sends the address punching carrying an IP address Prominent message is to Dynamic Host Configuration Protocol server, so that an IP address is recorded as address of conflicting by Dynamic Host Configuration Protocol server;
After matching the target list item comprising an IP address, in order to avoid the IP address of this request of described client Identical with an IP address, before Relay device forwards IP address assignment request, first simulant-client sends address conflict message To Dynamic Host Configuration Protocol server.After Dynamic Host Configuration Protocol server receives this address conflict message, an IP address is recorded as address of conflicting, such as: Oneth IP address is put in collision table, any client will not be distributed in an IP address in the given time.Its In, this address conflict message can be decline message.
S104: send this IP address assignment request to Dynamic Host Configuration Protocol server so that Dynamic Host Configuration Protocol server be the distribution of this client with The 2nd IP address that oneth IP address is different.
Relay equipment, according to prior art, sends this IP address assignment request to Dynamic Host Configuration Protocol server.Dynamic Host Configuration Protocol server can be The 2nd IP address that the distribution of this client is different from an IP address.
The application embodiment of the present invention, relaying Relay equipment receives the identification information carrying client of client transmission IP address assignment request;According to this identification information, search locally stored mapping table, wherein, mapping table stores The corresponding relation of the IP address having the identification information of client and Dynamic Host Configuration Protocol server to be client distribution;Comprise when matching During the target list item of the oneth IP address, send and carry the address conflict message of an IP address to Dynamic Host Configuration Protocol server, so that Oneth IP address is recorded as address of conflicting by Dynamic Host Configuration Protocol server;Send this IP address assignment request to Dynamic Host Configuration Protocol server, so that Dynamic Host Configuration Protocol server is the 2nd IP address that the distribution of this client is different from an IP address.Visible, client again reach the standard grade send out When sending IP address assignment request, Relay equipment can send address conflict for an IP address of this client history distribution Message, so that Dynamic Host Configuration Protocol server can distribute the twoth IP address different from an IP address of history distribution for this client, New address is obtained realizing client when again reaching the standard grade.
Further, the embodiment of the present invention improves only for Relay equipment, random for some predetermined interface therein configuration Distribution address function, so that being obtained in that the IP address of random assortment by the client of this predetermined interface.For DHCP service Do not make any amendment for device, use existing protocol mechanism, compatible good and real-time.
In a kind of specific implementation, Relay equipment can be configured with multiple interface, to access client.The present invention In embodiment, some predetermined interface of Relay equipment configures random assortment address function, and the random assortment configured Address function passes through on-off control, the client of the interface being only unlocked by random assortment address function, just can be assigned to The IP address different from the IP address of history distribution.Described according to described identification information, search locally stored mapping table (S102), including:
Judge whether interface corresponding to this client opens random assortment address function;
If it is, according to this identification information, search locally stored mapping table;
Otherwise, this IP address assignment request is sent to Dynamic Host Configuration Protocol server.
It is understood that after the random assortment address function judging interface corresponding to client is opened, can be true This client fixed is the client of requirement random assortment address.Then follow-up client ip address allocation flow is performed.When sentencing Break and after the random assortment address function of interface corresponding to client do not opens, it may be determined that this client is not for requiring random point Join the client of address, directly IP address assignment request can be sent to Dynamic Host Configuration Protocol server, carry out the distribution of IP address.
In a kind of specific implementation, for client, it can require in some specific scene at random The demand of distribution address, such as: playing network game etc..But, at this, other scenes outside some specific scene can not requirement Random assortment address.Further, the client ip address distribution method that the embodiment of the present invention is provided can also include:
When closing the random assortment address function of interface corresponding to this client, delete the object table that this client is corresponding ?.
Wherein, the IP address that in this target list item, record has this client and Dynamic Host Configuration Protocol server to be the distribution of this client Corresponding relation.
In a kind of specific implementation, the client ip address distribution method that the embodiment of the present invention is provided can also be wrapped Include:
Receive the releasing request that client sends;
Described releasing request is forwarded to Dynamic Host Configuration Protocol server.
When client needs to discharge presently used IP address, Relay equipment receives the release that client sends After request, according to prior art, address release is forwarded, send to Dynamic Host Configuration Protocol server.It addition, when client is for currently Time renewed treaty in the IP address used, after Relay equipment receives the address renewed treaty that client sends, according to prior art pair Renewing a contract and forward in address, sends to Dynamic Host Configuration Protocol server.Wherein, in a particular application, renew a contract in this address can be Request report Literary composition, the release of this address can be Release message.
In a kind of specific implementation, based on flow process shown in Fig. 1, as in figure 2 it is shown, divide in described transmission described IP address After joining request extremely described Dynamic Host Configuration Protocol server meeting (S104), the client ip address distribution method that the embodiment of the present invention is provided also may be used To include:
S201: receive the address assignment response that Dynamic Host Configuration Protocol server sends for this IP address assignment request;
S202: the 2nd IP address according to carrying in this address assignment response updates the object table in this mapping table ?;
S203: send the 2nd IP address to this client.
It should be noted that for the memory space saving Relay equipment, in this mapping table, can only store Dynamic Host Configuration Protocol server is the up-to-date IP address of client distribution, receives the IP address that Dynamic Host Configuration Protocol server is client distribution every time After, the IP address stored all can be updated to this assigned IP address.Will IP ground included in target list item This assigned IP address (the 2nd IP address) is revised as in location.
It is understood that the interface working as Relay equipment corresponding to this client opens random assortment address function, Relay equipment receives the IP address assignment request that client sends first, i.e. records the identification information of this client, now, This Relay equipment directly forwards the IP address assignment request that this client sends first, to Dynamic Host Configuration Protocol server, so that DHCP service Device sends address assignment response for this IP Address requests, and Relay equipment receives Dynamic Host Configuration Protocol server and distributes for this IP address After the address assignment response that request sends, the IP for client distribution entrained in this address assignment response of corresponding record Address, and the IP address for client distribution entrained by this address assignment response is sent to client.When Relay sets For again receiving the IP address assignment request that this client is sent, start to perform the client that the embodiment of the present invention is provided IP address distribution method, so that Dynamic Host Configuration Protocol server is the 2nd IP address that this client random assortment is different from an IP address.
Corresponding to said method embodiment, embodiments provide a kind of client ip address distributor, application Relaying Relay equipment in dynamic host configuration protocol DHCP network, as it is shown on figure 3, described device includes: receiver module 301, module 302 and sending module 303 are searched;
Described receiver module 301, for receiving the IP address assignment request that client sends, wherein, described IP address is divided Join the identification information carrying described client in request;
Described lookup module 302, for according to described identification information, searches locally stored mapping table, wherein, institute Stating storage in mapping table has the identification information of described client and Dynamic Host Configuration Protocol server to be the IP that described client is distributed The corresponding relation of address;
Described sending module 303, for when matching the target list item comprising an IP address, sends and carries first The address conflict message of IP address is to Dynamic Host Configuration Protocol server, so that a described IP address is recorded as conflict by described Dynamic Host Configuration Protocol server Address;
Described sending module 303, is additionally operable to send described IP address assignment request extremely described Dynamic Host Configuration Protocol server, so that described Dynamic Host Configuration Protocol server is the 2nd IP address that the distribution of described client is different from a described IP address.
The application embodiment of the present invention, relaying Relay equipment receives the identification information carrying client of client transmission IP address assignment request;According to this identification information, search locally stored mapping table, wherein, mapping table stores The corresponding relation of the IP address having the identification information of client and Dynamic Host Configuration Protocol server to be client distribution;Comprise when matching During the target list item of the oneth IP address, send and carry the address conflict message of an IP address to Dynamic Host Configuration Protocol server, so that Oneth IP address is recorded as address of conflicting by Dynamic Host Configuration Protocol server;Send this IP address assignment request to Dynamic Host Configuration Protocol server, so that Dynamic Host Configuration Protocol server is the 2nd IP address that the distribution of this client is different from an IP address.Visible, client again reach the standard grade send out When sending IP address assignment request, Relay equipment can send address conflict for an IP address of this client history distribution Message, so that Dynamic Host Configuration Protocol server can distribute the twoth IP address different from an IP address of history distribution for this client, New address is obtained realizing client when again reaching the standard grade.
In a kind of specific implementation, described lookup module 302, the interface corresponding specifically for judging described client Whether open random assortment address function;
If it is, according to described identification information, search locally stored mapping table;
Otherwise, trigger described sending module 303 and send described IP address assignment request to Dynamic Host Configuration Protocol server.
In a kind of specific implementation, a kind of client ip address distributor that the embodiment of the present invention is provided also wraps Include removing module;
Described removing module, for when closing the random assortment address function of interface corresponding to described client, deleting The target list item that described client is corresponding.
In a kind of specific implementation, described receiver module 301, it is additionally operable to receive the releasing request that client sends;
Described sending module 303, is additionally operable to forward described releasing request to Dynamic Host Configuration Protocol server.
In a kind of specific implementation, based on structure shown in Fig. 3, as shown in Figure 4, the embodiment of the present invention is provided A kind of client ip address distributor also include more new module 401;
Described receiver module 301, is additionally operable in described transmission described IP address assignment request to described Dynamic Host Configuration Protocol server meeting After, receive the address assignment response that described Dynamic Host Configuration Protocol server sends for described IP address assignment request;
Described more new module 401 is described right for updating according to the 2nd IP address carried in described address assignment response Answer the target list item in relation table;
Described sending module 303, is additionally operable to send described 2nd IP address to described client.
For systems/devices embodiment, owing to it is substantially similar to embodiment of the method, so the comparison described is simple Single, relevant part sees the part of embodiment of the method and illustrates.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating Relation or order in any this reality.And, term " includes ", " comprising " or its any other variant are intended to Comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that those are wanted Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that Including process, method, article or the equipment of described key element there is also other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment is can Completing instructing relevant hardware by program, described program can be stored in computer read/write memory medium, The storage medium obtained designated herein, such as: ROM/RAM, magnetic disc, CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All Any modification, equivalent substitution and improvement etc. made within the spirit and principles in the present invention, are all contained in protection scope of the present invention In.

Claims (10)

1. a client ip address distribution method, it is characterised in that be applied in dynamic host configuration protocol DHCP network Relaying Relay equipment, described method includes:
Receive the IP address assignment request that client sends, wherein, described IP address assignment request carries described client Identification information;
According to described identification information, searching locally stored mapping table, wherein, in described mapping table, storage has described The identification information of client and Dynamic Host Configuration Protocol server are the corresponding relation of an IP address of described client distribution;
When matching the target list item comprising an IP address, send and carry the address conflict message of an IP address extremely Dynamic Host Configuration Protocol server, so that a described IP address is recorded as address of conflicting by described Dynamic Host Configuration Protocol server;
Send described IP address assignment request extremely described Dynamic Host Configuration Protocol server, so that described Dynamic Host Configuration Protocol server is the distribution of described client The twoth IP address different from a described IP address.
Method the most according to claim 1, it is characterised in that described according to described identification information, searches locally stored Mapping table, including:
Judge whether interface corresponding to described client opens random assortment address function;
If it is, according to described identification information, search locally stored mapping table;
Otherwise, described IP address assignment request is sent to Dynamic Host Configuration Protocol server.
Method the most according to claim 2, it is characterised in that described method also includes:
When closing the random assortment address function of interface corresponding to described client, delete the object table that described client is corresponding ?.
Method the most according to claim 1, it is characterised in that described method also includes:
Receive the releasing request that described client sends;
Described releasing request is forwarded to Dynamic Host Configuration Protocol server.
Method the most according to claim 1, it is characterised in that in described transmission described IP address assignment request to described After the meeting, described method also includes Dynamic Host Configuration Protocol server:
Receive the address assignment response that described Dynamic Host Configuration Protocol server sends for described IP address assignment request;
The 2nd IP address according to carrying in described address assignment response updates the target list item in described mapping table;
Send described 2nd IP address to described client.
6. a client ip address distributor, it is characterised in that be applied in dynamic host configuration protocol DHCP network Relaying Relay equipment, described device includes: receiver module, lookup module and sending module;
Described receiver module, for receiving the IP address assignment request that client sends, wherein, in described IP address assignment request Carry the identification information of described client;
Described lookup module, for according to described identification information, searches locally stored mapping table, wherein, described correspondence In relation table, storage has the identification information of described client and Dynamic Host Configuration Protocol server to be the IP address that described client is distributed Corresponding relation;
Described sending module, for when matching the target list item comprising an IP address, sends and carries an IP address Address conflict message to Dynamic Host Configuration Protocol server so that described Dynamic Host Configuration Protocol server a described IP address is recorded as conflict address;
Described sending module, is additionally operable to send described IP address assignment request extremely described Dynamic Host Configuration Protocol server, so that described DHCP clothes Business device is the 2nd IP address that the distribution of described client is different from a described IP address.
Device the most according to claim 6, it is characterised in that described lookup module, specifically for judging described client Whether corresponding interface opens random assortment address function;
If it is, according to described identification information, search locally stored mapping table;
Otherwise, trigger described sending module and send described IP address assignment request to Dynamic Host Configuration Protocol server.
Device the most according to claim 7, it is characterised in that described device also includes removing module;
Described removing module, for when closing the random assortment address function of interface corresponding to described client, deletes described The target list item that client is corresponding.
Device the most according to claim 6, it is characterised in that described receiver module, is additionally operable to receive what client sent Releasing request;
Described sending module, is additionally operable to forward described releasing request to Dynamic Host Configuration Protocol server.
Device the most according to claim 6, it is characterised in that described device also includes more new module;
Described receiver module, is additionally operable in described transmission described IP address assignment request to described Dynamic Host Configuration Protocol server after the meeting, receive The address assignment response that described Dynamic Host Configuration Protocol server sends for described IP address assignment request;
Described more new module, for updating described mapping table according to the 2nd IP address carried in described address assignment response In target list item;
Described sending module, is additionally operable to send described 2nd IP address to described client.
CN201610645343.2A 2016-08-05 2016-08-05 Client IP address allocation method and device Active CN106254571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610645343.2A CN106254571B (en) 2016-08-05 2016-08-05 Client IP address allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610645343.2A CN106254571B (en) 2016-08-05 2016-08-05 Client IP address allocation method and device

Publications (2)

Publication Number Publication Date
CN106254571A true CN106254571A (en) 2016-12-21
CN106254571B CN106254571B (en) 2020-12-18

Family

ID=58078935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610645343.2A Active CN106254571B (en) 2016-08-05 2016-08-05 Client IP address allocation method and device

Country Status (1)

Country Link
CN (1) CN106254571B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183978A (en) * 2018-03-29 2018-06-19 北京环境特性研究所 A kind of communication equipment IP address configuration method and communication equipment
CN109451093A (en) * 2018-12-13 2019-03-08 新华三技术有限公司 A kind of loopback port address distribution method and device
CN110311994A (en) * 2019-08-05 2019-10-08 深圳创维数字技术有限公司 The distribution request method, apparatus and readable storage medium storing program for executing of IP address
CN110311995A (en) * 2019-08-05 2019-10-08 深圳创维数字技术有限公司 Distribution method, device and the computer readable storage medium of IP address
WO2020048177A1 (en) * 2018-09-05 2020-03-12 中兴通讯股份有限公司 Set top box management method and apparatus, and device and storage medium
CN111405078A (en) * 2020-03-05 2020-07-10 联想(北京)有限公司 Method, terminal and server for allocating IP address
CN113242170A (en) * 2021-05-21 2021-08-10 深圳易马达科技有限公司 Address allocation method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040052216A1 (en) * 2002-09-17 2004-03-18 Eung-Seok Roh Internet protocol address allocation device and method
CN101510902A (en) * 2009-03-25 2009-08-19 杭州华三通信技术有限公司 Method, system and equipment for preventing wireless client terminal from disconnection during internet process
CN101951417A (en) * 2010-09-21 2011-01-19 北京星网锐捷网络技术有限公司 Method, system and trunk equipment for assigning multiple server addresses
CN102014044A (en) * 2009-09-04 2011-04-13 技嘉科技股份有限公司 Domain collision avoidance method and router using same
CN102281333A (en) * 2010-06-11 2011-12-14 中兴通讯股份有限公司 Method and system for avoiding IP address conflict, DHCP server and DHCP client
CN102439949A (en) * 2011-10-17 2012-05-02 华为技术有限公司 Method for solving internet protocol address assignment conflict and related device and system
CN102571996A (en) * 2010-12-13 2012-07-11 联想(北京)有限公司 IP (Internet Protocol) address assignment method, IP address assignment device and network system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040052216A1 (en) * 2002-09-17 2004-03-18 Eung-Seok Roh Internet protocol address allocation device and method
CN101510902A (en) * 2009-03-25 2009-08-19 杭州华三通信技术有限公司 Method, system and equipment for preventing wireless client terminal from disconnection during internet process
CN102014044A (en) * 2009-09-04 2011-04-13 技嘉科技股份有限公司 Domain collision avoidance method and router using same
CN102281333A (en) * 2010-06-11 2011-12-14 中兴通讯股份有限公司 Method and system for avoiding IP address conflict, DHCP server and DHCP client
CN101951417A (en) * 2010-09-21 2011-01-19 北京星网锐捷网络技术有限公司 Method, system and trunk equipment for assigning multiple server addresses
CN102571996A (en) * 2010-12-13 2012-07-11 联想(北京)有限公司 IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN102439949A (en) * 2011-10-17 2012-05-02 华为技术有限公司 Method for solving internet protocol address assignment conflict and related device and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183978A (en) * 2018-03-29 2018-06-19 北京环境特性研究所 A kind of communication equipment IP address configuration method and communication equipment
WO2020048177A1 (en) * 2018-09-05 2020-03-12 中兴通讯股份有限公司 Set top box management method and apparatus, and device and storage medium
CN110881143A (en) * 2018-09-05 2020-03-13 中兴通讯股份有限公司 Set top box management method, device and equipment and computer readable storage medium
CN109451093A (en) * 2018-12-13 2019-03-08 新华三技术有限公司 A kind of loopback port address distribution method and device
CN109451093B (en) * 2018-12-13 2022-01-28 新华三技术有限公司 Loopback interface address allocation method and device
CN110311994A (en) * 2019-08-05 2019-10-08 深圳创维数字技术有限公司 The distribution request method, apparatus and readable storage medium storing program for executing of IP address
CN110311995A (en) * 2019-08-05 2019-10-08 深圳创维数字技术有限公司 Distribution method, device and the computer readable storage medium of IP address
CN110311995B (en) * 2019-08-05 2022-04-08 深圳创维数字技术有限公司 IP address allocation method, device and computer readable storage medium
CN110311994B (en) * 2019-08-05 2022-04-29 深圳创维数字技术有限公司 IP address allocation request method, device and readable storage medium
CN111405078A (en) * 2020-03-05 2020-07-10 联想(北京)有限公司 Method, terminal and server for allocating IP address
CN113242170A (en) * 2021-05-21 2021-08-10 深圳易马达科技有限公司 Address allocation method and device

Also Published As

Publication number Publication date
CN106254571B (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN106254571A (en) A kind of client ip address distribution method and device
CN101453394B (en) Method, system and equipment for access control
CN102137145B (en) Method, device and system for managing distributed contents
CN105744579B (en) Method, switching control and the access device that terminal switches between AP
CN102647486A (en) Address distributing method, address distributing equipment and address distributing system
CN102394948B (en) DHCP (dynamic host configuration protocol) address distribution method and DHCP server
CN105450601A (en) Method and device for sharing license
CN111107171B (en) Security defense method and device for DNS (Domain name Server), communication equipment and medium
CN105095313B (en) A kind of data access method and equipment
CN101442558B (en) Method and system for providing index service for P2SP network
CN106878084B (en) Authority control method and device
CN105245629A (en) DHCP-based host communication method and device
CN103546380A (en) Message forwarding method and device based on strategy routing
CN105338511A (en) Network topology hiding method and equipment
CN103414641A (en) Neighbor table item release method, device and network equipment
CN109462825B (en) Mobile phone number allocation method, equipment and computer readable storage medium
CN102739821A (en) Method and system for allocating IP addresses
CN101997931A (en) Position information acquiring method and equipment
CN103441865B (en) Method, system and the BRAS and Portal server of management ip address
CN108696864B (en) Virtual number request and transmission method, device and storage medium
CN101656722B (en) Method for generating dynamic host configuration protocol (DHCP) snooping binding information, and device thereof
CN112104888B (en) Method and system for grouping live broadcast users
CN107547681A (en) A kind of method and device of user access network
KR101538737B1 (en) Method for IP allocation in DHCP
CN105376340A (en) Method of distributing IP addresses in differentiation mode and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou science and Technology Industrial Park, high tech Industrial Development Zone, Zhejiang Province, No. six and road, No. 310

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant