CN102014044A - Domain collision avoidance method and router using same - Google Patents

Domain collision avoidance method and router using same Download PDF

Info

Publication number
CN102014044A
CN102014044A CN2009101701671A CN200910170167A CN102014044A CN 102014044 A CN102014044 A CN 102014044A CN 2009101701671 A CN2009101701671 A CN 2009101701671A CN 200910170167 A CN200910170167 A CN 200910170167A CN 102014044 A CN102014044 A CN 102014044A
Authority
CN
China
Prior art keywords
address
router
network position
wide area
port
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
CN2009101701671A
Other languages
Chinese (zh)
Other versions
CN102014044B (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.)
Giga Byte Technology Co Ltd
Original Assignee
Giga Byte 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 Giga Byte Technology Co Ltd filed Critical Giga Byte Technology Co Ltd
Priority to CN2009101701671A priority Critical patent/CN102014044B/en
Publication of CN102014044A publication Critical patent/CN102014044A/en
Application granted granted Critical
Publication of CN102014044B publication Critical patent/CN102014044B/en
Active 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 domain collision avoidance method which comprises the following steps of: detecting whether the network bits of WAN (Wide Area Network) IP addresses and an IP address pool of a router are same or not; if so, changing the network bits of the IP address pool of the router promptly to be different from the network bits of the WAN IP addresses; and then, informing all client devices connected with the router so that the client devices can reacquire new IP addresses from the router. By the method, the network bits of the IP address pools of any two connected routers cannot be repeated, thereby achieving the purpose of avoiding domain collision.

Description

