CN101626406B - DHCP address pool configuration method, DHCP address assignment method, DHCP address assignment system and DHCP server - Google Patents

DHCP address pool configuration method, DHCP address assignment method, DHCP address assignment system and DHCP server Download PDF

Info

Publication number
CN101626406B
CN101626406B CN200910162933XA CN200910162933A CN101626406B CN 101626406 B CN101626406 B CN 101626406B CN 200910162933X A CN200910162933X A CN 200910162933XA CN 200910162933 A CN200910162933 A CN 200910162933A CN 101626406 B CN101626406 B CN 101626406B
Authority
CN
China
Prior art keywords
address
dhcp
prefix
pond
subaddressing
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
CN200910162933XA
Other languages
Chinese (zh)
Other versions
CN101626406A (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.)
New 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 CN200910162933XA priority Critical patent/CN101626406B/en
Publication of CN101626406A publication Critical patent/CN101626406A/en
Application granted granted Critical
Publication of CN101626406B publication Critical patent/CN101626406B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a DHCP address pool configuration method. The method comprises the following steps: S1. assigning a root address pool to a DHCP server, wherein an address prefix of the root address pool is obtained from an ISP; and S2. configuring a plurality of subsidiary address pools in the DHCP server based on the root address pool, wherein an address prefix of each subsidiary address pool comprises a parent prefix and a subsidiary prefix, and the parent prefix inherits the address prefix of the root address pool. The invention also provides a DHCP address assignment method, the DHCP server and a DHCP address assignment system. The invention can be applied so that the address pools on the DHCP server can automatically vary with the network address prefixes provided by the ISP to further lower the workload of manual modification.

Description

