CN104754069A - Dynamic address distribution method, device and server - Google Patents

Dynamic address distribution method, device and server Download PDF

Info

Publication number
CN104754069A
CN104754069A CN201310750776.0A CN201310750776A CN104754069A CN 104754069 A CN104754069 A CN 104754069A CN 201310750776 A CN201310750776 A CN 201310750776A CN 104754069 A CN104754069 A CN 104754069A
Authority
CN
China
Prior art keywords
network
address
equipment
pool
address pool
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
CN201310750776.0A
Other languages
Chinese (zh)
Other versions
CN104754069B (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.)
Schneider Electric SE
Schneider Electric Industries SAS
Original Assignee
Schneider Electric SE
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 Schneider Electric SE filed Critical Schneider Electric SE
Priority to CN201310750776.0A priority Critical patent/CN104754069B/en
Publication of CN104754069A publication Critical patent/CN104754069A/en
Application granted granted Critical
Publication of CN104754069B publication Critical patent/CN104754069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a dynamic IP address distribution method which comprises the following steps: detecting whether a device is connected with a second network or not in real time; when detecting that the device is connected with the second network, judging whether the IP address of the device connected to the second network is in the range of default IP address pool of a first network or not; when the IP address of the device connected to the second network is not in the range of default IP address pool of the first network, dynamically changing the default IP address pool of the first network into the IP address pool which is in the same subnet together with the IP address of the device of the second network; allocating the IP address for the device connected with the first network according to the changed IP address pool based on the address distribution requirement sent by the device which is connected with the first network. The IP address can be automatically allocated by adopting the method without any operation of use.

Description