A kind of router of netting the territory method for collision avoidance and using this method
Technical field
The present invention is relevant with router, relates in particular to the function of the IP address assignment aspect of router.
Background technology
At a LAN (Local Area Network, LAN) device in, for example computer, printer, scanner, router (router) or the like, their IP (Internet Protocol, IP) address is distributed by the router in this LAN.Router quantity in this LAN may have only one, also has a plurality ofly, decides on demand.
Fig. 3 shows the basic framework of a typical router 9, and this router 9 has 2 network interfaces (network interface), i.e. a wide area port 90 (WAN port) and a local port 91 (LAN port).An one wide area Port IP address 901 (WAN port IP address) and a dhcp client assembly 902 (DHCP client) are arranged in this wide area port 90.One local Port IP address 911 (LAN port IP address), an IP address pool 912 (IP pool) and a DHCP server-side assembly 913 (DHCPserver) are arranged in this local port 91.Wherein:
This wide area port 90 is to be used for connecting a router 9a who is positioned at the upper strata.
Because the framework of this router 9a is identical with this router 9, so, this dhcp client assembly 902 can be according to DHCP (Dynamic HostConfiguration Protocol, DHCP) regulation, obtain an IP address to this router 9a, for example 192.168.1.1 is provided as this wide area Port IP address 901.
This IP address pool 912 is the one group of IP address that is set by a user, 192.168.2.0~192.168.2.9 for example, and 192.168.2 wherein is the network position .0~.9 is the main frame position.The network position of the IP address in same IP address pool (Network bits) all is identical, but main frame position (Host bits) has nothing in common with each other.
This IP address pool 912 is taken from this local Port IP address 911, normally selects the start ip address in this IP address pool 912 for use, and for example 192.168.2.0 is used as this local Port IP address 911.
This DHCP server-side assembly 913 can be according to the regulation of DHCP, obtaining one from this IP address pool 912 was not used or the matured IP of lease address as yet, for example, 192.168.2.1~192.168.2.3, distribute to the dhcp client device that connects with this local port 91, for example computer 9b or is positioned at the router 9c of lower floor.
Under normal conditions, the network position of the IP address pool of this router 9a, i.e. 192.168.1, with the network position of the IP address pool 912 of this router 9, i.e. 192.168.2, both are inequality.So the IP address that is dispensed from this router 9a all is 192.168.1.X, the IP address that is dispensed from this router 9 all is 192.168.2.X, and both can not repeat.Yet, in after this router 9a is shut down, starting shooting again again,, just might be same as the IP address that is dispensed from this router 9 from the IP address that this router 9a is dispensed.More detailed it, be shut down as this router 9a and lose online the time with this router 9 suddenly, the IP address assignment running of this router 9 is also unaffected, it remains the idle IP address of getting in the original IP address pool 912, be 192.168.2.4~192.168.2.9, continue to distribute to the client terminal device that just connects subsequently, if any with it.When this router 9a finishes online the time with this router 9 once more because of start again, this router 9a can initiatively distribute a new IP address to this router 9 automatically according to the regulation of DHCP, replaces the previous wide area IP address 901 of this router 9.
The IP address pool that problem is this router 9a might use the network position identical with the IP address pool 912 of this router 9 accidentally after start again, promptly both network positions all are 192.168.2.In case this situation takes place, the territory conflict of promptly so-called net.When the conflict of so-called net territory takes place, the then aforementioned new IP address of initiatively distributing to this router 9 by this router 9a, just probably be wherein one among 192.168.2.1~192.168.2.9,192.168.2.1 for example, this IP address is repetition with the IP address that this router 9 had before been distributed to a certain computer 9b just.At this moment, will appear at has two devices in the same LAN, and promptly this router 9 and this a certain computer 9b are assigned to identical IP address, thereby cause IP address conflict, the mistake that initiation can not be expected.
Taiwan patent of invention I227614 has disclosed a kind of DynamicHost collocation method, and it checks repeatedly whether institute's IP address allocated repeats when the distributing IP address, uses and guarantees that the IP address that is dispensed can not repeat.Yet this method can't be used to solve above-mentioned net territory conflict, makes it only can guarantee that the IP address that dispenses from same router can not repeat, and can't guarantee never can not repeat with the IP address that router dispensed.
Summary of the invention
The object of the present invention is to provide a kind of router of netting the territory method for collision avoidance and using this method,, guarantee that the IP address that dispenses from those routers can not repeat in order in using the occasion of many routers.
This method mainly is when a router is obtained an IP address and is used as its wide area IP address, go to judge whether the network position of the IP address pool of this router is same as the network position of this wide area IP address, and when judged result is "Yes", change network position and this local IP address of this IP address pool, so that the network position of this IP address pool is different from the network position in this wide area IP address.This method also is included in after the network position and this local IP address of having changed this IP address pool, transmit an instruction and give all dhcp client devices that connect with this router, and making those dhcp client devices can be after receiving this instruction, the regulation according to DHCP obtains new IP address to this router again automatically.
In any case, whether the present invention not only can identical with the network position of IP address pool via the wide area IP address of checking a router, whether LAN nets the territory conflict under judging this router, and can be when judged result be "Yes", change the network position of the IP address pool of this router immediately, make it be different from the network position of this wide area IP address.This expression, the network position of the IP address pool of this router, with the network position of the IP address pool of this another router, both can not take place to repeat, thereby reach the purpose of avoiding netting the territory conflict.
As for more detailed technology content of the present invention, in the embodiment that is exposed in subsequently.
Description of drawings
Fig. 1 is the functional block diagram of a preferred embodiment of router of the present invention.
Simple and easy flow chart shown in Figure 2 be used to illustrate this preferred embodiment of the present invention net territory collision avoidance procedure avoid program.
Fig. 3 is the functional block diagram of known router.
Embodiment
Fig. 1 is a preferred embodiment of router one of the present invention, the basic framework of wherein pointing out this router one comprises that two are supported DHCP (Dynamic HostConfiguration Protocol, DHCP) network interface (network interface), i.e. a wide area port 2 (WAN port) and a local port 3 (LAN port).An one dhcp client assembly 20 (DHCP client) and a wide area Port IP address 21 (WAN port IP addres s) are arranged in this wide area port 2.One DHCP server-side assembly 30 (DHCP server), a local Port IP address 31 (LAN port IP address) and an IP address pool 32 (IP pool) are arranged in this local port 3.The running of aforementioned basic framework, similar with prior art, hold and do not give unnecessary details.
This wide area port 2 connects a DHCP server-side device, for example is positioned at another router four on upper strata.Because this another router four has the network interface that is same as this router one, therefore, the dhcp client assembly 20 of this router one can be obtained an IP address to this another router four and be used as this wide area Port IP address 21, for example 192.168.1.1 according to the regulation of DHCP.
This local port 3 connect 3 or more multidigit in the client terminal device 5 of lower floor, for example personal computer or other router.Those client terminal devices 5 are supported DHCP and are the dhcp client device, and this IP address pool 32 has been set to 192.168.2.0~192.168.2.9 totally 10 IP addresses.Therefore, this local Port IP address 31 is 192.168.2.0, and this DHCP server-side assembly 30 can be according to the regulation of DHCP, and distributing IP address 192.168.2.1~192.168.2.3 gives those client terminal devices 5.
Under normal conditions, the network position of the IP address pool of this another router four, i.e. 192.168.1, with the network position of the IP address pool 32 of this router one, i.e. 192.168.2, both are inequality.Yet, after this another router four is started shooting after being shut down again again, its IP address pool can be reset, if the network position of the IP address pool that is reset, use 192.168.2 accidentally, will follow the network position of the IP address pool 32 of this router one, just 192.168.2, repeat, cause the net territory conflict described in the prior art.
Generation for fear of the conflict of net territory, this router one also comprises a net territory collision avoidance procedure 6, it can be carried out one and avoid program 60 after this dhcp client assembly 20 is obtained this wide area Port IP address 21 from this another router four, this is avoided program 60 preferably as shown in Figure 2, comprising:
A step: the network position of obtaining this wide area Port IP address 21.
B step: the network position of obtaining this IP address pool 32.
The c step: whether the network position of judging this wide area IP address 21 is identical with the network position of this IP address pool 32, and when judged result is "No", finishes this and avoid program 60, and when judged result is "Yes", continues to carry out d1~d2 step subsequently.
D1 step: change network position and this local Port IP address 31 of this IP address pool 32, so that the network position of this IP address pool 32 is different from the network position in this wide area Port IP address 21.Wherein, why this local Port IP address 31 needs change, is that its network position need be same as the network position of each the IP address in this IP address pool 32 instead at least because it is to be selected from this IP address pool 32.
D2 step: transmit each client terminal device 5 that local port 3 connections of following this router one are given in an instruction.
Because each client terminal device 5 is further configured Cheng Zaiyi and receives after this instruction, will be automatically according to the regulation of DHCP, again obtain new IP address to this DHCP server-side assembly 30, in order to replace the IP address of before having obtained, so, in case finish above-mentioned avoiding after the program 60, the IP address of each client terminal device 5 all can be reallocated.
Avoid in the program 60 above-mentioned, in a single day because when finding that the network position of this wide area Port IP address 21 is identical with the network position of this IP address pool 32, will go to change the network position of this IP address pool 32 automatically, so that the network position of this IP address pool 32 is different from the network position in this wide area Port IP address 21.So those client terminal devices 5 are the network position in the obtained new IP address of this DHCP server-side assembly 30 according to above-mentioned instruction and again, network position in this wide area IP address 21 also just is not the same.This expression, the IP address pool 32 employed network positions of this router one, with the employed network of the IP address pool position of this another router four, both can not take place to repeat, thereby reach the purpose of avoiding netting the territory conflict.So, from the IP address that this router one and this another router four dispensed, both there is no fear of repetition.This means, using two or more in the LAN of multi-router, the present invention can guarantee that the IP address that dispenses from those routers can not repeat.
In any case, anyone can obtain enough instructions from the explanation of above-mentioned example, and according to and recognize that the present invention has industrial practicality and creativeness really, and the present invention there is no identical in same field or thereby the similar techniques exposure formerly has novelty, therefore the present invention has really met the patent of invention important document, now files an application in accordance with the law.

