[go: up one dir, main page]

CN102307247A - Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system - Google Patents

Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system Download PDF

Info

Publication number
CN102307247A
CN102307247A CN201110240695A CN201110240695A CN102307247A CN 102307247 A CN102307247 A CN 102307247A CN 201110240695 A CN201110240695 A CN 201110240695A CN 201110240695 A CN201110240695 A CN 201110240695A CN 102307247 A CN102307247 A CN 102307247A
Authority
CN
China
Prior art keywords
address
user
dhcp
host configuration
configuration protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201110240695A
Other languages
Chinese (zh)
Other versions
CN102307247B (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 Shenzhou Digital Cloud Information Technology Co ltd
Shenzhou Kuntai Xiamen Information Technology Co ltd
Original Assignee
Digital China Networks Beijing 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 Digital China Networks Beijing Co Ltd filed Critical Digital China Networks Beijing Co Ltd
Priority to CN 201110240695 priority Critical patent/CN102307247B/en
Publication of CN102307247A publication Critical patent/CN102307247A/en
Application granted granted Critical
Publication of CN102307247B publication Critical patent/CN102307247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a dynamic address allocation method for a dynamic host configuration protocol (DHCP) and a DHCP system. The method comprises the following steps that: a DHCP server manages mapping relationships between system configuration usernames or other attributes and media access control (MAC) addresses, or an external interface provided by the DHCP server inputs the mapping relationships between the usernames or the other attributes and the MAC addresses; and the DHCP server receives an address allocation request message, associates a MAC address carried by the request message with a username or attribute information which is obtained in advance, and searches for a given Internet protocol (IP) address for allocation according to the associated username or attribute information to realize user-based dynamic IP address allocation. By the method provided by the invention, the address can be allocated according to the user attribute under the condition of no additional requirements on a DHCP client and intermediate switching equipment, and on-demand address allocation is made possible; and the method is highly extensible.

Description

A kind of method and system of dhcp address dynamic assignment
Technical field
The present invention relates to the communications field, relate in particular to a kind of method of dhcp address dynamic assignment, the dhcp address dynamic assignment realizes the method and the DHCP system of authentication.
Background technology
DHCP is the abbreviation of Dynamic Host Configuration Protocol (DHCP), and its predecessor is BOOTP.BOOTP is used to not have above the network that the disk main frame connects: network host uses BOOT ROM rather than disk starting also to connect and goes up network, and BOOTP then can automatically be those host setting TCP/IP environment.But BOOTP has a shortcoming: you must obtain the hardware address of client in advance before setting, and, be static with the corresponding of IP.In other words, BOOTP lacks " dynamic " very much.DHCP can be described as the enhancing version of BOOTP, and it is divided into two parts: one is server end, and another is a client.All IP network setting datas are all by the Dynamic Host Configuration Protocol server centralized management, and the responsible DHCP requirement of handling client; Client then can be used the IP world data of getting off from server-assignment.Relatively play BOOTP, DHCP sees through the notion of " lease ", effectively and dynamically distributes the TCP/IP of client to set, and, consider that as compatibility DHCP has also looked after the demand of BOOTPClient fully.DHCP provides three kinds of IP locate modes: fixed allocation, distribute and dynamic assignment automatically.Wherein, fixed allocation is to bind fixing address according to user MAC or subscriber's main station name.Automatically distribution and dynamic assignment all are addresses of Random assignment, and both differences are that the former uses the address of Random assignment for the first time forever, and the latter then is the preferential last addresses distributed of using.
The safety access network often according to the user whether authentication even the different attribute of authenticated provide different address, make the user can enjoy different services.At present, the scheme that addresses this problem has a lot, nothing more than following two types: dhcp client+switch+Dynamic Host Configuration Protocol server; Certificate server+switch+Dynamic Host Configuration Protocol server.Clearly, bigger restriction is all arranged.
Summary of the invention
Defective and deficiency based on prior art; The invention provides a kind of DHCP system; This system provides the configuration management function of MAC Address and user property mapping and external interface is provided, and the configuration management function and the external interface of attribute and Dynamic Host Configuration Protocol server address sort mapping also is provided simultaneously.
Wherein, this system also provides classification configurations (management tool or external interface), and the mapping relations of user property and classification.
Wherein, the mapping configuration relation of user MAC and user property is man-to-man at one time.
Wherein, attribute and address sort mapping can be direct mappings, also can be indirect mappings.
Wherein, said Dynamic Host Configuration Protocol server is independent from other server.
Wherein, said Dynamic Host Configuration Protocol server distributes different address according to the attribute difference before and after the authentification of user to the user, thereby makes the user before and after authentication, obtain the various network service.
This DHCP system can be according to the attribute of user dynamically allocate address according to method described below.
The invention also discloses a kind of method of dhcp address dynamic assignment, in the DHCP of above-mentioned characteristic system, can use this method to carry out the address dynamic assignment.This method comprises the steps:
(1) Dynamic Host Configuration Protocol server is received the address assignment request message;
(2) Dynamic Host Configuration Protocol server is searched the assigned address that whether has user MAC or subscriber set name earlier, if find then distribute the address of finding;
(3) do not find again the class of subscriber corresponding according to the mapping attribute query of MAC Address;
(4), search all corresponding address ponds of the classification and the network segment, if find then in this address pool, choose address assignment if find user's corresponding class;
(5), then press traditional approach and distribute the address if do not find corresponding class of subscriber.
Wherein, step C is according to MAC Address and dynamically receive the relation of user name that other system transmits and attribute and MAC Address, the user class that inquiry is corresponding.
The invention also discloses a kind of method of dhcp address dynamic assignment realization authentication, it is characterized in that, may further comprise the steps:
(1) user's request dhcp address of starting shooting, DHCP are distributed to the address of address field before the authentification of user;
(2) user uses the preceding address of authentication to carry out authentication, after the authentication, and the mapping relations of certificate server notice Dynamic Host Configuration Protocol server user property;
(3) after station address was renewed a contract, Dynamic Host Configuration Protocol server distributed different address according to the mapping relations of user property to the user, makes the user can enjoy extra network service;
(4) user offline, certificate server notice Dynamic Host Configuration Protocol server user property mapping relations change;
(5) after station address was renewed a contract, Dynamic Host Configuration Protocol server distributed the address of no best property of attribute mapping to the user, makes the user stop enjoying extra network service.
The present invention is for to provide a kind of simple and easy to do solution according to the user property dynamically allocate address.The advantage of this programme is:
(1) restricted less, implement simple and easy.Dhcp client and switch are not required, that is to say to be suitable for existing network environment.
(2) powerful, compatible good.User property is not had special demands, almost we can say the function that has realized the distribution according to need address; And, make to cooperate system's use in many ways owing to the interface of outside butt joint exists.
(3) methodological science, autgmentability is strong.This method has been followed traditional DHCP according to the option rule for distribution, is equivalent to only just expand the definition of option, meets the Dynamic Host Configuration Protocol server Development Trend.
Description of drawings
Fig. 1 is an embodiment of the invention network environment sketch map;
Fig. 2 is the another kind of network environment sketch map of the embodiment of the invention;
Fig. 3 is an embodiment of the invention station address assigning process flow chart;
Fig. 4 is a Dynamic Host Configuration Protocol server address allocation procedure flow chart of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment, specific embodiments of the invention is done further to describe in detail.
Fig. 1 is a kind of network environment sketch map of the embodiment of the invention, and is as shown in Figure 1, Dynamic Host Configuration Protocol server and other server, and for example, management server, mail server, file server, Web server, certificate server etc. concentrate in together.
Fig. 2 is other a kind of network environment sketch map of the embodiment of the invention, and as shown in Figure 2, Dynamic Host Configuration Protocol server is independent from other server.Can the message of DHCP be limited in certain zone like this, avoid influencing other service.In embodiments of the present invention, Dynamic Host Configuration Protocol server distributes different address according to the attribute difference before and after the authentification of user to the user, thereby makes the user before and after authentication, obtain the various network service.Such as the outer net service, Intranet mail, file service, web service etc.
Fig. 3 is station address assigning process flow chart of the present invention, and is as shown in Figure 3, and the user accomplishes the change of address through the renewed treaty of dhcp address before and after authentication.Detailed process is described below:
(1) user's request dhcp address of starting shooting;
(2) because user's associated user attribute not, DHCP distributes to the address of address field before the authentification of user;
(3) user uses the preceding address of authentication to carry out authentication, after the authentication, and the mapping relations of certificate server notice Dynamic Host Configuration Protocol server user property;
(4) after station address was renewed a contract, Dynamic Host Configuration Protocol server distributed different address according to the mapping relations of user property to the user, makes the user can enjoy extra network service;
(5) user offline, certificate server notice Dynamic Host Configuration Protocol server user property mapping relations change;
(6) after station address was renewed a contract, Dynamic Host Configuration Protocol server distributed the address of no best property of attribute mapping to the user, makes the user stop enjoying extra network service.
Fig. 4 is Dynamic Host Configuration Protocol server address allocation procedure flow chart of the present invention, and is as shown in Figure 1, and Dynamic Host Configuration Protocol server address assignment flow process comprises the steps:
The A.DHCP server is received the address assignment request message;
The B.DHCP server is searched the assigned address that whether has user MAC or subscriber set name earlier, if find then distribute the address of finding;
C. do not find again and search corresponding class,, then continue traditional to distribute the address by the network segment if do not find according to the mapping attribute of MAC Address;
If D. find user's corresponding class, search all corresponding address ponds of the classification and the network segment, if find then in this address pool, choose address assignment;
If E. do not find the corresponding address pond, then do not distribute the address.
The present invention is not doing under the situation of extra demand dhcp client and middle switching equipment, provides a kind of and can distribute the method for address according to user property, and had favorable expansibility, makes the distribution according to need address become possibility.Embodiments of the invention are to solve a kind of good scheme that the IP address problem is switched in the authentification of user front and back, are worthy to be popularized.
Above-mentioned preferred embodiment of the present invention and the institute's application technology principle of being merely, any technical staff who is familiar with the present technique field in the technical scope that the present invention discloses, the variation that can expect easily or replacement, all should be encompassed in protection scope of the present invention in.

Claims (9)

1. the method for a dhcp address dynamic assignment is characterized in that, may further comprise the steps:
(1) Dynamic Host Configuration Protocol server is received the address assignment request message;
(2) Dynamic Host Configuration Protocol server is searched the assigned address that whether has user MAC or subscriber set name earlier, if find then distribute the address of finding;
(3) do not find again the class of subscriber corresponding according to the mapping attribute query of MAC Address;
(4), search all corresponding address ponds of the classification and the network segment, if find then in this address pool, choose address assignment if find user's corresponding class;
(5), then press traditional approach and distribute the address if do not find corresponding class of subscriber.
2. the method for claim 1 is characterized in that, step C is according to MAC Address and dynamically receive the relation of user name that other system transmits and attribute and MAC Address, the user class that inquiry is corresponding.
One kind according to claim 1 or claim 2 the dhcp address dynamic assignment realize it is characterized in that the method for authentication, may further comprise the steps:
(1) user's request dhcp address of starting shooting, DHCP are distributed to the address of address field before the authentification of user;
(2) user uses the preceding address of authentication to carry out authentication, after the authentication, and the mapping relations of certificate server notice Dynamic Host Configuration Protocol server user property;
(3) after station address was renewed a contract, Dynamic Host Configuration Protocol server distributed different address according to the mapping relations of user property to the user, makes the user can enjoy extra network service;
(4) user offline, certificate server notice Dynamic Host Configuration Protocol server user property mapping relations change;
(5) after station address was renewed a contract, Dynamic Host Configuration Protocol server distributed the address of no best property of attribute mapping to the user, makes the user stop enjoying extra network service.
4. DHCP system; Comprise server and client sides such as Dynamic Host Configuration Protocol server, certificate server; It is characterized in that comprise the mapping configuration of user MAC and user property in the configuration management that system provides, perhaps this system provides the external interface of configure user MAC and user property mapping.
5. DHCP system described in claim 4 is characterized in that, this system also provides classification configurations (management tool or external interface), and the mapping relations of user property and classification.
6. DHCP system described in claim 4 or 5 is characterized in that, the mapping configuration relation of user MAC and user property is man-to-man at one time.
7. like claim 5 or 6 said DHCP systems, it is characterized in that the mapping relations of user property and classification can be direct mappings, also can be indirect mapping.
8. like the said DHCP of one of claim 4 to 6 system, it is characterized in that said Dynamic Host Configuration Protocol server is independent from other server.
9. like the said DHCP of one of claim 4 to 6 system, it is characterized in that said Dynamic Host Configuration Protocol server distributes different address according to the attribute difference before and after the authentification of user to the user, thereby make the user before and after authentication, obtain the various network service.
CN 201110240695 2011-08-22 2011-08-22 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system Active CN102307247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110240695 CN102307247B (en) 2011-08-22 2011-08-22 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110240695 CN102307247B (en) 2011-08-22 2011-08-22 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system

Publications (2)

Publication Number Publication Date
CN102307247A true CN102307247A (en) 2012-01-04
CN102307247B CN102307247B (en) 2013-04-03

Family

ID=45381050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110240695 Active CN102307247B (en) 2011-08-22 2011-08-22 Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system

Country Status (1)

Country Link
CN (1) CN102307247B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438051A (en) * 2012-01-14 2012-05-02 神州数码网络(北京)有限公司 Method and system for realizing DHCP relay by two-layer network switching equipment
CN102594937A (en) * 2012-02-06 2012-07-18 神州数码网络(北京)有限公司 Method and system for realizing DHCP (Dynamic Host Configuration Protocol) v6 relay agent through two-layer network exchange equipment
CN102594936A (en) * 2012-02-06 2012-07-18 神州数码网络(北京)有限公司 Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment
CN103297560A (en) * 2013-05-21 2013-09-11 江苏物联网研究发展中心 Data flow classification method and data flow classification server
CN104144092A (en) * 2013-12-03 2014-11-12 国家电网公司 Automatic access method of LAN terminal
WO2015196755A1 (en) * 2014-06-27 2015-12-30 中兴通讯股份有限公司 Address allocation method in subscriber identifier and locator separation network, and access service router
CN106790734A (en) * 2016-01-29 2017-05-31 新华三技术有限公司 A kind of network address assignment method and device
CN110753134A (en) * 2019-09-30 2020-02-04 互联网域名系统北京市工程研究中心有限公司 Multi-policy DHCP client classification method and system
CN111405075A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 A network address allocation method, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450766A (en) * 2002-04-10 2003-10-22 深圳市中兴通讯股份有限公司 User management method based on dynamic mainframe configuration procotol
CN1744612A (en) * 2005-08-19 2006-03-08 杭州华为三康技术有限公司 DHCP address allocation method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450766A (en) * 2002-04-10 2003-10-22 深圳市中兴通讯股份有限公司 User management method based on dynamic mainframe configuration procotol
CN1744612A (en) * 2005-08-19 2006-03-08 杭州华为三康技术有限公司 DHCP address allocation method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438051A (en) * 2012-01-14 2012-05-02 神州数码网络(北京)有限公司 Method and system for realizing DHCP relay by two-layer network switching equipment
CN102594937A (en) * 2012-02-06 2012-07-18 神州数码网络(北京)有限公司 Method and system for realizing DHCP (Dynamic Host Configuration Protocol) v6 relay agent through two-layer network exchange equipment
CN102594936A (en) * 2012-02-06 2012-07-18 神州数码网络(北京)有限公司 Method and system for realizing dynamic host configuration protocol for internet protocol version 6 (DHCPv6) relay through two-layer network switching equipment
CN103297560A (en) * 2013-05-21 2013-09-11 江苏物联网研究发展中心 Data flow classification method and data flow classification server
CN104144092A (en) * 2013-12-03 2014-11-12 国家电网公司 Automatic access method of LAN terminal
WO2015196755A1 (en) * 2014-06-27 2015-12-30 中兴通讯股份有限公司 Address allocation method in subscriber identifier and locator separation network, and access service router
CN105323325A (en) * 2014-06-27 2016-02-10 中兴通讯股份有限公司 Address assignment method for identity and position separation network, and access service node
CN106790734A (en) * 2016-01-29 2017-05-31 新华三技术有限公司 A kind of network address assignment method and device
CN106790734B (en) * 2016-01-29 2021-04-30 新华三技术有限公司 Network address allocation method and device
CN111405075A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 A network address allocation method, device and storage medium
CN110753134A (en) * 2019-09-30 2020-02-04 互联网域名系统北京市工程研究中心有限公司 Multi-policy DHCP client classification method and system

Also Published As

Publication number Publication date
CN102307247B (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN102307247B (en) Dynamic address allocation method for dynamic host configuration protocol (DHCP) and system
KR101774326B1 (en) Employing overlays for securing connections across networks
CN104468574B (en) A kind of method, system and device of virtual machine dynamic access IP address
CN102325145B (en) Method and equipment for carrying out access control on dual-stack user
CN101159758B (en) Classification associated dynamic host machine configuring protocol option distribution method and device
CN102387222B (en) Address distribution method, apparatus and system thereof
CN108924268A (en) A kind of container cloud service system and pod creation method, device
TW201401828A (en) Cloud server for managing hostnames and IP addresses, and management method for the cloud server
CN101867625B (en) Method for allocating IPv6 address and home gateway
CN101018159A (en) Load balance method under the multi-gateway environment and DHCP server
CN107087041B (en) Method and device for statically binding IP address to DHCP client
CN102752413B (en) Dynamic Host Configuration Protocol server system of selection and the network equipment
CN106878480B (en) DHCP service process sharing method and device
CN103905301A (en) Method for configuring optical network unit in passive optical network
CN102685264A (en) Dynamic host configuration protocol address allocation method, relay equipment and server
CN102299932A (en) Backup method for DHCP (Dynamic Host Configuration Protocol) server and DHCP server
CN105472048A (en) Address allocating method, information aggregation method and related equipment
CN102394948A (en) DHCP (dynamic host configuration protocol) address distribution method and DHCP server
CN106790734B (en) Network address allocation method and device
CN103684861A (en) Method and device for processing network configuration and communication system
CN104144092A (en) Automatic access method of LAN terminal
WO2020088343A1 (en) Address pool centralized management method and device, and storage medium
CN104144226B (en) Port assignment method and network address conversion device
CN104104749A (en) Method and device for allocating tunnel IP addresses
CN107343058B (en) IP address distribution system and working method thereof

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

Address after: 100085 Beijing Haidian District, No. 9 Shangdi Jiujie Digital Science and Technology Plaza

Patentee after: Beijing Shenzhou Digital Cloud Information Technology Co.,Ltd.

Country or region after: China

Address before: 100085 Beijing Haidian District, No. 9 Shangdi Jiujie Digital Science and Technology Plaza

Patentee before: DIGITAL CHINA NETWORKS (BEIJING) Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240731

Address after: 100085 No.301, 3rd floor, 9 shangdijiu street, Haidian District, Beijing

Patentee after: Beijing Shenzhou Digital Cloud Information Technology Co.,Ltd.

Country or region after: China

Patentee after: Shenzhou Kuntai (Xiamen) Information Technology Co.,Ltd.

Address before: 100085 Beijing Haidian District, No. 9 Shangdi Jiujie Digital Science and Technology Plaza

Patentee before: Beijing Shenzhou Digital Cloud Information Technology Co.,Ltd.

Country or region before: China