Dhcp address pool collocation method, dhcp address distribution method and system and Dynamic Host Configuration Protocol server
Technical field
The present invention relates to the DHCP technology, particularly relate to a kind of dhcp address pool collocation method, dhcp address distribution method and system and Dynamic Host Configuration Protocol server.
Background technology
In the TCP/IP network, every main frame must carry out basic network configuration as if the resource of wanting on the energy access network, and the configuration of some major parameters (such as IP address, subnet mask, gateway and dns server etc.) is essential.
Configuration for network parameter in the prior art comprises manual mode and DHCP (Dynamic HostConfiguration Protocol, DHCP) mode.Because the DHCP mode can be save the loaded down with trivial details step of manual configuration, it has become network parameter configuration mode more common in the local area network (LAN).
In the DHCP mode, dispose address pool on the DHCP server (server), so that assignable address field to be provided, and specify information such as gateway, dns server, wherein, the high order n position of address field be its address prefix (n is the prefix length of this address field).When a plurality of local area network (LAN)s used a Dynamic Host Configuration Protocol server, Dynamic Host Configuration Protocol server need dispose a plurality of address pool.
See also shown in Figure 1ly, it is for belonging to the dhcp client of LAN and the networking schematic diagram of Dynamic Host Configuration Protocol server in the prior art.In this network architecture, dhcp client 1-4 belongs to local area network (LAN) 1; Dhcp client 5-8 belongs to local area network (LAN) 2; Dynamic Host Configuration Protocol server disposes address pool P1, P2, and address field, gateway information that address pool P1 and P2 provided are as shown in table 1, and the address field that dhcp client 1-4 is obtained from address pool P1 by DHCP relay 1 is 1.1.1.0/24, and gateway is 1.1.1.1; The address field that dhcp client 5-8 is obtained from address pool P2 by DHCP relay 2 is 1.1.2.0/24, and gateway is 1.1.2.1.Because Dynamic Host Configuration Protocol server is identical usually to other information such as dns server that LAN provided, so do not list in table 1.
The address pool title Address field Gateway
P1 1.1.1.0/24 1.1.1.1
P2 1.1.2.0/24 1.1.2.1
Table 1
DHCP relay is that the detailed process of dhcp client log on parameter is: after DHCP relay is received the request message of dhcp client, this message is inserted in the address of receiving the interface of this message, clean culture is forwarded to Dynamic Host Configuration Protocol server then; When Dynamic Host Configuration Protocol server is received the dhcp client request message that DHCP relay sends over, can seek the address pool that matches according to the interface IP address (this address is the interface IP address that DHCP relay links to each other with dhcp client, is commonly referred to the downstream interface address) of the DHCP relay that carries in the message.For example, when the DHCP relay interface IP address was 1.1.1.1, then Dynamic Host Configuration Protocol server can distribute the address for dhcp client in address pool P1.
Each address field in the address pool all is by ISP (Internet Service Provider, Internet service provider) provide, therefore, when the ISP of network change, corresponding the changing of address prefix meeting of common each address field, this just needs the network manager that network is carried out re-mapping.
Use the DHCP mode to carry out the re-mapping of network, though the new address of main frame can be by renewing a contract or applying for again obtaining, need not manual modification, but information such as the address field of all address pool of Dynamic Host Configuration Protocol server, gateway, and the downstream interface address of all DHCP relay still needs manual modification one by one, this still has certain workload, and especially the latter need log on every DHCP relay equipment and carry out manual modification.Workload is along with the quantity of local area network (LAN) increases and linear increasing, and the configuration probability of errors also can increase.
Summary of the invention
In view of this, the invention provides a kind of dhcp address pool collocation method, when changing with the network address prefix of realizing providing as ISP, the address pool on the Dynamic Host Configuration Protocol server can change automatically thereupon, and then reduces the manual workload of revising of address pool on the Dynamic Host Configuration Protocol server.
Corresponding with said method, the present invention also provides a kind of dhcp address distribution method, Dynamic Host Configuration Protocol server and dhcp address distribution system.
The object of the invention to solve the technical problems realizes by the following technical solutions.A kind of dhcp address pool collocation method according to the present invention proposes comprises: step S1. is that Dynamic Host Configuration Protocol server distributes the root address pool, and the address prefix of described address pool obtains from ISP; Step S2. disposes pond, a plurality of subaddressing based on described address pool in Dynamic Host Configuration Protocol server, the address prefix in pond, described subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from described address pool.
The object of the invention to solve the technical problems also can be applied to the following technical measures to achieve further.
Aforesaid dhcp address pool collocation method, among the step S2, disposing pond, a plurality of subaddressing based on described address pool in Dynamic Host Configuration Protocol server is specially: dispose each address pool and form tree structure, to indicate set membership between each address pool, wherein, the pond, subaddressing with the address prefix of his father's address pool as his father's prefix.
The object of the invention to solve the technical problems also realizes in addition by the following technical solutions.A kind of dhcp address distribution method according to the present invention proposes comprises: step S1. is that Dynamic Host Configuration Protocol server distributes the root address pool, and the address prefix of described address pool obtains from ISP; Step S2. disposes pond, a plurality of subaddressing based on described address pool in Dynamic Host Configuration Protocol server, the address prefix in pond, described subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from described address pool; Step S3.DHCP client is obtained the IP address by its DHCP relay from the pond, subaddressing of correspondence.
The object of the invention to solve the technical problems also can be applied to the following technical measures to achieve further.
Aforesaid dhcp address distribution method, among the step S2, disposing pond, a plurality of subaddressing based on described address pool in Dynamic Host Configuration Protocol server is specially: dispose each address pool and form tree structure, to indicate set membership between each address pool, wherein, the pond, subaddressing with the address prefix of his father's address pool as his father's prefix.
Aforesaid dhcp address distribution method, described each pond, subaddressing includes one in order to identify the network ID of its corresponding subnet; Step S3 is specially: dhcp client obtains the IP address by its DHCP relay ID Network Based from the pond, subaddressing of correspondence.
Aforesaid dhcp address distribution method, step S3 comprises: step S31.DHCP relaying sends the unitcast request message to Dynamic Host Configuration Protocol server, comprises network ID in the described request message; The described Dynamic Host Configuration Protocol server of step S32. selects the corresponding address pond to come to be described DHCP relay allocation of downlink interface IP address according to described network ID, and writes down this address with the gateway information as the corresponding address pond; Step S33.DHCP client is obtained the IP address by described DHCP relay from its corresponding address pond.
Aforesaid dhcp address distribution method when the address prefix of described address pool changes, also comprises after the step S3: described Dynamic Host Configuration Protocol server notice DHCP relay of step S4. and dhcp client carry out application IP addresses again.
Aforesaid dhcp address distribution method, step S4 comprises: the described Dynamic Host Configuration Protocol server of step S41. sends the DHCP relay of a DHCP NAK message to its record, carries network ID in the described DHCP NAK message; The described DHCP relay of step S42. is applied for the downstream interface address again to described Dynamic Host Configuration Protocol server after receiving a described DHCP NAK message, and sends the dhcp client of the 2nd DHCPNAK message to its record; After the described dhcp client of step S43. is received described the 2nd DHCPNAK message, again to Dynamic Host Configuration Protocol server application IP address.
The object of the invention to solve the technical problems realizes in addition more by the following technical solutions.A kind of Dynamic Host Configuration Protocol server according to the present invention proposes comprises: root address pool dispensing unit, and be used to this Dynamic Host Configuration Protocol server to distribute the root address pool, the address prefix of described address pool obtains from ISP; Pond, subaddressing dispensing unit, be connected with described address pool dispensing unit, be used to dispose the pond, subaddressing based on described address pool, the address prefix in pond, described subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from described address pool.
Aforesaid Dynamic Host Configuration Protocol server, pond, described subaddressing dispensing unit also are used to dispose each address pool and form tree structure, to indicate set membership between each address pool, wherein, the pond, subaddressing with the address prefix of his father's address pool as his father's prefix.
Aforesaid Dynamic Host Configuration Protocol server also comprises: allocation unit, be connected with pond, described subaddressing dispensing unit, and being used for by DHCP relay is dhcp client distributing IP address from the pond, subaddressing of correspondence.
Aforesaid Dynamic Host Configuration Protocol server, pond, described subaddressing dispensing unit also are used to pond, described subaddressing respectively to dispose one in order to identify the network ID of its corresponding subnet.
Aforesaid Dynamic Host Configuration Protocol server, also comprise: notification unit, be connected with described allocation unit with pond, described subaddressing dispensing unit respectively, be used for when the address prefix in the pond, subaddressing that pond, described subaddressing dispensing unit is disposed changes, the notice DHCP relay carries out application IP addresses again.
Aforesaid Dynamic Host Configuration Protocol server, described notification unit carries out application IP addresses by sending a DHCP NAK message again to notify described DHCP relay, carries the network ID of address pool correspondence in the described DHCP NAK message.
The object of the invention to solve the technical problems realizes in addition more by the following technical solutions.A kind of dhcp address distribution system according to the present invention's proposition, comprise: Dynamic Host Configuration Protocol server, it disposes the pond, subaddressing that obtains the root address pool and the described address pool of address prefix from ISP, the address prefix in pond, described subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from described address pool; DHCP relay is used for finding corresponding pond, subaddressing to obtain the downstream interface address from pond, described a plurality of subaddressing; Dhcp client is used for obtaining the IP address by described DHCP relay from its corresponding pond, subaddressing.
As shown from the above technical solution, the present invention has following beneficial effect:
Each address pool on the Dynamic Host Configuration Protocol server is set up association by the succession mode, pond, subaddressing uncle's address pool is obtained address prefix as his father's prefix, when network address prefix changes, address pool and DHCP relay downstream interface address can change automatically thereupon on the Dynamic Host Configuration Protocol server, and then reduce the manual workload of revising.
With reference to the accompanying drawing description of a preferred embodiment, above-mentioned and other purpose of the present invention, feature and advantage will be more obvious by following.
Description of drawings
Fig. 1 belongs to the dhcp client of LAN and the networking schematic diagram of Dynamic Host Configuration Protocol server in the prior art;
Fig. 2 is the flow chart of dhcp address pool collocation method one embodiment of the present invention;
Fig. 3 is an IPv4 address field form schematic diagram provided by the invention;
Fig. 4 is an IPv6 address field form schematic diagram provided by the invention;
The tree schematic diagram of Fig. 5 for concerning between each address pool in the sign Dynamic Host Configuration Protocol server of one embodiment of the invention;
Fig. 6 is the flow chart of dhcp address distribution method one embodiment of the present invention;
Fig. 7 is the flow chart of dhcp address distribution method one preferred embodiment of the present invention;
Fig. 8 is the schematic diagram of Dynamic Host Configuration Protocol server one embodiment of the present invention;
Fig. 9 is the schematic diagram of Dynamic Host Configuration Protocol server one preferred embodiment of the present invention.
Embodiment
To describe specific embodiments of the invention in detail below.Should be noted that the embodiments described herein only is used to illustrate, be not limited to the present invention.
General idea of the present invention is: for Dynamic Host Configuration Protocol server distributes the root address pool, the address prefix of root address pool obtains from ISP; And on Dynamic Host Configuration Protocol server the configuration pond, subaddressing, the address prefix in pond, subaddressing is made of father's prefix and sub-prefix, his father's prefix is inherited the address prefix from described address pool, make the pond, subaddressing set up related with the root address pool like this by the mode of inheriting, to realize when the ISP of network changes, only need to revise the root address pool and can change all ponds, subaddressing automatically.
In order to realize above-mentioned conception, the present invention proposes a kind of dhcp address pool collocation method, see also shown in Figure 2ly, in the present embodiment, this method comprises:
Step S1: for Dynamic Host Configuration Protocol server distributes the root address pool, the address prefix of root address pool obtains from ISP.
Step S2: dispose pond, a plurality of subaddressing based on the root address pool in Dynamic Host Configuration Protocol server, the address prefix in pond, subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from the root address pool.
The present invention is divided into father's prefix and sub-prefix with the address prefix in pond, subaddressing, as shown in Figures 3 and 4, Fig. 3 is to be example with the address field among the IPv4 (Internet Protocol the 4th edition), the length of address field is 32 bits among the IPv4, high order n+m bit is this address field address prefix, wherein preceding n bit is father's prefix, and m bit thereafter is the sub-prefix of this address field; Fig. 4 is to be example with the address field among the IPv6 (Internet Protocol the 6th edition), the length of address field is 128 bits among the IPv6, and similarly, its high order n+m bit is this address field address prefix, wherein preceding n bit is father's prefix, and m bit thereafter is the sub-prefix of this address field.
It will be appreciated by those skilled in the art that, the length of address prefix is short more, the main frame position can be long more, this address field is many more for addresses distributed quantity, like this, the length that how much decides pond, subaddressing prefix that can subnet required address quantity, in addition, the number in the pond, subaddressing of configuration is at least the subnet number.
For example, in IPv4, the address field that the root address pool is obtained from ISP is 1.1.0.0/16, and it can support to reach 2 16-2=65534 node promptly can be 65534 dhcp clients and distributes the address; If in the network planning, needing further to the root address pool disposes sub-prefix length is 4 pond, subaddressing, pond, the subaddressing number that then can distribute in Dynamic Host Configuration Protocol server is 16, as shown in table 2, wherein 8 of the high orders of address field are the address prefix of root address pool, be father's prefix in this pond, subaddressing, 9-12 position (black matrix is represented) is 4 seat prefixes, and then can dispose pond, subaddressing as shown in table 2.
Address pool The address field binary representation The address field decimal representation
1 00000001.00000001.00000000.00000000 1.1.0.0/20
2 00000001.00000001.00010000.00000000 1.1.16.0/20
3 00000001.00000001.00100000.00000000 1.1.32.0/20
4 00000001.00000001.00110000.00000000 1.1.48.0/20
5 00000001.00000001.01000000.00000000 1.1.64.0/20
6 00000001.00000001.01010000.00000000 1.1.80.0/20
7 00000001.00000001.01100000.00000000 1.1.96.0/20
8 00000001.00000001.01110000.00000000 1.1.112.0/20
9 00000001.00000001.10000000.00000000 1.1.128.0/20
10 00000001.00000001.10010000.00000000 1.1.144.0/20
11 00000001.00000001.10100000.00000000 1.1.160.0/20
12 00000001.00000001.10110000.00000000 1.1.176.0/20
13 00000001.00000001.11000000.00000000 1.1.192.0/20
14 00000001.00000001.11010000.00000000 1.1.208.0/20
15 00000001.00000001.11100000.00000000 1.1.224.0/20
16 00000001.00000001.11110000.00000000 1.1.240.0/20
Table 2
Because father's prefix in pond, subaddressing is inherited the address prefix from the root address pool, it is related to make root address pool and pond, subaddressing set up in Dynamic Host Configuration Protocol server, and then realizes the interlock in root address pool and pond, subaddressing.
In the step S2 of present embodiment, disposing pond, a plurality of subaddressing based on described address pool in Dynamic Host Configuration Protocol server is specially: dispose each address pool (comprising root address pool and pond, aforesaid subaddressing) and form tree structure, to indicate the set membership between each address pool, wherein, as his father's prefix, the pond, subaddressing here is for father's address pool with the address prefix of his father's address pool for the pond, subaddressing.
See also shown in Figure 5ly, it indicates the tree example of each address pool relation for the present invention, and existing is that example illustrates the set membership between pond, location, various places with this IPv4 tree figure.
Wherein, P1 is the root address pool, and P2 and P3 are the pond, subaddressing of P1, and P4 is the pond, subaddressing of P3, and P5 and P6 are the pond, subaddressing of P4; The prefix length in each pond, subaddressing is set when the network planning.
The address prefix of P1 address field (1.1.0.0/16) is directly to obtain from ISP, P3 is father's address pool with P1, therefore, its address prefix with P1 " 00000001.00000001/16 " is as his father's prefix, add 4 sub-prefix " 1001/4 ", be " 00000001.00000001.1001/20 " thereby obtain its address prefix, the address field among the address pool P3 is 00000001.00000001.10010000.00000000/20, decimally is expressed as 1.1.144.0/20.
Correspondingly, address pool P4 with P3 as father's address pool, with the address prefix " 00000001.00000001.1001/20 " of P3 as his father's prefix, add 4 sub-prefix " 0001/4 ", thereby obtain its address prefix and be " 00000001.00000001.10010001/24 ", address field among the address pool P4 is 00000001.00000001.10010001.00000000/24, decimally is expressed as 1.1.145.0/24.The network prefix of P5, P6 constitutes and can correspondingly analogize.
The address pool structure of last this Dynamic Host Configuration Protocol server of gained is as shown in table 3:
The address pool title Father's address pool Sub-prefix
P1 1.1.0.0/16 Do not have
P2 P1 1000/4
P3 P1 1001/4
P4 P3 0001/4
P5 P4 10000/5
P6 P4 10010/5
Table 3
Need to prove that the configuration of each node only is an example in the above IPv4 tree, those skilled in the art can determine the position of a certain address pool in tree and the length of sub-prefix according to required number of addresses.In addition, similar by tree figure and IPv4 tree figure that IPv6 forms, difference only is that address size becomes 128 bits by 32 bits.
The invention allows for a kind of dhcp address distribution method, see also shown in Figure 6, in the present embodiment, this method is carried out the step of above-mentioned address pool configuration earlier, and next execution in step S3:DHCP client is obtained the IP address by its DHCP relay from the pond, subaddressing of correspondence.
When the network planning, need determine the corresponding relation of each pond, subaddressing, DHCP relay and each subnet, preferably, as shown in table 4, each pond, subaddressing includes a network ID, this network ID is the network label of a certain subnet, can determine corresponding relation between pond, subaddressing, DHCP relay and subnet by this network ID.
The address pool title Father's address pool Sub-prefix Network ID
P1 1.1.0.0/16 Do not have Do not have
P2 P1 1000/4 1
P3 P1 1001/4 2
P4 P3 0001/4 3
P5 P4 10000/5 4
P6 P4 10010/5 5
Table 4
Owing to dispose network ID in the pond, subaddressing, DHCP relay can be sought corresponding pond, subaddressing by its network ID that carries, and then dhcp client obtains the IP address by DHCP relay from the pond, subaddressing of correspondence.
See also shown in Figure 7ly, it is for the flow chart of dhcp address distribution method one preferred embodiment of the present invention.Wherein, step S3 comprises:
Step S31:DHCP relaying sends the unitcast request message to Dynamic Host Configuration Protocol server, comprises network ID in this request message, and this network ID is determined when the network planning.
At length, DHCP relay at first can be configured to the DHCP mode and obtain the address on its downstream interface, and then to Dynamic Host Configuration Protocol server transmission unitcast request message, the unitcast request message that this request message sends when being similar to DHCP relay dhcp client in the prior art, difference is: the DHCP relay interface IP address is for empty in the request message, but increase a special DHCP scaling option, this DHCP scaling option is as shown in table 5, wherein, " type " is in order to indicate the DHCP scaling option type in this request message, its value 250 and on-fixed only are example; " length " is in order to indicate the length of this DHCP scaling option; " value " is in order to indicate the network ID of a certain subnet (for example local area network (LAN)), to distinguish different subnets.
Type Length (byte) Value
250 3 Network ID
Table 5
Step S32.DHCP server selects the corresponding address pond to come to be described DHCP relay allocation of downlink interface IP address according to described network ID, and writes down this address with the gateway information as the corresponding address pond.
Owing to provide the network ID that is used to distinguish each subnet in the address pool of Dynamic Host Configuration Protocol server, and also carry network ID in the DHCP scaling option, like this, when Dynamic Host Configuration Protocol server is received request message, can seek the downstream interface address that DHCP relay is distributed in the corresponding address pond according to network ID.For example, the network ID that carries in the DHCP scaling option is " 1 ", and then Dynamic Host Configuration Protocol server can be DHCP relay allocation of downlink interface IP address from address pool P2.
Step S33:DHCP client is obtained the IP address by this DHCP relay from its corresponding address pond, dhcp client does not repeat them here by the DHCP relay application and to obtain the step of IP address identical in this step and the prior art.
As from the foregoing, when the network address prefix of ISP distribution changes, the network manager only need revise root address pool P1, the climb the tree address prefix of each address pool of type structural arrangements of Dynamic Host Configuration Protocol server all changes thereupon automatically, for example, when the address field of the root node P1 in the present embodiment became 2.2.0.0/16 by 1.1.0.0/16, preceding 16 of the address prefix in each pond, subaddressing all changed thereupon automatically, correspondingly, DHCP relay downstream interface address also can change thereupon.Thereby, need not manually to revise one by one the address pool on the Dynamic Host Configuration Protocol server and the downstream interface address of DHCP relay.
When the network address prefix as root node changes, also comprise after the step S3:
Step S4.DHCP server notification DHCP relay and dhcp client carry out application IP addresses again.
Further, step S4 comprises:
Step S41:DHCP server is according to the DHCP relay downstream interface address of writing down in its address pool, send the network ID that carries correspondence in a DHCP NAK (Negative Acknowledge negates) message the one DHCP NAK message to all DHCP relay.
After step S42.DHCP relaying is received a DHCP NAK message, again apply for the downstream interface address to Dynamic Host Configuration Protocol server, and sending the dhcp client of the 2nd DHCP NAK message to its record, the 2nd DHCP NAK message is a NAK message of the prior art, need not to carry network ID.
After step S43.DHCP client is received the 2nd DHCP NAK message,, and then finish whole renewal process again to Dynamic Host Configuration Protocol server application IP address.
Corresponding with said method, the present invention also provides a kind of Dynamic Host Configuration Protocol server.
See also shown in Figure 8ly, this Dynamic Host Configuration Protocol server comprises: root address pool dispensing unit 81 and pond, subaddressing dispensing unit 82.
Root address pool dispensing unit 81 is used to this Dynamic Host Configuration Protocol server to distribute the root address pool, and the address prefix of described address pool obtains from ISP;
Pond, subaddressing dispensing unit 82, be connected with root address pool dispensing unit 81, be used to dispose the pond, subaddressing based on described address pool, the address prefix in pond, described subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from described address pool.
In the Dynamic Host Configuration Protocol server that the present invention proposes, dispensing unit 82 antithetical phrase address pool in pond, subaddressing can realize when network address prefix changes that based on the configuration of root address pool the pond, subaddressing on the Dynamic Host Configuration Protocol server all can change automatically thereupon.
Preferably, pond, subaddressing dispensing unit 82 also is used to dispose each address pool (comprising root address pool and pond, aforesaid subaddressing) and forms tree structure, to indicate set membership between each address pool, wherein, as his father's prefix, the pond, subaddressing here is for father's address pool with the address prefix of his father's address pool for the pond, subaddressing.
See also shown in Figure 9ly, it is the schematic diagram of Dynamic Host Configuration Protocol server one preferred embodiment of the present invention.
This Dynamic Host Configuration Protocol server also comprises: allocation unit 83, and it is connected with pond, subaddressing dispensing unit 82, and being used for by DHCP relay ID Network Based is dhcp client distributing IP address from the pond, subaddressing of correspondence.
Like this, dispensing unit 82 antithetical phrase address pool in pond, subaddressing are based on the configuration of root address pool, and according to the configuration in pond, subaddressing, the distribution of 83 pairs of DHCP relay downstream interfaces of allocation unit address, can realize that when network address prefix changes pond, subaddressing on the Dynamic Host Configuration Protocol server and DHCP relay downstream interface address all can change automatically thereupon.
Further, pond, subaddressing dispensing unit 82 also is used to the pond, subaddressing respectively to dispose one in order to identify the network ID of its corresponding subnet, with the corresponding relation between sign and DHCP relay and subnet.Like this, DHCP relay just can find corresponding pond, subaddressing by this network ID.
This Dynamic Host Configuration Protocol server also comprises: notification unit 84, it is connected with allocation unit 83 with pond, subaddressing dispensing unit 82 respectively, when the address prefix that is used for the pond, subaddressing that group address pool dispensing unit 82 disposed changed, the notice DHCP relay carried out application IP addresses again.
Further, this notification unit 84 carries out application IP addresses by sending one the one DHCP NAK message again with the notice DHCP relay, carries the network ID of address pool correspondence in the DHCP NAK message.
Corresponding with above-mentioned dhcp address distribution method, the present invention also provides a kind of dhcp address distribution system, comprising: Dynamic Host Configuration Protocol server, DHCP relay and dhcp client.
Dynamic Host Configuration Protocol server disposes the pond, subaddressing that obtains root address pool He this root address pool of address prefix from ISP, and the address prefix in this pond, subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from described address pool.
DHCP relay is connected with described Dynamic Host Configuration Protocol server, is used for finding corresponding pond, subaddressing to obtain the downstream interface address from pond, a plurality of subaddressing;
Dhcp client is connected with described DHCP relay, is used for obtaining the IP address by DHCP relay from its corresponding address pond.
For the realization details of Dynamic Host Configuration Protocol server and dhcp address distribution system, can not repeat them here referring to the specific descriptions of method embodiment.
Though described the present invention with reference to several exemplary embodiments, should be appreciated that used term is explanation and exemplary and nonrestrictive term.The spirit or the essence that do not break away from invention because the present invention can specifically implement in a variety of forms, so be to be understood that, the foregoing description is not limited to any aforesaid details, and should be in the spirit and scope that claim limited of enclosing explain widely, therefore fall into whole variations in claim or its equivalent scope and remodeling and all should be the claim of enclosing and contain.