Claims (2)

1. can avoid netting the router that conflicts in the territory for one kind, comprise:
One wide area port has a dhcp client assembly and a wide area Port IP address, and described dhcp client assembly can be obtained an IP address from a DHCP server-side device according to the regulation of DHCP and be used as described wide area Port IP address;
One local port, have an IP address pool, a local Port IP address and a DHCP server-side assembly, described DHCP server-side assembly can be distributed to one or more dhcp client device that connects with described local port according to the regulation of DHCP with the IP address in the described IP address pool; And
One net territory collision avoidance procedure, in it can repeat in the network position of the network position of described wide area Port IP address and described IP address pool, change the network position and the described regional Port IP address of described IP address pool, so that the network position of described IP address pool is different from the network position in the described wide area Port IP address, and transmitting an instruction to all described dhcp client devices that connect with described local port subsequently.
2. net the territory method for collision avoidance for one kind, comprising:
Obtain after an IP address is used as its wide area IP address at a router, obtain the network position of the IP address pool of the network position of described wide area IP address and described router;
Whether the network position of judging described wide area IP address is identical with the network position of described IP address pool, and when judged result is "Yes", change the network position of described IP address pool and the local IP address of described router, so that the network position of described IP address pool is different from the network position in the described wide area IP address, and notifying an instruction to give all dhcp client devices that connect with described router subsequently; And
Described dhcp client device is configured to can be after receiving described instruction, and promptly automatic regulation according to DHCP obtains new IP address to described router again.
CN2009101701671A 2009-09-04 2009-09-04 Domain collision avoidance method and router using same Active CN102014044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101701671A CN102014044B (en) 2009-09-04 2009-09-04 Domain collision avoidance method and router using same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101701671A CN102014044B (en) 2009-09-04 2009-09-04 Domain collision avoidance method and router using same