Dynamic address allocation method, device and server
Technical field
The present invention relates to dynamic address allocation, more particularly, relate to dynamic address allocation method, device and the server with dynamic IP addressing pond and short rental period.
Background technology
In some cases, the IP address pool giving tacit consent to DHCP (DHCP, Dynamic HostConfiguration Protocol) server can not meet the demand of application program.
Such as, wifi access point for the equipment on dhcp client (wireless at WLAN() instead of LAN(wired) on equipment) play Dynamic Host Configuration Protocol server.The default ip address pool of Dynamic Host Configuration Protocol server is set up (such as, from 192.168.0.1 to 192.168.0.99) in factory.Dynamic Host Configuration Protocol server distributes to the IP address (such as, 192.168.0.1) of the dhcp client on WLAN, may with the IP address (such as, 10.10.10.10) of the equipment on LAN not in identical sub-network.As a result, WLAN(Wireless Local Area Network, WLAN (wireless local area network)) on equipment can not with LAN(Local AreaNetwork, local area network (LAN)) on devices communicating.
Existing method is that manual configuration IP address is used as IP address to be visited as the static address in same subnet network.Such as,
The IP address that equipment on LAN is to be visited: 10.10.10.10; The address of the wlan device distributed by DHCP: 192.168.0.1.So the address of wlan device has to manually change over: static ip address 10.10.10.11.
Summary of the invention
Additional aspects of the present invention and advantage part are set forth in the description below, also have part can find out significantly from description, or can obtain in the practice of the invention.
The Dynamic Host Configuration Protocol server with dynamic IP addressing pond can not only distribute DHCP client IP address, and dynamically changes the IP address of DHCP client.
Namely method user according to the present invention can carry out dynamic IP addressing configuration automatically without the need to carrying out any operation.
This application discloses a kind of dynamic IP addressing distribution method, comprising: detect on second network whether have equipment connection in real time; When detect second network has equipment connection time, judge that the IP address of the equipment on second network is whether in the scope of the default ip address pool of first network; When the IP address of the equipment on second network is not in the scope of the default ip address pool of first network, the default ip address pool of first network is dynamically changed into and the IP address pool of the IP address of the equipment of second network in same subnet; Based on the address assignment request that the equipment be connected with first network sends, be the equipment distributing IP address be connected with first network according to the IP address pool after changing.
Disclosed herein as well is a kind of dynamic IP addressing distributor, comprising: equipment connection detection module, be configured to detect in real time on second network whether have equipment connection; IP address judgment module, be configured to when equipment connection detection module detect second network has equipment connection time, judge that the IP address of the equipment on second network is whether in the scope of the default ip address pool of first network; IP address pool changes module, be configured to, when the IP address of the equipment on IP address judgment module determination second network is not in the scope of the default ip address pool of first network, the default ip address pool of first network dynamically be changed into and the IP address pool of the IP address of the equipment of second network in same subnet; IP address assignment module, based on the address assignment request that the equipment be connected with first network sends, is the equipment distributing IP address be connected with first network according to the IP address pool after changing.
Disclosed herein as well is a kind of dynamic host configuration protocol DHCP server carrying out dynamic address allocation, this server comprises: equipment connection detection module, is configured to detect in real time on second network whether have equipment connection; IP address judgment module, be configured to when equipment connection detection module detect second network has equipment connection time, judge that the IP address of the equipment on second network is whether in the scope of the default ip address pool of first network; IP address pool changes module, be configured to, when the IP address of the equipment on IP address judgment module determination second network is not in the scope of the default ip address pool of first network, the default ip address pool of first network dynamically be changed into and the IP address pool of the IP address of the equipment of second network in same subnet; IP address assignment module, based on the address assignment request that the equipment be connected with first network sends, is the equipment distributing IP address be connected with first network according to the IP address pool after changing.
Accompanying drawing explanation
Be described in detail the preferred embodiments of the present invention in conjunction with the drawings, above and other object of the present invention, characteristic and advantage will become apparent, and wherein identical label specifies the unit of same structure, and wherein:
Fig. 1 shows the flow chart of the dynamic IP addressing distribution method according to the embodiment of the present invention.
Fig. 2 shows the dynamic IP addressing distributor according to the embodiment of the present invention.
Fig. 3 connects default conditions figure according to the network of the embodiment of the present invention.
Fig. 4 is the state diagram of an equipment connection to first network.
Fig. 5 is the state diagram of another equipment connection to second network.
Fig. 6 is the reformed state diagram of IP address pool according to embodiment of the present invention first network.
Fig. 7 is the state diagram that equipment on first network is assigned with new IP address according to the embodiment of the present invention.
Embodiment
Below with reference to illustrating that the accompanying drawing of the embodiment of the present invention fully describes the present invention.But the present invention can realize in many different forms, and not will be understood that and be limited to embodiment described here.On the contrary, provide these embodiments to make the disclosure thorough and complete, and scope of the present invention will be given full expression to those skilled in the art.In the accompanying drawings, for the sake of clarity assembly is exaggerated.
Unless otherwise defined, all terms used herein (comprising technology and scientific terminology) have the identical meanings jointly understood with those skilled in the art.It should also be understood that, those terms such as defined in usual dictionary should be interpreted as having the consistent implication of implication with them in the context of correlation technique, and do not apply idealized or extremely formal meaning explain, unless defined so clearly here.
In order to realize automatic change, use two technology.
1, the IP address pool of Dynamic Host Configuration Protocol server is dynamic.This means that IP address pool can be triggered by event to change, the equipment on such as LAN is detected and the IP address of equipment on LAN is not in the scope of default ip address pool.
Such as, default ip address pool is from 192.168.0.1 to 192.168.0.99.When the equipment on the LAN that its IP address is 10.10.10.10 is detected by any method, then IP address pool will be changed to 10.10.10.11 to 10.10.10.99.
2, the short rental period
The IP address distributing to dhcp client is effective at specific time period.This is the rental period, and it utilizes IP address to send to dhcp client by Dynamic Host Configuration Protocol server.The short rental period (such as, 10 seconds) makes this dhcp client Dynamic Host Configuration Protocol server repeatedly can be asked to redistribute with the shorter cycle, makes to obtain new IP address fast when IP address pool changes.
Fig. 1 shows the flow chart of the dynamic IP addressing distribution method according to the embodiment of the present invention.
In step 101, detect on second network whether have equipment connection in real time.
In step 102, when detect second network has equipment connection time, judge that the IP address of the equipment on second network is whether in the scope of the default ip address pool of first network.
In step 103, when the IP address of the equipment on second network is not in the scope of the default ip address pool of first network, the default ip address pool of first network is dynamically changed into and the IP address pool of the IP address of the equipment of second network in same subnet,
In step 104, based on the address assignment request that the equipment be connected with first network sends, be the equipment distributing IP address be connected with first network according to the IP address pool after changing.Wherein, the IP address distributing to the equipment be connected with first network is effective in scheduled time slot.Described scheduled time slot can set according to the actual requirements, such as, be set to 10s, 15s etc.After effective scheduled time slot, based on the address assignment request that the equipment be connected with first network sends, be the equipment distributing IP address be connected with first network again.
In addition, dynamic IP addressing distribution method according to the present invention comprises further, when detect second network there is no equipment connection time, the IP address pool of first network is reverted to default ip address pool.
First network is such as WLAN (wireless local area network) WLAN; Second network is such as local network LAN.
Fig. 2 shows the dynamic IP addressing distributor according to the embodiment of the present invention.
Dynamic IP addressing distributor comprises: equipment connection detection module 201, IP address judgment module 202, IP address pool change module 203 and IP address assignment module 204.
Equipment connection detection module 201 detects on second network whether have equipment connection in real time.
Equipment connection detection module 201 detect second network has equipment connection time, IP address judgment module 202 judges that the IP address of the equipment on second network is whether in the scope of the default ip address pool of first network.
When IP address judgment module 202 determines that the IP address of the equipment on second network is not in the scope of the default ip address pool of first network, IP address pool changes module 203 and is dynamically changed into by the default ip address pool of first network and the IP address pool of the IP address of the equipment of second network in same subnet.
The address assignment request that IP address assignment module 204 sends based on the equipment be connected with first network, be the equipment distributing IP address be connected with first network according to the IP address pool after changing.
The IP address that IP address assignment module 204 distributes to the equipment be connected with first network is effective in scheduled time slot.Described scheduled time slot can set according to the actual requirements, such as, be set to 10s, 15s etc.After the effective scheduled time slot of this IP address, the equipment be connected with first network sends address assignment request to IP address assignment module 204.
When described equipment connection detection module 201 detect second network there is no equipment connection time, IP address pool changes module 203 and the IP address pool of first network is reverted to default ip address pool.
Fig. 3 connects default conditions figure according to the network of the embodiment of the present invention.
As shown in Figure 3, there are two networks, i.e. first network WLAN and second network LAN.First network has the default ip address pool such as from 192.168.0.1 to 192.168.0.99.
Fig. 4 is the state diagram of an equipment connection to first network.
As shown in Figure 4, the equipment be connected with first network will be assigned to every the IP address (192.16.0.1) that scheduled time slot (such as 10 seconds) is identical.The IP address distributing to the equipment be connected with first network is effective in scheduled time slot.
Fig. 5 is the state diagram of another equipment connection to second network.
As shown in Figure 5, the equipment on second network has IP address 10.10.10.10.This IP address is not in the scope of the default ip address pool of first network.
Fig. 6 is the reformed state diagram of IP address pool according to embodiment of the present invention first network.
As shown in Figure 6, the IP address pool of first network is changed to the IP address pool with the equipment on second network in same subnet.
Fig. 7 is the state diagram that equipment on first network is assigned with new IP address according to the embodiment of the present invention.
As shown in Figure 7, after effective scheduled time slot, based on the address assignment request that the equipment be connected with first network sends, the equipment on first network has been assigned with new IP address according to the IP address pool after change.
Namely method user according to the present invention can carry out dynamic IP addressing configuration automatically without the need to carrying out any operation.
The above is to explanation of the present invention, and should not be considered to limitation ot it.Although describe some exemplary embodiments of the present invention, those skilled in the art will easily understand, and can carry out many amendments under the prerequisite not deviating from teaching of the present invention and advantage to exemplary embodiment.Therefore, all such modifications are all intended to be included in the scope of the invention that claims limit.Be to explanation of the present invention above should be appreciated that, and should be considered to be limited to disclosed specific embodiment, and the amendment intention of the disclosed embodiments and other embodiments is comprised within the scope of the appended claims.The present invention is limited by claims and equivalent thereof.

