CN100344129C - Automatic changing access method of IP address - Google Patents
Automatic changing access method of IP address Download PDFInfo
- Publication number
- CN100344129C CN100344129C CNB2004100824421A CN200410082442A CN100344129C CN 100344129 C CN100344129 C CN 100344129C CN B2004100824421 A CNB2004100824421 A CN B2004100824421A CN 200410082442 A CN200410082442 A CN 200410082442A CN 100344129 C CN100344129 C CN 100344129C
- Authority
- CN
- China
- Prior art keywords
- network
- network equipment
- address
- control end
- http 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
The present invention an access method for automatically altering an IP address. A program capable of parsing character strings requested by an HTTP protocol encapsulation package is configured in a network device according to the configuration of a control end network which is the source of the encapsulation package so as to automatically alter the network configuration of the network device, and thus, the aim to simplify the access to the device is achieved. Through actively learning the IP address necessary for configuring a broadcast network, and automatically configuring an IP address which has the same network segment with that of the requirement, the method enables a control end to access the network device via the name of the network device and configure without configuring action.
Description
Technical field
The present invention is a kind of IP address automatic changing access method, is meant that especially the network equipment can change the network settings that meets control end voluntarily, in order to the access of control end.
Background technology
Known network relevant device, main equipment such as router (router), network switch (switch), IP Wireless Router to small-sized household all needs to make online setting with a control end computer, as through PORT COM (COM part), can type mode gives an order (command line); Again because the generally use of embedded (embedded) operating system, to such an extent as to following all information household appliances, all can be by the http server software of The built-in, with network on-line, point-to-point online as doing with the network twisted wire of RJ-45 specification etc. or wireless mode (wireless), by the webpage pattern do its equipment initial setting (initialize) or basic, enter rank and set.
Consult Fig. 1, be the point-to-point setting schematic diagram of the network equipment of prior art, a network equipment AP1 (router, network switch or IP Wireless Router etc. as is known) is arranged shown in it, connect a computer PC 1 with network.The embedded operating system of network equipment AP1, as Linux, Cisco IOS, Windows etc., more built-in http server software, and have a default network address (IP) on general the use, the network address as Figure 1A P1 is 192.168.0.1, computer PC 1 also need be set one and belong to the network address of a sub-network (sub-network) together with this network equipment AP1, the network address as PC1 is set at 192.168.0.2, its subnet mask (subnetmask) is 255.255.255.0, enters the setting picture (Web Configuration) of network equipment AP1 at last by the web browser in the computer PC 1.
If among the network equipment AP1 also built-in one automatically the DynamicHost of distribution network setting set servo software, as BOOTP (Bootstrap Protocol), DHCP (Dynamic HostConfiguration Protocol) etc., when the computer PC 1 of a control end is online to this network equipment AP1, the DynamicHost of network equipment AP1 is set servo software and is received the request that this computer PC 1 requires IP, promptly according to required IP address, subnet mask, even DNS, network mesh relation etc., send computer PC 1 to, computer PC 1 is obtained this message and is promptly changed setting according to it, enters this network equipment AP1 with web browser again and sets, access.
And Figure 2 shows that the network equipment is arranged in the setting schematic diagram of LAN, if set environment is in one than in the complicated LAN, each equipment may interconnect with a hub (HUB) 10 or network switch, wherein onlinely may include a plurality of computer PC 1, PC2, plurality of networks device A P1, AP2, AP3 etc., if wherein network equipment AP1 needs to set, the user can operation in the computer PC 1 in the net territory, network settings in the computer PC 1 needs to change according to need at this moment, set as being in the same network segment with network equipment AP1, same subnet mask and with its co-net territory in device IP address inequality etc., or very this network equipment AP1 can allot network settings automatically, but computer PC 1 this network equipment of mat web browser access AP1 like this.
General network access setting process such as Fig. 3 network equipment access flow chart.
During beginning, that each network equipment is online with the control computer entity;
Step S300 finishes the network settings setting of control end computer and network equipment, the IP address of presetting when dispatching from the factory as the foundation network equipment, and the computer that upgrades control end is in the same network segment and not conflict mutually;
Step S301, the computer of control end produces the http protocol Request Packet, and asks at the IP address of known this network equipment;
Step S302, network equipment termination is received this http protocol package, and to IP address that should equipment, i.e. response request, as send an ACK package;
Step S303, reach online, as the action of reaching control end and equipment end Three-WayHandshaking;
Step S304, control end enters the access arrangement end with form web page.
As above-mentioned known access or when setting a network equipment, with the http server software in the web browser on-line equipment is example, wherein advantage is not need extra software to install can be set by a common computer, but, known method need be considered the network environment that it is complicated, as the IP address of avoiding netting equipment in the territory conflict mutually (because of the network equipment of same label often is that identical dynamic transmission IP address setting is arranged), need the same network segment to begin to carry out access, network settings is not inconsistent, whether this equipment has the DynamicHost set environment different with miscellaneous equipment, whether need change the network settings of computer in the net territory and influence other online setting etc.
IP of the present invention address automatic changing access method, needed IP address when can (1) initiatively learning radio network and setting; (2) automatic setting one and the demand IP address of same network segment mutually can make control end need can not set by access one network equipment through setting action.
Summary of the invention
The present invention is a kind of IP address automatic changing access method, the program that can resolve http protocol package request character string is set in a network equipment, automatically change the network settings of this network equipment according to the control end network settings in package source, use only reach with device name can this equipment of access purpose.
For achieving the above object, the technical solution adopted in the present invention is:
A kind of IP address automatic changing access method is provided, and with the device name of the network equipment important document as the http protocol Request Packet, the ability of the automatic change network settings by this network equipment reaches the purpose of access control, and this method step includes:
Produce one or more http protocol Request Packet;
Broadcast this http protocol Request Packet, wherein comprise the device name of this network equipment;
Resolve the contained device name of this http protocol Request Packet, when this network equipment receives this http protocol Request Packet, promptly carry out name resolving;
Automatically change the network settings of this network equipment, this network equipment is learnt a control end and is sent the interior message of this http protocol Request Packet, and change meets the network settings that this control end can carry out access;
This network equipment network settings is after changing responded to this control end; And
This network equipment is carried out accessing operation.
The present invention also comprises other technical characterictic:
This network equipment can wireless or wired mode be connected with the online of this control end.
This control end links this network equipment with a web browser.
Before this broadcasted the step of this http protocol Request Packet, this http protocol can be to carrying out network name resolving (DNS), window network name resolving mode analyzing device titles such as (WINS) in the existing net of this network equipment territory.
Before this changed the step of network settings of this network equipment automatically, this network equipment can obtain an IP address by address resolution protocol.
In sum, the said method step includes: produce one or more http protocol Request Packet; Broadcast this http protocol Request Packet; Resolve the contained device name of this http protocol Request Packet; Automatically change the network settings of this network equipment, its change meets the network settings that control end can carry out access; This network equipment network settings is after changing responded to this control end; And carry out this network equipment of access.
Beneficial effect of the present invention is: the network equipment of prior art such as router (router), network switch (switch), IP Wireless Router, even in the future general information household appliances etc., all need to make online setting with a control end computer, generally use and be http server software by The built-in, set with network on-line, means that can be wired or wireless connect, with the webpage pattern do its equipment initial setting (initialize) or basic, enter rank and set.Its advantage is not need extra software to install can do the access setting by a common computer, but need consider the shortcoming of the network environment that it is complicated in order to improve prior art, the present invention is by being arranged at the method for network equipment end, needed IP address when initiatively learning the radio network setting as (1); (2) automatic setting one and the demand IP address of same network segment mutually, and give control end and reply, control end need can not set by this network equipment of access through setting action.
Elaborate characteristics of the present invention and function below with reference to the drawings and specific embodiments.
Description of drawings
Fig. 1 is the point-to-point setting schematic diagram of the network equipment of prior art;
Fig. 2 is positioned at the setting schematic diagram of LAN for the network equipment of prior art;
Fig. 3 is the network equipment access flow chart of prior art;
Fig. 4 is a network equipment access flow chart of the present invention.
Symbol description among the figure:
AP1, AP2, the AP3 network equipment
PC1, the PC2 computer
Embodiment
As shown in Figure 4, be network equipment access flow chart of the present invention, the method that the present invention carried can be resolved the program of http protocol package request character string in the setting of network equipment end, and changes the network settings of equipment end according to the control end network settings in package source.The disclosed method of the present invention, with factory-said value or the device name set when the installing important document as the http protocol Request Packet, (as AP001, AP002 AP003...) can distinguish the situation that a net territory is provided with a plurality of network equipment to the mat device name.Step is as follows:
During beginning, each network equipment and control end computer need be reached physical network and link, and connect with wireless or wired means, and determine the device name (as AP001) of this network equipment;
Step S401, the computer of control end uses web browser, and the stroke device title, as http://AP001/, to produce one or a plurality of http protocol Request Packet;
Step S403, this http protocol can be to carrying out network name resolving (DomainName System in the net territory, DNS), window network name resolving (Windows Internet NamingService, WINS), the inquiries such as forms of the corresponding IP of title address in the main frame, to resolve a whether corresponding destination address of this device name (AP001)?
If with above-mentioned DNS, analysis modes such as WINS can be found out the corresponding IP address of this network equipment, promptly the control end computer are responded this IP address, and carry out step S415, and directly built-in this equipment of http server software access of this network equipment of mat is set; But, if step S405 is promptly carried out in the IP address that above analysis mode can not draw this device name correspondence;
Step S405, the computer of control end carry out http protocol package broadcasting (broadcast), promptly to each equipment and host broadcast in district's net;
Step S407, equipment in this LAN and main frame all can receive this HTTP package, and contained device name;
Should do step S409, the inline operations system in the network equipment promptly resolve the contained device name of (resolve) this http protocol package to device name?
If the non-network equipment title that should receive package of the device name of broadcasting gained promptly responds a package, as NAK, represent not correspondingly, get back to step S405, make control end continuation broadcasting packages; Correspond to this network equipment if resolve the device name that receives the HTTP package, promptly carry out step S411;
Step S411, the present invention is provided with the program of an automatic change network settings in the network equipment, can learn the interior message of package that control end sends, as transmitting terminal IP address, and this network equipment is promptly at the message that obtains, automatically change its network settings, to meet the requirement that control end can carry out access.Wherein, for conflicting with miscellaneous equipment in the net territory IP address of avoiding change automatically, again because the network equipment is because can't directly obtain subnet mask (subnetmask) message by the package of broadcasting, so the network equipment need send address resolution protocol packet (AddressResolution Protocol voluntarily, ARP), confirm with the equipment of vicinity or the IP address of main frame, to obtain an exclusive IP address;
Step S413, response this network equipment of control end IP address after changing;
Step S415, control end obtain desiring the response package of the network equipment of access, reach the purpose that device name is resolved, and can carry out the connection of network layer, to carry out this network equipment of access.
In sum, the present invention is an IP address automatic changing access method, mat one network equipment end can be resolved the program of http protocol package request character string voluntarily, the ability of the automatic change network settings of this network equipment of mat, change the network settings of equipment according to the control end network settings in package source, binding in order to control end is set, be rare invention article in fact, and usability, novelty and progressive on the tool industry, meet the application for a patent for invention important document fully, file an application in accordance with the law.
The above only is a preferable possible embodiments of the present invention, and is non-so promptly limit claim of the present invention, so the equivalent structure that uses specification of the present invention and accompanying drawing content to do such as changes, all in like manner is contained in the scope of the present invention, closes and gives Chen Ming.
Claims (4)
1. IP address automatic changing access method, with the device name of the network equipment important document as the http protocol Request Packet, the ability of the automatic change network settings by this network equipment reaches the purpose of access control, it is characterized in that the step of this method comprises:
Automatically before the network settings step of the change network equipment, this network equipment obtains an IP address by address resolution protocol;
Produce one or more http protocol Request Packet;
Broadcast this http protocol Request Packet, wherein comprise the device name of this network equipment;
Resolve the contained device name of this http protocol Request Packet, when this network equipment receives this http protocol Request Packet, promptly carry out name resolving;
Automatically change the network settings of this network equipment, this network equipment is learnt the interior message of this http protocol Request Packet that a control end sends, and change meets the network settings that this control end can carry out access;
This network equipment network settings is after changing responded to this control end; And
This network equipment is carried out accessing operation.
2. IP as claimed in claim 1 address automatic changing access method is characterized in that, this network equipment is connected in wireless or wired mode with the online of this control end.
3. IP as claimed in claim 1 address automatic changing access method is characterized in that this control end connects this network equipment with a web browser.
4. IP as claimed in claim 1 address automatic changing access method, it is characterized in that, before this broadcasted the step of this http protocol Request Packet, this http protocol can be to carrying out the parsing of device name in the mode of network name resolving, window network name resolving in the existing net of this network equipment territory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100824421A CN100344129C (en) | 2004-09-21 | 2004-09-21 | Automatic changing access method of IP address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100824421A CN100344129C (en) | 2004-09-21 | 2004-09-21 | Automatic changing access method of IP address |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1753382A CN1753382A (en) | 2006-03-29 |
CN100344129C true CN100344129C (en) | 2007-10-17 |
Family
ID=36680073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100824421A Expired - Fee Related CN100344129C (en) | 2004-09-21 | 2004-09-21 | Automatic changing access method of IP address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100344129C (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020133573A1 (en) * | 1998-11-12 | 2002-09-19 | Toru Matsuda | Method and apparatus for automatic network configuration |
US20030009592A1 (en) * | 2001-07-05 | 2003-01-09 | Paul Stahura | Method and system for providing static addresses for Internet connected devices even if the underlying address is dynamic |
WO2004064329A1 (en) * | 2003-01-15 | 2004-07-29 | Philips Intellectual Property & Standards Gmbh | Method and arrangement for assigning names to devices in a network |
-
2004
- 2004-09-21 CN CNB2004100824421A patent/CN100344129C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020133573A1 (en) * | 1998-11-12 | 2002-09-19 | Toru Matsuda | Method and apparatus for automatic network configuration |
US20030009592A1 (en) * | 2001-07-05 | 2003-01-09 | Paul Stahura | Method and system for providing static addresses for Internet connected devices even if the underlying address is dynamic |
WO2004064329A1 (en) * | 2003-01-15 | 2004-07-29 | Philips Intellectual Property & Standards Gmbh | Method and arrangement for assigning names to devices in a network |
Also Published As
Publication number | Publication date |
---|---|
CN1753382A (en) | 2006-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1170401C (en) | Apparatus and method for distributing interconnected network protocol address to network interface card | |
CN1123154C (en) | System, device and method for routine selection dhcp configuration agreement packets | |
CN1143488C (en) | Method and system for communication | |
US8543674B2 (en) | Configuration of routers for DHCP service requests | |
CN102014173B (en) | Domain name redirecting control method, module and system | |
CN1645867A (en) | Method for assigning an IP address to a device | |
CN1719808A (en) | Power saving in wireless packet based networks | |
CN1356808A (en) | Network control method and device for domestic appliances | |
CN1444364A (en) | Device and method for controlling family network subnet equipment | |
CN1791029A (en) | Method and system for automatically gaining configuration management server initial allocation | |
CN107872545A (en) | A kind of message transmitting method and device, computer-readable recording medium | |
CN1753390A (en) | Method of implementing business discrimination and business service quality control on broadband network | |
CN1889572A (en) | Internet protocol address distributing method and dynamic main machine configuration protocol relay | |
CN1711718A (en) | A router or bridge device comprising an installation application | |
CN1244999C (en) | Router apparatus and band width control method thereof | |
CN1753411A (en) | Improved method for assigning network identifiers using interface identifiers | |
CN1925439A (en) | Method for controlling UPnP equipment through internet | |
CN100344129C (en) | Automatic changing access method of IP address | |
CN1855925A (en) | Method for PPP access terminal obtaining carrier server address | |
CN1578243A (en) | Method and arrangement for configuration of a device in a data network | |
CN1914887A (en) | Automatic prefix allocation to IPV6 communication network equipment | |
CN1638358A (en) | Method and system for unified session control of multiple management servers on network appliances | |
US20060056445A1 (en) | Method for accessing a device with an IP address being modified spontaneously | |
CN1859251A (en) | Method for realizing communication unit interconnection | |
CN1281031C (en) | Method and device for connecting wide hand network user into Internet |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20071017 Termination date: 20180921 |
|
CF01 | Termination of patent right due to non-payment of annual fee |