Claims (15)

1. a dhcp address pool collocation method is characterized in that, comprising:
Step S1. is a dynamic host configuration protocol DHCP server-assignment root address pool, and the address prefix of described address pool obtains from the ISP of Internet service provider;
Step S2. disposes pond, a plurality of subaddressing based on described address pool in Dynamic Host Configuration Protocol server, the address prefix in pond, described subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from described address pool.
2. dhcp address pool collocation method according to claim 1, it is characterized in that, among the step S2, disposing pond, a plurality of subaddressing based on described address pool in Dynamic Host Configuration Protocol server is specially: dispose each address pool and form tree structure, to indicate set membership between each address pool, wherein, the pond, subaddressing with the address prefix of his father's address pool as his father's prefix.
3. a dhcp address distribution method is characterized in that, comprising:
Step S1. is a dynamic host configuration protocol DHCP server-assignment root address pool, and the address prefix of described address pool obtains from the ISP of Internet service provider;
Step S2. disposes pond, a plurality of subaddressing based on described address pool in Dynamic Host Configuration Protocol server, the address prefix in pond, described subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from described address pool;
Step S3.DHCP client is obtained the IP address by its DHCP relay from the pond, subaddressing of correspondence.
4. dhcp address distribution method according to claim 3, it is characterized in that, among the step S2, disposing pond, a plurality of subaddressing based on described address pool in Dynamic Host Configuration Protocol server is specially: dispose each address pool and form tree structure, to indicate set membership between each address pool, wherein, the pond, subaddressing with the address prefix of his father's address pool as his father's prefix.
5. according to claim 3 or 4 described dhcp address distribution methods, it is characterized in that described each pond, subaddressing includes one in order to identify the network ID of its corresponding subnet;
Step S3 is specially: dhcp client obtains the IP address by its DHCP relay ID Network Based from the pond, subaddressing of correspondence.
6. dhcp address distribution method according to claim 5 is characterized in that step S3 comprises:
Step S31.DHCP relaying sends the unitcast request message to Dynamic Host Configuration Protocol server, comprises network ID in the described request message;
The described Dynamic Host Configuration Protocol server of step S32. selects the corresponding address pond to come to be described DHCP relay allocation of downlink interface IP address according to described network ID, and writes down this address with the gateway information as the corresponding address pond;
Step S33.DHCP client is obtained the IP address by described DHCP relay from its corresponding address pond.
7. dhcp address distribution method according to claim 5 is characterized in that, when the address prefix of described address pool changes, also comprises after the step S3:
Described Dynamic Host Configuration Protocol server notice DHCP relay of step S4. and dhcp client carry out application IP addresses again.
8. dhcp address distribution method according to claim 7 is characterized in that step S4 comprises:
It negates the DHCP relay of DHCP NAK message to its record that the described Dynamic Host Configuration Protocol server of step S41. sends first DHCP, carries network ID in the described DHCP NAK message;
The described DHCP relay of step S42. is applied for the downstream interface address again to described Dynamic Host Configuration Protocol server after receiving a described DHCP NAK message, and sends the dhcp client of the 2nd DHCP NAK message to its record;
After the described dhcp client of step S43. is received described the 2nd DHCP NAK message, again to Dynamic Host Configuration Protocol server application IP address.
9. a Dynamic Host Configuration Protocol server is characterized in that, comprising:
Root address pool dispensing unit is used to this dynamic host configuration protocol DHCP server-assignment root address pool, and the address prefix of described address pool obtains from the ISP of Internet service provider;
Pond, subaddressing dispensing unit, be connected with described address pool dispensing unit, be used to dispose the pond, subaddressing based on described address pool, the address prefix in pond, described subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from described address pool.
10. Dynamic Host Configuration Protocol server according to claim 9, it is characterized in that pond, described subaddressing dispensing unit also is used to dispose each address pool and forms tree structure, to indicate set membership between each address pool, wherein, the pond, subaddressing with the address prefix of his father's address pool as his father's prefix.
11. according to claim 9 or 10 described Dynamic Host Configuration Protocol server, it is characterized in that, also comprise:
Allocation unit is connected with pond, described subaddressing dispensing unit, and being used for by DHCP relay is dhcp client distributing IP address from the pond, subaddressing of correspondence.
12. Dynamic Host Configuration Protocol server according to claim 11 is characterized in that, pond, described subaddressing dispensing unit also is used to pond, described subaddressing respectively to dispose one in order to identify the network ID of its corresponding subnet.
13. Dynamic Host Configuration Protocol server according to claim 12 is characterized in that, also comprises:
Notification unit is connected with described allocation unit with pond, described subaddressing dispensing unit respectively, is used for when the address prefix in the pond, subaddressing that pond, described subaddressing dispensing unit is disposed changes, and the notice DHCP relay carries out application IP addresses again.
14. Dynamic Host Configuration Protocol server according to claim 13, it is characterized in that, described notification unit is negated that DHCP NAK message carries out application IP addresses again to notify described DHCP relay by sending first DHCP, carries the network ID of address pool correspondence in the described DHCP NAK message.
15. a dhcp address distribution system is characterized in that, comprising:
The dynamic host configuration protocol DHCP server, it disposes the pond, subaddressing that obtains the root address pool and the described address pool of address prefix from the ISP of Internet service provider, the address prefix in pond, described subaddressing is made of father's prefix and sub-prefix, and his father's prefix is inherited the address prefix from described address pool;
DHCP relay is connected with described Dynamic Host Configuration Protocol server, is used for finding corresponding pond, subaddressing to obtain the downstream interface address from pond, described a plurality of subaddressing;
Dhcp client is connected with described DHCP relay, is used for obtaining the IP address by described DHCP relay from its corresponding pond, subaddressing.
CN200910162933XA 2009-08-20 2009-08-20 DHCP address pool configuration method, DHCP address assignment method, DHCP address assignment system and DHCP server Expired - Fee Related CN101626406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910162933XA CN101626406B (en) 2009-08-20 2009-08-20 DHCP address pool configuration method, DHCP address assignment method, DHCP address assignment system and DHCP server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910162933XA CN101626406B (en) 2009-08-20 2009-08-20 DHCP address pool configuration method, DHCP address assignment method, DHCP address assignment system and DHCP server

