CN103237093A - Self-adaptive IP (internet protocol) address acquiring method - Google Patents

Self-adaptive IP (internet protocol) address acquiring method Download PDF

Info

Publication number
CN103237093A
CN103237093A CN2013101334202A CN201310133420A CN103237093A CN 103237093 A CN103237093 A CN 103237093A CN 2013101334202 A CN2013101334202 A CN 2013101334202A CN 201310133420 A CN201310133420 A CN 201310133420A CN 103237093 A CN103237093 A CN 103237093A
Authority
CN
China
Prior art keywords
address
self
adaptive
conflict
acquiring method
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.)
Pending
Application number
CN2013101334202A
Other languages
Chinese (zh)
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.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network Technology 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 Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN2013101334202A priority Critical patent/CN103237093A/en
Publication of CN103237093A publication Critical patent/CN103237093A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention relates to a self-adaptive IP (internet protocol) address acquiring method. The self-adaptive IP address acquiring method includes: acquiring an IP address via a DHCP (dynamic host configuration protocol) manner; utilizing the IP address if the IP address is acquired; reading a preset IP address section if acquisition of the IP address fails; selecting an IP address within the IP address section; subjecting the selected IP address to ARP (address resolution protocol) conflict detection; and in case of conflict, returning to the step of randomly selecting an IP address within a static IP address section. By the self-adaptive IP address acquiring method, the IP address distributed by a DHCP server is utilized when the DHCP server is normal, and the IP address can be acquired when the DHCP server becomes invalid, so that the purpose for self-adaptively acquiring the IP address is achieved, conflict of the IP address is simultaneously avoided, and normal communication of users is guaranteed.

Description

A kind of self adaptation IP address acquiring method
Technical field
The present invention relates to the communications field, especially relate to a kind of self adaptation IP address acquiring method.
Background technology
What the present invention set forth is that equipment is (as VOIP, computer etc.) can self adaptation obtain the IP address approach, such as in local area network (LAN), be responsible for the server of dynamic assignment IP address and delayed machine, the equipment of all new accesses all can't get access to the IP address so, also just can't be with other device talks.In the case, equipment can be according to the static ip address section that pre-sets, at random or the IP in the order section of choosing as its own IP address, send the ARP address conflict simultaneously and detect, avoid multiple devices to set identical IP simultaneously and conflict.
A kind of " server uses the method for non static IP " disclosed in the prior art, see that publication number is: 1946045, open day be: 20070411 Chinese patent, describe server and should adopt static ip address, but can not use static address in some scene, use that dynamic IP addressing and address change situation under, how to notify client, allow the client re-register new address.
The present invention and patent 1946045 differences:
At first, the object of elaboration is had any different: the present invention is primarily aimed at liking client; And patent 1946045 at be server.
Secondly, application scenarios difference, the present invention be equipment under situation about obtaining less than dynamic IP addressing, can distribute static ip address to self automatically; Patent 1946045 is that server ip address changes, and how to notify client, guarantees to keep communicating by letter with client.
Again, the principle of realization is had any different: the present invention is that the IP address field that reads default static state obtains the IP address, carries out collision detection simultaneously; Patent 1946045 is that server ip changes, by communicate the IP address that notification server is new with the web server, client is by visit web server, the IP address that web server notification server is new, client connects to this IP address then, registration.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of self adaptation to obtain the method for IP address, under the situation that Dynamic Host Configuration Protocol server lost efficacy, can get access to the IP address.
The present invention is achieved in that and comprises the steps:
Step 10, use DHCP mode are obtained the IP address; If get access to the IP address, then use described IP address; If obtain the failure of IP address, then read default IP address field;
Step 20, in described IP address field, select an IP address;
Step 30, the ARP collision detection is carried out in the IP address of having selected; If the IP address of having selected is then used in not conflict; If conflict then turns back to step 20.
Further, in the step 20, described being chosen as at random selected.
The present invention has following advantage: under the situation that Dynamic Host Configuration Protocol server lost efficacy, read default IP address field, get access to the IP address, carry out collision detection again, avoided the problem of IP address conflict, assurance equipment can get access to the IP address and carry out normal communication.
Description of drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method flowchart.
Specific implementation method
With reference to Fig. 1, the scope of supposing Dynamic Host Configuration Protocol server distributing IP address in the network is 192.168.0.2-192.168.0.254, and when Dynamic Host Configuration Protocol server lost efficacy, the new equipment that inserts obtained the failure of IP address, then can't with network in other device talks.Use this method, during device start, at first enter step S101 and use the DHCP mode to obtain the IP address.Equipment enters step S102 and judges whether to obtain the success of IP address; If Dynamic Host Configuration Protocol server is normal, then equipment namely can get access to IP address (as 192.168.0.100), and equipment enters S107 and uses the IP address that has got access to; If Dynamic Host Configuration Protocol server is unusual, then get access to IP address failure (namely detecting the IP address is: 0.0.0.0 or automatic privately owned address), then equipment enters step S103 and reads default IP address field (as 192.168.0.10-192.168.0.250); Select an IP address at S104 in described IP address field subsequently, selection mode can be selective sequential or select at random, be made as here and select an IP address (as 192.168.0.59) at random; Enter step S105 the ARP collision detection is carried out in the IP address of having selected (192.168.0.59); Judge whether conflict at S106, if not conflict then enters S107 and uses the IP address (192.168.0.59) that has got access to; If conflict then turns back to step S104 and selects at random again.Use this method, just often use the Dynamic Host Configuration Protocol server IP address allocated at Dynamic Host Configuration Protocol server, when Dynamic Host Configuration Protocol server loses efficacy, also can get access to the IP address, realized that self adaptation obtains the purpose of IP address, the normal communication of assurance equipment.
Though more than described specific implementation method of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in modification and the variation of the equivalence of doing according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.