Publications (2)

Publication Number Publication Date
CN102014044A true CN102014044A (en) 2011-04-13
CN102014044B CN102014044B (en) 2013-01-02

Family

ID=43844067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101701671A Active CN102014044B (en) 2009-09-04 2009-09-04 Domain collision avoidance method and router using same

Country Status (1)

Country Link
CN (1) CN102014044B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379179A (en) * 2012-04-17 2013-10-30 中兴通讯股份有限公司 Method and system for planning network IP address
CN105323177A (en) * 2014-07-28 2016-02-10 国基电子(上海)有限公司 Router and routing method
CN105357330A (en) * 2015-10-22 2016-02-24 上海斐讯数据通信技术有限公司 Method and system for preventing IP address conflict of network devices
CN105376343A (en) * 2015-11-26 2016-03-02 上海贝锐信息科技有限公司 Router address distribution method, router address distribution device and server in VPN
CN105704261A (en) * 2012-02-03 2016-06-22 联想(北京)有限公司 IP address conflict solving method, electronic equipment and computer
CN105744012A (en) * 2016-03-09 2016-07-06 上海斐讯数据通信技术有限公司 Automatic solving method and device for IP (Internet Protocol) network segment conflicts of multiple WAN (wide area network) and LAN (local area network)
CN106254571A (en) * 2016-08-05 2016-12-21 杭州华三通信技术有限公司 A kind of client ip address distribution method and device
WO2018072701A1 (en) * 2016-10-19 2018-04-26 中兴通讯股份有限公司 Gateway address conflict processing method, device and router
CN108900648A (en) * 2018-06-13 2018-11-27 网宿科技股份有限公司 A kind of method and apparatus controlling more CNAME flow proportionals
CN110190978A (en) * 2018-02-23 2019-08-30 中兴通讯股份有限公司 A kind of method, first routing device and storage medium avoiding conflict

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100373891C (en) * 2004-09-03 2008-03-05 上海贝尔阿尔卡特股份有限公司 Method, device and system for controlling network MAC address conllision
CN101388789A (en) * 2007-09-10 2009-03-18 上海市闵行中学 Solving method for IP address collision failure brought up by router software BUG
CN101170457A (en) * 2007-11-22 2008-04-30 中兴通讯股份有限公司 A method and device for detecting label configuration confliction in router system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704261A (en) * 2012-02-03 2016-06-22 联想(北京)有限公司 IP address conflict solving method, electronic equipment and computer
CN105704261B (en) * 2012-02-03 2019-03-29 联想(北京)有限公司 A kind of method of settling IP address conflict, electronic equipment and computer
CN103379179A (en) * 2012-04-17 2013-10-30 中兴通讯股份有限公司 Method and system for planning network IP address
CN103379179B (en) * 2012-04-17 2016-12-14 南京中兴软件有限责任公司 A kind of method and system for planning network IP address
CN105323177A (en) * 2014-07-28 2016-02-10 国基电子(上海)有限公司 Router and routing method
CN105357330B (en) * 2015-10-22 2018-05-18 上海斐讯数据通信技术有限公司 A kind of system and method for the IP address conflict for preventing the network equipment
CN105357330A (en) * 2015-10-22 2016-02-24 上海斐讯数据通信技术有限公司 Method and system for preventing IP address conflict of network devices
CN105376343A (en) * 2015-11-26 2016-03-02 上海贝锐信息科技有限公司 Router address distribution method, router address distribution device and server in VPN
CN105744012A (en) * 2016-03-09 2016-07-06 上海斐讯数据通信技术有限公司 Automatic solving method and device for IP (Internet Protocol) network segment conflicts of multiple WAN (wide area network) and LAN (local area network)
CN106254571A (en) * 2016-08-05 2016-12-21 杭州华三通信技术有限公司 A kind of client ip address distribution method and device
WO2018072701A1 (en) * 2016-10-19 2018-04-26 中兴通讯股份有限公司 Gateway address conflict processing method, device and router
CN107968844A (en) * 2016-10-19 2018-04-27 中兴通讯股份有限公司 A kind of processing method, device and the router of gateway address conflict
CN107968844B (en) * 2016-10-19 2022-01-11 中兴通讯股份有限公司 Method and device for processing gateway address conflict and router
CN110190978A (en) * 2018-02-23 2019-08-30 中兴通讯股份有限公司 A kind of method, first routing device and storage medium avoiding conflict
CN108900648A (en) * 2018-06-13 2018-11-27 网宿科技股份有限公司 A kind of method and apparatus controlling more CNAME flow proportionals