Publications (2)

Publication Number Publication Date
CN101626406A CN101626406A (en) 2010-01-13
CN101626406B true CN101626406B (en) 2011-09-07

Family

ID=41522087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910162933XA Expired - Fee Related CN101626406B (en) 2009-08-20 2009-08-20 DHCP address pool configuration method, DHCP address assignment method, DHCP address assignment system and DHCP server

Country Status (1)

Country Link
CN (1) CN101626406B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340551B (en) * 2010-07-27 2016-02-03 中国电信股份有限公司 A kind of method and system building IPv6 address pool
CN102413033B (en) 2010-09-26 2015-07-08 华为技术有限公司 Method, device and system for realizing route aggregation
CN102143242B (en) 2010-10-21 2014-07-09 华为技术有限公司 IP (internet protocol) network address allocation method, IP network address allocation equipment and IP network address allocation system
CN102231764A (en) * 2011-06-22 2011-11-02 华为技术有限公司 Method and device for distributing network addresses
CN102594938B (en) * 2012-02-14 2015-09-16 杭州华三通信技术有限公司 Portal secondary address authentication method and device
CN108632399A (en) * 2017-08-24 2018-10-09 新华三技术有限公司 A kind of address distribution method and device
JP7073841B2 (en) * 2018-03-28 2022-05-24 株式会社リコー Information processing device, packet relay method
EP3565221B1 (en) * 2018-04-30 2020-10-28 Siemens Aktiengesellschaft Method for registering device names assigned to industrial automation devices or communication devices in a name service system and control component
CN109561170B (en) * 2018-12-25 2021-10-08 迈普通信技术股份有限公司 Address pool creating method and device, address pool management system and storage medium
US20220200952A1 (en) * 2020-12-21 2022-06-23 Oracle International Corporation Network address translation between networks
CN116346780A (en) * 2023-03-29 2023-06-27 杭州云合智网技术有限公司 Method and device for automatically configuring node IP address in network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006245893A (en) * 2005-03-02 2006-09-14 Nippon Telegr & Teleph Corp <Ntt> Dhcp client terminal and dhcp-pd requesting router
CN101309305A (en) * 2008-07-07 2008-11-19 杭州华三通信技术有限公司 IP address allocating method and apparatus
CN101355489A (en) * 2007-07-23 2009-01-28 中兴通讯股份有限公司 User management method based on dynamic host configuration protocol prefix proxy

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006245893A (en) * 2005-03-02 2006-09-14 Nippon Telegr & Teleph Corp <Ntt> Dhcp client terminal and dhcp-pd requesting router
CN101355489A (en) * 2007-07-23 2009-01-28 中兴通讯股份有限公司 User management method based on dynamic host configuration protocol prefix proxy
CN101309305A (en) * 2008-07-07 2008-11-19 杭州华三通信技术有限公司 IP address allocating method and apparatus

Also Published As

Publication number Publication date
CN101626406A (en) 2010-01-13

Similar Documents

Publication Publication Date Title
CN101626406B (en) DHCP address pool configuration method, DHCP address assignment method, DHCP address assignment system and DHCP server
CN101159758B (en) Classification associated dynamic host machine configuring protocol option distribution method and device
CN102594933B (en) Method, device and system for address allocation of public networks
CN101674288B (en) Method, device and system for managing address prefix distribution
US7430614B2 (en) Use of IP address blocks with default interfaces in a router
EP3664420B1 (en) Managing address spaces across network elements
US20050027778A1 (en) Automatic configuration of an address allocation mechanism in a computer network
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
CN101075944B (en) Method and system for allocating IP address
CN102075591A (en) Method, device and system for acquiring media access control address
CN102447746B (en) Information supply method, family gateway and family network system
CN101707637B (en) Method and system for allocating IP address
CN105245629A (en) DHCP-based host communication method and device
US10623369B2 (en) Device and method for discovery and announcement of secondary end-point reachability information
CN102685264A (en) Dynamic host configuration protocol address allocation method, relay equipment and server
CN111064793B (en) Method and system for maintaining and managing elastic public network IP address pool under public cloud platform
CN102158569A (en) Method and device for data transmission based on address conversion
CN108873827A (en) Production line computer system and its network setting method
CN106576120A (en) Internet protocol address allocation method and router
CN103384282A (en) Method for obtaining IPV6ND address and broadband remote access server (BARS)
CN106412143A (en) Visible allocation method of cluster node IP address
CN100459572C (en) Message transformation realizing method based on port from IPv4 to IPv6 network
CN102685265A (en) IP (Internet Protocol) address managing method, equipment and system
CN102035899A (en) Method and device for determining addresses in IPv6 (internet protocol version 6) based LAN (local area network)
CN102664971B (en) Network address resources management method, system and external address Resource Server

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
CP03 Change of name, title or address

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

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110907

Termination date: 20200820

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