Claims (15)

1. a dynamic IP addressing distribution method, comprising:
Whether real-time detection second network there is equipment connection;
When detect second network has equipment connection time, judge that the IP address of the equipment on second network is whether in the scope of the default ip address pool of first network;
When the IP address of the equipment on second network is not in the scope of the default ip address pool of first network, the default ip address pool of first network is dynamically changed into and the IP address pool of the IP address of the equipment of second network in same subnet;
Based on the address assignment request that the equipment be connected with first network sends, be the equipment distributing IP address be connected with first network according to the IP address pool after changing.
2. method according to claim 1, wherein, the IP address distributing to the equipment be connected with first network is effective in scheduled time slot.
3. method according to claim 2, wherein, when detect second network there is no equipment connection time, the IP address pool of first network is reverted to default ip address pool.
4. method according to claim 3, wherein, after effective scheduled time slot, based on the address assignment request that the equipment be connected with first network sends, is the equipment distributing IP address be connected with first network again.
5. method according to claim 4, wherein, first network is WLAN (wireless local area network) WLAN; Second network is local network LAN.
6. a dynamic IP addressing distributor, comprising:
Equipment connection detection module, is configured to detect in real time on second network whether have equipment connection;
IP address judgment module, be configured to when equipment connection detection module detect second network has equipment connection time, judge that the IP address of the equipment on second network is whether in the scope of the default ip address pool of first network;
IP address pool changes module, be configured to, when the IP address of the equipment on IP address judgment module determination second network is not in the scope of the default ip address pool of first network, the default ip address pool of first network dynamically be changed into and the IP address pool of the IP address of the equipment of second network in same subnet;
IP address assignment module, is configured to the address assignment request sent based on the equipment be connected with first network, is the equipment distributing IP address be connected with first network according to the IP address pool after changing.
7. device according to claim 5, wherein, the IP address distributing to the equipment be connected with first network is effective in scheduled time slot.
8. device according to claim 7, wherein, when described equipment connection detection module detect second network there is no equipment connection time, IP address pool changes module and the IP address pool of first network is reverted to default ip address pool.
9. device according to claim 8, wherein, after effective scheduled time slot, the equipment be connected with first network sends address assignment request to IP address assignment module.
10. device according to claim 9, wherein, first network is WLAN (wireless local area network) WLAN; Second network is local network LAN.
11. 1 kinds of dynamic host configuration protocol DHCP servers carrying out dynamic address allocation, this server comprises:
Equipment connection detection module, is configured to detect in real time on second network whether have equipment connection;
IP address judgment module, be configured to when equipment connection detection module detect second network has equipment connection time, judge that the IP address of the equipment on second network is whether in the scope of the default ip address pool of first network;
IP address pool changes module, be configured to, when the IP address of the equipment on IP address judgment module determination second network is not in the scope of the default ip address pool of first network, the default ip address pool of first network dynamically be changed into and the IP address pool of the IP address of the equipment of second network in same subnet;
IP address assignment module, is configured to the address assignment request sent based on the equipment be connected with first network, is the equipment distributing IP address be connected with first network according to the IP address pool after changing.
12. servers according to claim 11, wherein, the IP address distributing to the equipment be connected with first network is effective in scheduled time slot.
13. servers according to claim 12, wherein, when described equipment connection detection module detect second network there is no equipment connection time, IP address pool changes module and the IP address pool of first network is reverted to default ip address pool.
14. servers according to claim 13, wherein, after effective scheduled time slot, the equipment be connected with first network sends address assignment request to IP address assignment module.
15. servers according to claim 14, wherein, first network is WLAN (wireless local area network) WLAN; Second network is local network LAN.
CN201310750776.0A 2013-12-31 2013-12-31 Dynamic address allocation method, apparatus and server Active CN104754069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310750776.0A CN104754069B (en) 2013-12-31 2013-12-31 Dynamic address allocation method, apparatus and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310750776.0A CN104754069B (en) 2013-12-31 2013-12-31 Dynamic address allocation method, apparatus and server