Claims (2)

1. a self adaptation IP address acquiring method is characterized in that: comprise the steps:
Step 10, use DHCP mode are obtained the IP address; If get access to the IP address, then use described IP address; If obtain the failure of IP address, then read default IP address field;
Step 20, in described IP address field, select an IP address;
Step 30, the ARP collision detection is carried out in the IP address of having selected; If the IP address of having selected is then used in not conflict; If conflict then turns back to step 20.
2. a kind of self adaptation IP address acquiring method according to claim 1 is characterized in that: in the step 20, described being chosen as at random selected.
CN2013101334202A 2013-04-17 2013-04-17 Self-adaptive IP (internet protocol) address acquiring method Pending CN103237093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101334202A CN103237093A (en) 2013-04-17 2013-04-17 Self-adaptive IP (internet protocol) address acquiring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101334202A CN103237093A (en) 2013-04-17 2013-04-17 Self-adaptive IP (internet protocol) address acquiring method

Publications (1)

Publication Number Publication Date
CN103237093A true CN103237093A (en) 2013-08-07

Family

ID=48885109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101334202A Pending CN103237093A (en) 2013-04-17 2013-04-17 Self-adaptive IP (internet protocol) address acquiring method

Country Status (1)

Country Link
CN (1) CN103237093A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935684A (en) * 2015-06-30 2015-09-23 四川效率源信息安全技术有限责任公司 Method for automatically configuring IP address
CN106027696A (en) * 2016-07-20 2016-10-12 上海斐讯数据通信技术有限公司 Method and WIFI device for providing spare IP address
CN108566639A (en) * 2018-06-28 2018-09-21 江苏恒宝智能系统技术有限公司 A kind of code Activiation method
CN115174525A (en) * 2022-06-30 2022-10-11 北京百佑科技有限公司 Method and device for allocating equipment IP addresses

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848788A (en) * 2005-04-11 2006-10-18 京瓷美达株式会社 Information processing device and net connecting method
CN102857907A (en) * 2011-06-30 2013-01-02 安移通网络公司 Equipment abstract in self-organization wireless local area network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848788A (en) * 2005-04-11 2006-10-18 京瓷美达株式会社 Information processing device and net connecting method
CN102857907A (en) * 2011-06-30 2013-01-02 安移通网络公司 Equipment abstract in self-organization wireless local area network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935684A (en) * 2015-06-30 2015-09-23 四川效率源信息安全技术有限责任公司 Method for automatically configuring IP address
CN106027696A (en) * 2016-07-20 2016-10-12 上海斐讯数据通信技术有限公司 Method and WIFI device for providing spare IP address
CN108566639A (en) * 2018-06-28 2018-09-21 江苏恒宝智能系统技术有限公司 A kind of code Activiation method
CN115174525A (en) * 2022-06-30 2022-10-11 北京百佑科技有限公司 Method and device for allocating equipment IP addresses
CN115174525B (en) * 2022-06-30 2024-03-15 北京百佑科技有限公司 Equipment IP address allocation method and device

Similar Documents

Publication Publication Date Title
CN102647486B (en) Address distribution method, equipment and system
CN105323173B (en) The setting method and device of networking rule entry
US8861399B2 (en) Network node
ATE502344T1 (en) INTERNET PROTOCOL BASED TELEMETRY PATIENT MONITORING SYSTEM
CN107113892B (en) Method and device for automatically networking gateway equipment
CN101895587B (en) Prevent the methods, devices and systems of users from modifying IP addresses privately
CN103001868A (en) Method and device used for synchronous ARP (Address Resolution Protocol) list item of virtual router redundancy protocol backup set
CN103237093A (en) Self-adaptive IP (internet protocol) address acquiring method
CN104378455A (en) IP address distribution method and device
CN104812021B (en) A kind of method and device of AP access AC
CN101355594A (en) Method for detecting address conflict when distributing IP address
CN104468869A (en) Method for allocating IP addresses to terminals and method and device for obtaining IP addresses
EP3409071B1 (en) Wireless mesh network formation
CN107770010A (en) A kind of home intranet method and home networking system based on OpenFlow
CN102801716B (en) DHCP (Dynamic Host Configuration Protocol) anti-attacking method and device
CN104468619A (en) Method and gateway for achieving dual-stack web authentication
US8504702B2 (en) Providing server identification to a client
CN103795581A (en) Address processing method and address processing device
WO2015117455A1 (en) Network access method, system and terminal device, and computer storage medium
CN102594839A (en) Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards
US20210136597A1 (en) Ap deployment in a network comprising a centralized system and a distributed system
CN102857907A (en) Equipment abstract in self-organization wireless local area network
WO2016177185A1 (en) Method and apparatus for processing media access control (mac) address
JP6036568B2 (en) Information processing apparatus and program
CN105847143A (en) VRRP (virtual router redundancy protocol)-based load balancing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130807