Also Published As

Publication number Publication date
CN102014044B (en) 2013-01-02

Similar Documents

Publication Publication Date Title
CN102014044B (en) Domain collision avoidance method and router using same
CN106302434B (en) Server adaptation method, device and system
CN105357330B (en) A kind of system and method for the IP address conflict for preventing the network equipment
CN100429900C (en) Information processing device and net connecting method
CN105743684B (en) The configuration method and router of router under a kind of ap mode
CN104767649A (en) Bare metal server deployment method and device
JP2002368763A (en) Network system, server unit and client unit, and method and program for providing network ip address
CN103281203A (en) Ecos (Embedded Configurable Operating System) system-based DHCP (Dynamic Host Configuration Protocol) address assignment management method
CN101221516A (en) Interface seamless integration method and system across operating system platform
CN106911779A (en) A kind of cloud platform virtual machine obtains IP method and devices
JP6896722B2 (en) Resource configuration method and equipment
JP2013502628A (en) Method and apparatus for obtaining network setting information
CN106131235A (en) A kind of IP address configuration method
CN102238245B (en) Address allocation method and equipment
TW200428818A (en) Method for dynamically allocating IP addresses for hosts on a network
CN106412146B (en) The method and apparatus that a kind of dhcp client updates IP
TW201032555A (en) Router and method for avoiding a domain name conflict
CN112003964B (en) Multi-architecture-based IP address allocation method, device and medium
CN1708021A (en) Method of distributing switchin-in address for user terminal
CN110247778A (en) Installation method of operating system, device, electronic equipment and storage medium
CN105338131A (en) Testing method and system for address pool capacity of DHCP server
CN106034166B (en) Network parameter configuration method and device of local area network
US8145764B2 (en) Network sharing method without conflict
JP2003124935A (en) Apparatus, method and program for setting fixed address
CN1976357A (en) Method for establishing and managing DHCP strategy based on global address pool

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