Publications (2)

Publication Number Publication Date
CN104754069A true CN104754069A (en) 2015-07-01
CN104754069B CN104754069B (en) 2018-10-02

Family

ID=53593155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310750776.0A Active CN104754069B (en) 2013-12-31 2013-12-31 Dynamic address allocation method, apparatus and server

Country Status (1)

Country Link
CN (1) CN104754069B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106940432A (en) * 2016-01-04 2017-07-11 苏州普源精电科技有限公司 A kind of instrument connective method of testing and test system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1487697A (en) * 2003-06-30 2004-04-07 北京港湾网络有限公司 IP address distributing management method for wideband access equipment
CN1605076A (en) * 2001-12-12 2005-04-06 汤姆森许可公司 Method and apparatus for adaptively configuring a router
US20090274132A1 (en) * 2008-05-01 2009-11-05 Fujitsu Limited Access point used in wireless lan system
CN102404417A (en) * 2011-11-09 2012-04-04 深圳市共进电子股份有限公司 Method and device for accessing external network
CN102857587A (en) * 2012-08-17 2013-01-02 福建三元达通讯股份有限公司 Method and system for sharing dynamic address pool in multi-virtual local area network (VLAN) environment
CN103039096A (en) * 2010-05-04 2013-04-10 思科技术公司 Hierarchical control signaling for mobile clients in distributed wireless controller system
CN103037026A (en) * 2012-12-10 2013-04-10 上海斐讯数据通信技术有限公司 Dynamic host configuration protocol (DHCP) server address pool automatic configuration method and device and central processing element (CPE) equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1605076A (en) * 2001-12-12 2005-04-06 汤姆森许可公司 Method and apparatus for adaptively configuring a router
CN1487697A (en) * 2003-06-30 2004-04-07 北京港湾网络有限公司 IP address distributing management method for wideband access equipment
US20090274132A1 (en) * 2008-05-01 2009-11-05 Fujitsu Limited Access point used in wireless lan system
CN103039096A (en) * 2010-05-04 2013-04-10 思科技术公司 Hierarchical control signaling for mobile clients in distributed wireless controller system
CN102404417A (en) * 2011-11-09 2012-04-04 深圳市共进电子股份有限公司 Method and device for accessing external network
CN102857587A (en) * 2012-08-17 2013-01-02 福建三元达通讯股份有限公司 Method and system for sharing dynamic address pool in multi-virtual local area network (VLAN) environment
CN103037026A (en) * 2012-12-10 2013-04-10 上海斐讯数据通信技术有限公司 Dynamic host configuration protocol (DHCP) server address pool automatic configuration method and device and central processing element (CPE) equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
方世忠: "无线局域网测试系统研究", 《计测技术》 *
李世通: "ADSL免代理共享上网的两种方案", 《保山师专学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106940432A (en) * 2016-01-04 2017-07-11 苏州普源精电科技有限公司 A kind of instrument connective method of testing and test system
CN106940432B (en) * 2016-01-04 2020-06-12 普源精电科技股份有限公司 Method and system for testing instrument connectivity

