CN102355404B - Method of dynamic multiple network segment address distribution supported by dynamic host configuration protocol (DHCP) repeater and apparatus thereof - Google Patents

Method of dynamic multiple network segment address distribution supported by dynamic host configuration protocol (DHCP) repeater and apparatus thereof Download PDF

Info

Publication number
CN102355404B
CN102355404B CN201110227099.5A CN201110227099A CN102355404B CN 102355404 B CN102355404 B CN 102355404B CN 201110227099 A CN201110227099 A CN 201110227099A CN 102355404 B CN102355404 B CN 102355404B
Authority
CN
China
Prior art keywords
address
dhcp
interface
network segment
place network
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.)
Expired - Fee Related
Application number
CN201110227099.5A
Other languages
Chinese (zh)
Other versions
CN102355404A (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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN201110227099.5A priority Critical patent/CN102355404B/en
Publication of CN102355404A publication Critical patent/CN102355404A/en
Application granted granted Critical
Publication of CN102355404B publication Critical patent/CN102355404B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method of dynamic multiple network segment address distribution supported by a dynamic host configuration protocol (DHCP) repeater and an apparatus thereof. The method comprises the following steps that: the DHCP repeater determines whether a user number of a network segment which is in an interface main IP address exceeds a user capacity according to an address item of local maintenance; when the user number exceeds the user capacity, the DHCP repeater which is taken as a DHCP client constructs a DHCP application message; the DHCP repeater sends the DHCP application message to a DHCP server application interface slave IP address; the DHCP repeater uses the interface slave IP address to forward a request message which is sent to the DHCP server from the DHCP client and a response message which is sent from the DHCP server to the DHCP client. In the prior art, DHCP repeater address distribution is not flexible enough, which can cause inconvenient usage. By using the method and the apparatus of the invention, the above problem can be solved. The DHCP repeater can dynamically, flexibly and automatically acquire the network segment address and the usage is convenient.

Description

The method and apparatus of the dynamic multisegment address assignment of DHCP relay device support
Technical field
The present invention relates to the communications field, particularly the method and apparatus of the dynamic multisegment address assignment of a kind of DHCP relay device support.
Background technology
DHCP (Dynamic Host Configuration Protocol, DHCP) adopt the operating mechanism of client and server, it is a kind of TCP/IP (Transmission Control Protocol/Internet Protocol, transmission control protocol/Internet Interconnection agreement) standard of simplifying host IP address configuration management.This standard allows Dynamic Host Configuration Protocol server to provide IP address and other relevant configuration information to client.
Dhcp client obtains IP address by sending broadcasting packet to Dynamic Host Configuration Protocol server application, and when Dynamic Host Configuration Protocol server and dhcp client are during a local area network (LAN) inside, Dynamic Host Configuration Protocol server can be directly dhcp client distributing IP address.When dhcp client and Dynamic Host Configuration Protocol server are or not the time that a local area network (LAN) is not inner, need in the local area network (LAN) at dhcp client place, dispose DHCP relay device, forward DHCP request message by DHCP relay device.DHCP relay device, in the process E-Packeting, by carry local gateway address in DHCP message, sends to Dynamic Host Configuration Protocol server in the lump.Dynamic Host Configuration Protocol server is the IP address of user assignment and gateway same network segment according to the gateway address in DHCP message.
As shown in Figure 1, referring to Fig. 1, dhcp client 1, dhcp client 2 and dhcp client 3 are located on a local area network (LAN) inside to the topological relation of Dynamic Host Configuration Protocol server and dhcp client, with Dynamic Host Configuration Protocol server not in same local area network (LAN) inside.Be responsible for dhcp client at the three-tier switch deploy DHCP relay device that connects this local area network (LAN) and carry out DHCP message repeating.Conventionally, DHCP relay device will be opened on three layer interfaces of switch, and this three layer interface is generally the gateway address of dhcp client, in DHCP repeating process, this three layer interfaces IP address is filled in DHCP message, and Dynamic Host Configuration Protocol server carries out address assignment according to this three layer interface IP.
Wherein, as shown in Figure 2, as shown in Figure 2, DHCP relay device can fill in giaddr field by three layer interface IP addresses to DHCP message format in the repeating process of message.Dynamic Host Configuration Protocol server also judges the residing network segment of client according to this field just, and then distributes correct IP address for client.
And in such cases, in this local area network (LAN), open ended number of users has been subject to the network segment scope restriction of gateway interface IP, as C class interface primary ip address of interface configuration, remove gateway address and broadcast address, in this local area network (LAN), assignable IP address is 253.If user cannot get IP address when now user exceedes 253.
At present, hold compared with multi-user the following scheme of scheme conventionally adopting a local area network (LAN) inside for realizing:
1. the large network segment address of interface configuration: by configure large net address on interface, as dwindle mask-length, change to 23 bitmasks by 24 bitmasks.Like this, can be assigned to more IP address by this local area network (LAN) of DHCP.But often dwindle the network segment expanding and become multiple to increase by dwindling the method for mask-length, but the user of local area network (LAN) inside might not increasing with multiple.For example comprise the user of 600 capacity, need the network segment mask-length distributing to be generally 22, be that open ended number of users is 255*4-2, the IP address number of waste is 598, as be the user of 1200 capacity, needing the network segment mask-length distributing is 21, and open ended number of users is 255*8-2, and the IP address of waste is 1198.As can be seen here, often dwindle a bitmask, the waste of the IP address of causing is just more serious.
2. interface configuration multisegment IP address: by interface configuration multisegment IP address, can realize use multisegment IP address in a local area network (LAN).Both can solve in this way user capacity problem, also can avoid the waste of IP address.But if user need to carry out automatic acquisition IP by DHCP in this local area network (LAN), the method cannot realize.In addition, adopting the method need to be the multiple IP of interface configuration addresses, and flexibility is lower.
Summary of the invention
Main purpose of the present invention is to provide the method and apparatus of the dynamic multisegment address assignment of a kind of DHCP relay device support, to solve DHCP relay device address assignment underaction of the prior art, and causes inconvenient problem with use.
According to an aspect of the present invention, the method of the dynamic multisegment address assignment of a kind of DHCP relay device support is provided, the method comprises: DHCP relay device, according to the address list item of local maintenance, judges whether interface primary ip address place network segment number of users exceedes user capacity; In the time that interface primary ip address place network segment number of users exceedes user capacity, DHCP relay device is as dhcp client structure DHCP application message; DHCP relay device applies for that by DHCP message sends to Dynamic Host Configuration Protocol server application interface secondary IP address; DHCP relay device receives the interface secondary IP address that Dynamic Host Configuration Protocol server distributes, and interface secondary IP address is arranged on interface; DHCP relay device forwards dhcp client with interface secondary IP address and sends to the request message of Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server to send to the response message of dhcp client.
DHCP relay device is according to the address list item of local maintenance, and before judging whether interface primary ip address place network segment number of users exceedes the step of user capacity, the method also comprises: form dhcp address list item; Preserve number and the capacity information of each interface network segment address.
DHCP relay device is according to the address list item of local maintenance, judges that the step whether interface primary ip address place network segment number of users exceedes user capacity comprises: in dhcp address list item, whether the query interface primary ip address place network segment is the location, free leeway can be for distributing; If the interface primary ip address place network segment is still location, free leeway for distributing, to judge interface primary ip address place network segment number of users and not exceed user capacity, in DHCP message repeating, carry out address assignment according to the interface primary ip address place network segment; If the interface primary ip address place network segment does not have vacant address can supply to distribute, judge interface primary ip address place network segment number of users and exceed user capacity, and carry out the step to Dynamic Host Configuration Protocol server application interface secondary IP address as dhcp client structure DHCP application message.
The method of the dynamic multisegment address assignment of DHCP relay device support also comprises: if all releasing IP addresses of the user of the interface secondary IP address place network segment, DHCP relay device is to the release of Dynamic Host Configuration Protocol server application interface secondary IP address, and from interface delete interface secondary IP address.
According to a further aspect in the invention, the device of the dynamic multisegment address assignment of a kind of DHCP relay device support is provided, this device comprises: judging unit, for according to the address list item of local maintenance, judges whether interface primary ip address place network segment number of users exceedes user capacity; Structural unit, in the time that interface primary ip address place network segment number of users exceedes user capacity, as dhcp client structure DHCP application message; Transmitting element, for applying for DHCP message sends to Dynamic Host Configuration Protocol server application interface secondary IP address; Receiving element, the interface secondary IP address distributing for receiving Dynamic Host Configuration Protocol server, and secondary IP address is arranged on interface; Retransmission unit, sends to the request message of Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server to send to the response message of dhcp client for forward dhcp client with interface secondary IP address.
Dynamically the device of multisegment address assignment also comprises: forming unit, is used to form dhcp address list item; Storage unit, for preserving number and the capacity information of each interface network segment address.
Judging unit comprises: enquiry module, for whether there is location, free leeway can supply to distribute at the dhcp address list item query interface primary ip address place network segment; Judge module for still there is location, free leeway for a point timing, to judge interface primary ip address place network segment number of users and not exceed user capacity at the interface primary ip address place network segment, carries out address assignment according to the primary ip address place network segment in DHCP message repeating; Do not have vacant address can supply a point timing at the interface primary ip address place network segment, judge interface primary ip address place network segment number of users and exceed user capacity, and indication structure unit is as dhcp client structure DHCP application message, to Dynamic Host Configuration Protocol server application interface secondary IP address.
Dynamically the device of multisegment address assignment also comprises: application unit, for the user of the secondary IP address place network segment all when releasing IP addresses, to the release of Dynamic Host Configuration Protocol server application interface secondary IP address, and from interface delete interface secondary IP address.
By the present invention, adopt and judge whether interface primary ip address place network segment number of users exceedes user capacity, and in the time that interface primary ip address place network segment number of users exceedes user capacity, as dhcp client structure DHCP application message, Dynamic Host Configuration Protocol server is according to request distribution interface secondary IP address, and DHCP relay device is arranged at the interface secondary IP address getting on interface.Solved in prior art and needed the many IP of human configuration interface, DHCP relay device address assignment underaction, and cause inconvenient problem with use, and then reach can DHCP relay device can be dynamically automatic acquisition network segment address neatly, effect easy to use.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the topological relation schematic diagram according to the Dynamic Host Configuration Protocol server of correlation technique and dhcp client;
Fig. 2 is the DHCP message format schematic diagram according to correlation technique;
Fig. 3 is according to a kind of preferred structure block diagram of the device of the dynamic multisegment address assignment of DHCP relay device support of the embodiment of the present invention;
Fig. 4 is according to the another kind of structured flowchart of the device of the dynamic multisegment address assignment of DHCP relay device support of the embodiment of the present invention;
Fig. 5 is according to a kind of preferred flow charts of the method for the dynamic multisegment address assignment of DHCP relay device support of the embodiment of the present invention;
Fig. 6 is according to the another kind of flow chart of the method for the dynamic multisegment address assignment of DHCP relay device support of the embodiment of the present invention;
Fig. 7 is according to the applied topology schematic diagram of the method for the dynamic multisegment address assignment of DHCP relay device support of the embodiment of the present invention;
Fig. 8 is according to the DHCP message format schematic diagram of the method for the dynamic multisegment address assignment of DHCP relay device support of the embodiment of the present invention.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.
Embodiment 1
Fig. 3 has shown a kind of preferred structure block diagram of the device of the dynamic multisegment address assignment of DHCP relay device support, referring to Fig. 3, this device comprises: the judging unit 302, structural unit 304, transmitting element 306, receiving element 308 and the retransmission unit 310 that connect successively, wherein:
Judging unit 302, according to the address list item of local maintenance, judges whether interface primary ip address place network segment number of users exceedes user capacity;
Structural unit 304 is in the time that interface primary ip address place network segment number of users exceedes user capacity, as dhcp client structure DHCP application message;
Transmitting element 306 applies for that by DHCP message sends to Dynamic Host Configuration Protocol server application interface secondary IP address;
Receiving element 308 receives the interface secondary IP address that Dynamic Host Configuration Protocol server distributes, and interface secondary IP address is arranged on interface;
Retransmission unit 310 forwards dhcp client with interface secondary IP address and sends to the request message of Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server to send to the response message of dhcp client.
In general, an interface can configure multiple IP address, and one of them is interface primary ip address, and all the other are all interface secondary IP address.In the Allocation Theory of interface secondary IP address, there is no number restriction, but interface secondary IP address and main IP and belong to heterogeneous networks from address between IP.
In this preferred embodiment, adopt and judge whether interface primary ip address place network segment number of users exceedes user capacity, and in the time that interface primary ip address place network segment number of users exceedes user capacity, as dhcp client structure DHCP application message, Dynamic Host Configuration Protocol server is according to request distribution interface secondary IP address, and DHCP relay device is arranged at the interface secondary IP address getting on interface.Solved in prior art and needed the many IP of human configuration interface, DHCP relay device address assignment underaction, and cause inconvenient problem with use, and then reach can DHCP relay device can be dynamically automatic acquisition network segment address neatly, effect easy to use.
Based on Fig. 3, Fig. 4 has shown the another kind of structured flowchart of the device of the dynamic multisegment address assignment of DHCP relay device support, this device also comprises: the forming unit 312 and the storage unit 314 that connect successively, connect the application unit 316 of retransmission unit 310, wherein storage unit 314 connection judgment unit 302, wherein:
The situation of obtaining of user's IP address in forming unit 312 local monitor DHCP message accounting local area network (LAN)s, and form dhcp address list item;
Storage unit 314 is preserved number and the capacity information of each interface network segment address.
Application unit 316 is the user of the interface secondary IP address place network segment all when releasing IP addresses, to the release of Dynamic Host Configuration Protocol server application interface secondary IP address, and from interface delete interface secondary IP address.
In this preferred embodiment, after network capacity reduces, can automatically apply for realizing interface secondary IP address, thereby really reach the ability of dynamic self-adapting.
Wherein, judging unit 302 comprises: the enquiry module 3021 and the judge module 3022 that connect successively, and wherein enquiry module 3021 connects storage unit 314, and judge module 3022 connects structural unit 304,
Whether enquiry module 3021 query interface primary ip address place network segment in dhcp address list item is location, free leeway can supply to distribute;
Judge module 3022 is still location, free leeway can supply a point timing at the interface primary ip address place network segment, judge interface primary ip address place network segment number of users and do not exceed user capacity, in DHCP message repeating, carry out address assignment according to the interface primary ip address place network segment; Do not have vacant address can supply a point timing at the interface primary ip address place network segment, judge interface primary ip address place network segment number of users and exceed user capacity, and indication structure unit 304 is as dhcp client structure DHCP application message, to Dynamic Host Configuration Protocol server application interface secondary IP address.
What deserves to be explained is, in the present embodiment, only illustrated that DHCP relay device is to interface secondary IP address of Dynamic Host Configuration Protocol server application, for being assigned with and being at this interface secondary IP address of application, can also again apply for another interface secondary IP address.
Embodiment 2
Fig. 5 has shown a kind of preferred flow charts of the method for the dynamic multisegment address assignment of DHCP relay device support, and referring to Fig. 5, the method comprises:
S502, DHCP relay device, according to the address list item of local maintenance, judges whether interface primary ip address place network segment number of users exceedes user capacity;
S504, in the time that interface primary ip address place network segment number of users exceedes user capacity, DHCP relay device is as dhcp client structure DHCP application message;
S506, DHCP relay device applies for that by DHCP message sends to Dynamic Host Configuration Protocol server application interface secondary IP address;
S508, DHCP relay device receives the interface secondary IP address that Dynamic Host Configuration Protocol server distributes, and interface secondary IP address is arranged on interface;
S510, DHCP relay device forwards dhcp client with interface secondary IP address and sends to the request message of Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server to send to the response message of dhcp client.
In this preferred embodiment, adopt and judge whether interface primary ip address place network segment number of users exceedes user capacity, and in the time that interface primary ip address place network segment number of users exceedes user capacity, as dhcp client structure DHCP application message, Dynamic Host Configuration Protocol server is according to request distribution interface secondary IP address, and DHCP relay device is arranged at the interface secondary IP address getting on interface.Solved in prior art and needed the many IP of human configuration interface, DHCP relay device address assignment underaction, and cause inconvenient problem with use, and then reach can DHCP relay device can be dynamically automatic acquisition network segment address neatly, effect easy to use.
Based on Fig. 5, Fig. 6 has shown the another kind of flow chart of the method for the dynamic multisegment address assignment of DHCP relay device support, and wherein step S502, according to the address list item of local maintenance, before judging whether interface primary ip address place network segment number of users exceedes the step of user capacity, the method also comprises:
S500, the situation of obtaining of user's IP address in local monitor DHCP message accounting local area network (LAN), and form dhcp address list item;
S501, preserves number and the capacity information of each interface network segment address.
Wherein, the method also comprises:
S512, if all releasing IP addresses of the user of the interface secondary IP address place network segment, DHCP relay device is to the release of Dynamic Host Configuration Protocol server application interface secondary IP address, and from interface delete interface secondary IP address.
Certainly the step that application interface secondary IP address discharges can be at step S510, DHCP relay device forwards dhcp client with interface secondary IP address and sends to after the request message of Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server send to the step of response message of dhcp client, also can be in the process E-Packeting, as long as all releasing IP addresses of the user of the interface secondary IP address place network segment, just can apply for.
In this preferred embodiment, after network capacity reduces, can automatically apply for realizing interface secondary IP address, thereby really reach the ability of dynamic self-adapting.
Step S502, judges that the step whether interface primary ip address place network segment number of users exceedes user capacity comprises:
S5021, in dhcp address list item, whether the query interface primary ip address place network segment is location, free leeway can supply to distribute;
S5022 if the interface primary ip address place network segment is still location, free leeway for distributing, to judge interface primary ip address place network segment number of users and not exceed user capacity, carries out address assignment according to the interface primary ip address place network segment in DHCP message repeating; If the interface primary ip address place network segment does not have vacant address for distributing, to judge interface primary ip address place network segment number of users and to exceed user capacity, and to carry out S504, as the step of dhcp client structure DHCP application message.
What deserves to be explained is, in the present embodiment, only illustrated that DHCP relay device is to interface secondary IP address of Dynamic Host Configuration Protocol server application, for being assigned with and being at this interface secondary IP address of application, can also again apply for another interface secondary IP address.
Embodiment 3
The present embodiment provides an instantiation of the method for the dynamic multisegment address assignment of DHCP relay device support, Fig. 7 has shown the applied topology schematic diagram of the method for the dynamic multisegment address assignment of DHCP relay device support, referring to Fig. 7, visible this topology comprises following network element: the DHCP relay device 704 of Dynamic Host Configuration Protocol server 702, connection Dynamic Host Configuration Protocol server 702, several clients (PC) 706 of connection DHCP relay device 704.
As shown in Figure 7, the present embodiment has been realized the IP application IP addresses of dynamic multisegment by DHCP relay device a local area network (LAN) inside, possess adaptive adjustment capability, has met the demand of holding large-capacity user a local area network (LAN) inside.After number of users in local area network (LAN) exceedes the number of users that the LAN gateway interface primary ip address place network segment holds, DHCP relay device can be simultaneously as dhcp client to Dynamic Host Configuration Protocol server application interface secondary IP address, and be arranged at above interface.Thereby DHCP relay device is that user assignment is from interface IP address according to interface from IP network section.
As can be seen here, adopt technical scheme of the present invention, the restricted problem that both can solve LAN subscriber and count capacity, also can solve the problem of IP address waste, also solved simultaneously keeper need to be on an interface trouble of pre-configured many IP address.
Thus, the DHCP relay device 704 of the present embodiment possesses following function:
1. interface IP address dynamic management:
DHCP relay device 704 possesses address learning ability, forms dhcp address list item in this locality, records number and the capacity information of network segment address.In the time that interface primary ip address place network segment number of users has exceeded user capacity, automatically construct DHCP application message and apply for interface secondary IP address to Dynamic Host Configuration Protocol server 702.
Referring to Fig. 7: client 706 (PC1~PC400) belongs to a local area network (LAN) inside, and this switching device interface primary ip address is 192.168.1.1/24.DHCP relay device 704 local records these IP address assignment information.DHCP relay device 704 is inquired about the information of the address assignment in dhcp address list item in the time E-Packeting, still have vacant address can divide timing when inquiring interface primary ip address (192.168.1.1) the place network segment, carry out address assignment from the interface primary ip address place network segment.When the number of users of the interface primary ip address place network segment has exceeded the user capacity that the interface primary ip address place network segment can hold, DHCP relay device 704, and is arranged on interface to Dynamic Host Configuration Protocol server application interface secondary IP address place network segment address as client.
In the process of DHCP relay device 704 applied addresses, DHCP relay device 704 possesses dhcp client ability, can construct DHCP application message and apply for IP address to Dynamic Host Configuration Protocol server 702, and this is identical with client structure request message in prior art.
When the network user in local area network (LAN) reduces, and the user of the interface secondary IP address place network segment by interface secondary IP address discharge after, DHCP relay device 704 can by interface secondary IP address to Dynamic Host Configuration Protocol server 702 apply for discharge.Can effectively solve the address assignment managerial ability of interface by this function.
2.DHCP repeater message repeating:
As seen from the above description, DHCP relay device 704 can dynamically be applied for interface network segment IP address, when can automatically carrying out dynamic address application after network user's exceed capacity.Referring to Fig. 8, DHCP relay device 704 completes after the application of interface secondary IP address, available interface secondary IP address will be selected, if judgement first interface secondary IP address is full, so just with the second interface secondary IP address, by that analogy, and the IP address of selection is filled into the giaddr field in DHCP message, makes Dynamic Host Configuration Protocol server 702 distribute the IP address of different segment.
Now, client 706 has been assigned to the corresponding network segment address of interface secondary IP address.The IP address of the gateway of now client setting can be the first address or the second address, i.e. arbitrary address on interface, and client 706 can be communicated by letter and normally be used network.Conventionally on disposing, the interface secondary IP address network segment and the gateway address network segment are arranged consistent, therefore in concrete deployment enforcement, need on Dynamic Host Configuration Protocol server, configure the appointment gateway consistent with the client ip address network segment in corresponding address pool.
The present embodiment has exemplified a simple execution mode, cardinal principle is according to user capacity situation by DHCP relay device, automatically be arranged on interface to Dynamic Host Configuration Protocol server application interface secondary IP address as dhcp client, utilize afterwards interface secondary IP address to carry out message repeating, the demand that has solved multisegment station address application in local area network (LAN), possesses adaptive change ability.
As can be seen from the above description, the present invention has realized following technique effect: the present invention has realized DHCP relay device dynamic ability of adjusting network capacity in a local area network (LAN); Realize the demand that DHCP distributes multisegment in a local area network (LAN); Largely, reduce the waste problem of IP address.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (8)

1. a method for the dynamic multisegment address assignment of DHCP relay device support, is characterized in that, comprising:
DHCP relay device, according to the address list item of local maintenance, judges whether interface primary ip address place network segment number of users exceedes user capacity;
In the time that interface primary ip address place network segment number of users exceedes user capacity, DHCP relay device is as dhcp client structure DHCP application message;
DHCP relay device applies for that by DHCP message sends to Dynamic Host Configuration Protocol server application interface secondary IP address;
DHCP relay device receives the interface secondary IP address that Dynamic Host Configuration Protocol server distributes, and described interface secondary IP address is arranged on interface;
DHCP relay device forwards dhcp client with described interface secondary IP address and sends to the request message of Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server to send to the response message of dhcp client.
2. method according to claim 1, is characterized in that, described DHCP relay device, according to the address list item of local maintenance, before judging whether interface primary ip address place network segment number of users exceedes the step of user capacity, also comprises:
Form dhcp address list item;
Preserve number and the capacity information of each interface network segment address.
3. method according to claim 1, is characterized in that, described DHCP relay device is according to the address list item of local maintenance, judges that the step whether interface primary ip address place network segment number of users exceedes user capacity comprises:
Whether in dhcp address list item, inquire about the described interface primary ip address place network segment is location, free leeway can supply to distribute;
If the described interface primary ip address place network segment is still location, free leeway for distributing, to judge interface primary ip address place network segment number of users and not exceed user capacity, in DHCP message repeating, carry out address assignment according to the described interface primary ip address place network segment;
If the described interface primary ip address place network segment does not have vacant address can supply to distribute, judge interface primary ip address place network segment number of users and exceed user capacity, and carry out the step to Dynamic Host Configuration Protocol server application interface secondary IP address as dhcp client structure DHCP application message.
4. method according to claim 1, it is characterized in that, also comprise: if all releasing IP addresses of the user of the described interface secondary IP address place network segment, DHCP relay device is to the release of interface secondary IP address described in Dynamic Host Configuration Protocol server application, and deletes described interface secondary IP address from interface.
5. a device for the dynamic multisegment address assignment of DHCP relay device support, is characterized in that, comprising:
Judging unit, for according to the address list item of local maintenance, judges whether interface primary ip address place network segment number of users exceedes user capacity;
Structural unit, in the time that interface primary ip address place network segment number of users exceedes user capacity, as dhcp client structure DHCP application message;
Transmitting element, for applying for DHCP message sends to Dynamic Host Configuration Protocol server application interface secondary IP address;
Receiving element, the interface secondary IP address distributing for receiving Dynamic Host Configuration Protocol server, and described interface secondary IP address is arranged on interface;
Retransmission unit, sends to the request message of Dynamic Host Configuration Protocol server and Dynamic Host Configuration Protocol server to send to the response message of dhcp client for forward dhcp client with described interface secondary IP address.
6. device according to claim 5, is characterized in that, also comprises:
Forming unit, is used to form dhcp address list item;
Storage unit, for preserving number and the capacity information of each interface network segment address.
7. device according to claim 5, is characterized in that, described judging unit comprises:
Whether enquiry module, be location, free leeway can supply to distribute for inquire about the described interface primary ip address place network segment at dhcp address list item;
Judge module, for still there is location, free leeway can supply a point timing at the described interface primary ip address place network segment, judge interface primary ip address place network segment number of users and do not exceed user capacity, in DHCP message repeating, carry out address assignment according to the described interface primary ip address place network segment; Do not have vacant address can supply a point timing at the described interface primary ip address place network segment, judge interface primary ip address place network segment number of users and exceed user capacity, and indicate described structural unit as dhcp client structure DHCP application message, to Dynamic Host Configuration Protocol server application interface secondary IP address.
8. device according to claim 5, is characterized in that, also comprises, application unit, for, to the release of interface secondary IP address described in Dynamic Host Configuration Protocol server application, and deleting to described interface secondary IP address from interface all when releasing IP addresses the user of the described secondary IP address place network segment.
CN201110227099.5A 2011-08-09 2011-08-09 Method of dynamic multiple network segment address distribution supported by dynamic host configuration protocol (DHCP) repeater and apparatus thereof Expired - Fee Related CN102355404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110227099.5A CN102355404B (en) 2011-08-09 2011-08-09 Method of dynamic multiple network segment address distribution supported by dynamic host configuration protocol (DHCP) repeater and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110227099.5A CN102355404B (en) 2011-08-09 2011-08-09 Method of dynamic multiple network segment address distribution supported by dynamic host configuration protocol (DHCP) repeater and apparatus thereof

Publications (2)

Publication Number Publication Date
CN102355404A CN102355404A (en) 2012-02-15
CN102355404B true CN102355404B (en) 2014-06-04

Family

ID=45578901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110227099.5A Expired - Fee Related CN102355404B (en) 2011-08-09 2011-08-09 Method of dynamic multiple network segment address distribution supported by dynamic host configuration protocol (DHCP) repeater and apparatus thereof

Country Status (1)

Country Link
CN (1) CN102355404B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413203A (en) * 2011-12-01 2012-04-11 中兴通讯股份有限公司 IP (Internet Protocol) address allocation method and device
EP2890052A1 (en) 2013-12-27 2015-07-01 Telefonica S.A. Method and system for dynamic network configuration and access to services of devices

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889572A (en) * 2006-07-27 2007-01-03 杭州华为三康技术有限公司 Internet protocol address distributing method and dynamic main machine configuration protocol relay
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN102118453A (en) * 2009-12-31 2011-07-06 华为技术有限公司 Method, service device, client and communication system for automatic configuration of IP address

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8214477B2 (en) * 2005-12-29 2012-07-03 France Telecom Method and apparatus for dynamic assignment of sets of addresses

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN1889572A (en) * 2006-07-27 2007-01-03 杭州华为三康技术有限公司 Internet protocol address distributing method and dynamic main machine configuration protocol relay
CN102118453A (en) * 2009-12-31 2011-07-06 华为技术有限公司 Method, service device, client and communication system for automatic configuration of IP address

Also Published As

Publication number Publication date
CN102355404A (en) 2012-02-15

Similar Documents

Publication Publication Date Title
US7852868B2 (en) Method and apparatus for establishing circuit connections over local area networks with frequency selective impairments
CN101478576B (en) Method, apparatus and system for selecting service network
US20150334085A1 (en) Method and Apparatus for Acquiring IP Address by DHCP Client
CN102387222B (en) Address distribution method, apparatus and system thereof
CN102025798A (en) Address allocation processing method, device and system
CN104243190B (en) A kind of method and the network equipment for realizing zero configuration networking protocol service
CN101600001B (en) Method and device for acquiring configuration information based on dynamic host configuration protocol
CN102857587B (en) The method and system in dynamic address pond are shared under multi-VLAN environment
CN103248720A (en) Method and device for inquiring physical address
CN100486198C (en) Method to search access controller in wireless LAN and proxy server
CN101873320B (en) Client information verification method based on DHCPv6 relay and device thereof
CN103684966A (en) Method and device for processing dynamic host configuration protocol messages
US20060045119A1 (en) Main station and substation in a network and a method for transmitting data in a network
CN102413199A (en) System and method for creating and reporting address mapping relations by broadband remote access server
CN102752413A (en) Method for selecting DHCP (dynamic host configuration protocol) server and network equipment
CN101018193A (en) Load distribution method and system and device for allocating the backup packet and virtual IP address
US6611859B1 (en) Address setting method, client apparatus, server apparatus and client-server system
CN102355404B (en) Method of dynamic multiple network segment address distribution supported by dynamic host configuration protocol (DHCP) repeater and apparatus thereof
CN102594839A (en) Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards
CN102572003B (en) Method and system for acquiring and processing multiplexing address and port range
CN106330511B (en) Network element equipment and method for opening data communication network
CN101808145B (en) IP address distributing method and system
CN104468159A (en) Management method and device of dynamic host configuration protocol server and relay
CN103501354A (en) Method and device for obtaining base station self-starting configuration parameters
US6741573B1 (en) Method and apparatus for dynamically assigning a satellite link

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140604

Termination date: 20210809

CF01 Termination of patent right due to non-payment of annual fee