Also Published As

Publication number Publication date
CN104754069B (en) 2018-10-02

Similar Documents

Publication Publication Date Title
CN101895587B (en) Prevent the methods, devices and systems of users from modifying IP addresses privately
CN104378455A (en) IP address distribution method and device
CN102761499B (en) Gateway and method for preventing same from being attacked
CN107800743B (en) Cloud desktop system, cloud management system and related equipment
CN101883158A (en) Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
MX2019010682A (en) Dynamic access-point link aggregation.
CN106134164A (en) The method and apparatus assigned for fast IP address
CN104812021B (en) A kind of method and device of AP access AC
CN103095722A (en) Method for updating network security table and network device and dynamic host configuration protocol (DHCP) server
CN103873826A (en) Media stream sending control method and device
US7958220B2 (en) Apparatus, method and system for acquiring IPV6 address
CN104580029A (en) Address distribution method and device
CN106790734B (en) Network address allocation method and device
CN104618522A (en) Automatic updating method for IP address of terminal and Ethernet access device
CN106878481B (en) Method, device and system for acquiring Internet Protocol (IP) address
CN106412146B (en) The method and apparatus that a kind of dhcp client updates IP
CN102882994B (en) IP address assignment method and device and IP address acquisition method and device
TWI492577B (en) Server and service mode setting method
CN104104749A (en) Method and device for allocating tunnel IP addresses
CN102594839A (en) Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards
CN104219337A (en) IP address allocation method and device applied to SDN
CN103401954A (en) Implementation method of virtual DHCP (dynamic host configuration protocol)
CN102710810A (en) Method for automatically assigning internet protocol (IP) address and relay equipment
CN105338131A (en) Testing method and system for address pool capacity of DHCP server
CN109151859B (en) Multi-machine test method for AP (access point) product without fixed IP (Internet protocol) at network port

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant