CN102158565B - A kind of method and system for remote equipment configuration of IP address - Google Patents
A kind of method and system for remote equipment configuration of IP address Download PDFInfo
- Publication number
- CN102158565B CN102158565B CN201110086698.XA CN201110086698A CN102158565B CN 102158565 B CN102158565 B CN 102158565B CN 201110086698 A CN201110086698 A CN 201110086698A CN 102158565 B CN102158565 B CN 102158565B
- Authority
- CN
- China
- Prior art keywords
- address
- remote equipment
- server
- message
- configuration
- 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.)
- Active
Links
Abstract
The present invention proposes a kind of method and system for remote equipment configuration of IP address, wherein method includes: ARP list item is set up and preserved to server, and described ARP includes the MAC Address of remote equipment and the corresponding relation of the IP address that server is the configuration of this remote equipment;Server according to described ARP to remote equipment send IP push message, described IP push message purpose IP address be described server be this remote equipment configuration IP address;Remote equipment receives described IP and pushes message, and the IP address of the machine is set to the IP address that described server is the configuration of this remote equipment.The present invention can be actively remote equipment configuration of IP address, has higher real-time and reliability.
Description
Technical field
The present invention relates to Computer Remote Control Technology field, particularly relate to a kind of for remote equipment configuration of IP
The method and system of address.
Background technology
At present, method remote equipment remotely controlled generally have Simple Network Management Protocol (SNMP),
The network management means such as HTML (Hypertext Markup Language) (HTTP), terminal network (TELNET) agreement.Server
When remote equipment remotely being managed by these means, it is necessary to be known a priori by the IP address of remote equipment;
Once IP address is lost or is surprisingly distorted, and remote equipment will be unable to controlled.
During additionally, a lot of equipment are deployed after dispatching from the factory for the first time, it is configured without IP address.Also some
Equipment can carry the IP address of an acquiescence after dispatching from the factory, but nonetheless, server for the first time to far-end
When equipment carries out network management and disposes, still can be limited by all many condition.Such as remote equipment IP
When address is different with server ip address network segment, the default configuration such as gateway lost efficacy, then server still cannot
Remote equipment is effectively managed and disposes.Equipment in some field is even without serial ports, how
After equipment dispatches from the factory, it is carried out IP address configuration and to realize network management be a difficult problem.
Current existing IP address configuration method is mainly based upon towing mode, for example with the IP ground of DHCP
Location collocation method;Although this method can be remote equipment dynamically configures an IP address, but its process mistake
Divide the configuration depending on server, and IP address be likely to occur change after remote equipment is restarted, it is impossible to
Meet the demand that some occasions control in real time.
Summary of the invention
The invention provides a kind of method for remote equipment configuration of IP address, it is possible to set for far-end on one's own initiative
Standby configuration of IP address, has higher real-time and reliability.
Present invention also offers a kind of system for remote equipment configuration of IP address, it is possible to be far-end on one's own initiative
Equipment configuration of IP address, has higher real-time and reliability.
The technical scheme is that and be achieved in that:
A kind of method for remote equipment configuration of IP address, is applied to include the system of server and remote equipment,
Described method includes:
Address resolution protocol (ARP) list item is set up and preserved to server, and described ARP includes that far-end sets
Standby MAC Address and server are the corresponding relation of the IP address of this remote equipment configuration;
Server sends IP according to described ARP to remote equipment and pushes message, and described IP pushes message
Purpose IP address be described server be this remote equipment configuration IP address;
Remote equipment receives described IP and pushes message, and the IP address of the machine is set to described server is that this is remote
The IP address of end equipment configuration.
Said method may further include: described server and remote equipment pre-save identical designated ends
The information of mouth;
It is described designated port that described server sends, to remote equipment, the port used when IP pushes message;
Described remote equipment receives IP and pushes after message, and the IP address of the machine is set to server is
May further include before the IP address of this remote equipment configuration: remote equipment judges that described IP pushes message
Target MAC (Media Access Control) address the most identical with the MAC Address of the machine, if identical, then judge that described IP pushes away
It is different from the IP address of the machine and send port information and the machine in advance whether literary composition of delivering newspaper meets purpose IP address
The information of the designated port preserved is identical, if it is satisfied, then continue executing with described by the IP address setting of the machine
For the step that server is the IP address that this remote equipment configures.
Above-mentioned IP push message use terminal network (TELNET) agreement, file transfer protocol (FTP) (FTP),
Trivial file transfer protocol (TFTP) or predefined agreement are packaged.
Said system includes a server and more than one remote equipment;
Described ARP includes that the MAC Address of each remote equipment is the configuration of this remote equipment with server
The corresponding relation of IP address.
ARP is set up by the way of writing batch processing script.
A kind of system for remote equipment configuration of IP address, this system includes server and remote equipment, wherein,
Server is used for setting up and preserving ARP, and described ARP includes the MAC ground of remote equipment
Location and server are the corresponding relation of the IP address of this remote equipment configuration;It is additionally operable to according to described ARP
Sending IP to remote equipment and push message, it is that described server is that described IP pushes the purpose IP address of message
The IP address of this remote equipment configuration;
Remote equipment is used for receiving described IP and pushes message, and the IP address of the machine is set to described service
Device is the IP address of remote equipment configuration.
Above-mentioned server and remote equipment pre-save the information of identical designated port;
It is described designated port that above-mentioned server sends, to remote equipment, the port used when IP pushes message;
Said distal ends equipment can be also used for, after receiving IP propelling movement message, it is judged that described IP pushes message
Target MAC (Media Access Control) address the most identical with the MAC Address of the machine, if identical, then judge that described IP pushes away
It is different from the IP address of the machine and send port information and the machine in advance whether literary composition of delivering newspaper meets purpose IP address
The information of the designated port preserved is identical, if it is satisfied, then the IP address of the machine is set to server for being somebody's turn to do
The IP address of remote equipment configuration.
Above-mentioned IP pushes message and uses TELNET agreement, FTP, TFTP or predefined agreement to carry out
Encapsulation.
Said system includes a server and more than one remote equipment;
Described server, is should for setting up and preserve the MAC Address including each remote equipment and server
The ARP of the corresponding relation of the IP address of remote equipment configuration.
Server is for setting up ARP by the way of writing batch processing script.
Visible, that the present invention the proposes method and system for remote equipment configuration of IP address, by service
Device arranges the ARP of static state, pushes IP address to remote equipment, thus reaching is actively far-end
The purpose of equipment configuration of IP address, has higher real-time and reliability.
Accompanying drawing explanation
Fig. 1 be the present invention be the method flow diagram of remote equipment configuration of IP address;
Fig. 2 is the flowchart in the embodiment of the present invention one for remote equipment configuration of IP address;
Fig. 3 is the flowchart in the embodiment of the present invention two for remote equipment configuration of IP address.
Detailed description of the invention
The present invention proposes a kind of method of remote equipment configuration of IP address, is applied to include that server and far-end set
Standby system, as Fig. 1 be the present invention be the method flow diagram of remote equipment configuration of IP address, including:
Step 101: server is set up and preserves ARP, this ARP includes the MAC of remote equipment
Address and server are the corresponding relation of the IP address of this remote equipment configuration;
Step 102: server sends IP according to this ARP to remote equipment and pushes message, described IP
Push message purpose IP address be server be this remote equipment configuration IP address;
Step 103: remote equipment receives described IP and pushes message, and the IP address of the machine is set to server
The IP address configured for this remote equipment.
Adopt in this way, the server mode of management more active to IP address can be made, and without examining
Consider the dynamic situation of change of IP address distribution, there is higher real-time and reliability in actual applications.
Said method may further include: server and remote equipment pre-save identical designated port
Information;
After preserving the information of designated port, in above-mentioned steps 102, server can use this designated port to be remote
End equipment sends IP and pushes message;
Further, in above-mentioned steps 103, after remote equipment receives IP propelling movement message, and by the machine
IP address be set to server be this remote equipment configuration IP address before may further include: far-end
Equipment judges that the target MAC (Media Access Control) address of described IP propelling movement message is the most identical with the MAC Address of the machine, as
The most identical, then judge whether described IP propelling movement message meets purpose IP address different also from the IP address of the machine
And it is identical, if it is satisfied, then continue to hold to send the information of designated port that port information pre-saves with the machine
The described step that the IP address of the machine is set to the IP address that server is the configuration of this remote equipment of row.
In said method, IP push message can use TEINET agreement, file transfer protocol (FTP) (FTP),
Other agreements of trivial file transfer protocol (TFTP) or in advance self-defining are packaged.
It addition, in said system, more than one remote equipment, the then ARP that server is set up can be included
List item includes the MAC Address of each remote equipment and the IP address that server is the configuration of this remote equipment
Corresponding relation, thus be embodied as each remote equipment and push IP address.Server can be by writing batch processing
The mode of script sets up the ARP of static state, it is achieved the remote equipment for the non-configuration of IP address of high-volume is carried out
The IP of batch pushes, even cluster management.This is first particularly with MAC Address continuous print high-volume equipment
Secondary deployment has preferably applies effect.
Hereinafter lift specific embodiment to be discussed in detail.
Embodiment one:
If Fig. 2 is for the flowchart of remote equipment configuration of IP address, this enforcement in the embodiment of the present invention one
Example comprises the following steps:
Step 201: server sets up a Static ARP list item, will be pushed to the IP address of remote equipment (also
Be exactly server be this remote equipment configuration IP address) and remote equipment MAC Address bind.
Step 202: server sends IP based on a designated port to the IP address being pushed to remote equipment and pushes away
Delivering newspaper literary composition, the information of this designated port is preserved the most respectively by server and remote equipment.In the present embodiment,
This IP pushes message and uses TELNET agreement to be packaged, referred to as TELNET message.The present invention's
In other embodiments, IP pushes message and other agreement can also be used to be packaged, such as FTP, TFTP or
Other agreements of self-defining.
Step 203: remote equipment receives TELNET message.
Step 204: remote equipment judges the target MAC (Media Access Control) address of this TELNET message and the MAC of the machine
Address is the most identical, if identical, then performs step 205;If it is different, then perform other Message processing
Process.
Step 205: remote equipment judges that the purpose IP address of this TELNET message with the IP address of the machine is
No identical, if it is different, then perform step 206;If identical, then perform common TELNET message
Processing procedure.
Step 206: when the agreement that remote equipment prestores is identical with the agreement encapsulating this TELNET message, far
What end equipment judged described TELNET message sends designated port that port and the machine pre-save whether phase
With, if identical, then the IP address of the machine is set to the purpose IP address of this TELNET message (also
Be exactly server be this remote equipment push IP address);If it is different, then perform other Message processing mistake
Journey.
Embodiment two:
If Fig. 3 is for the flowchart of remote equipment configuration of IP address, this enforcement in the embodiment of the present invention two
Example comprises the following steps:
Step 301~303: identical with the step 201 in embodiment one~203, repeats no more.
Step 304: remote equipment judges the target MAC (Media Access Control) address of this TELNET message and the MAC of the machine
Address is the most identical, if identical, then performs step 305;If it is different, then perform other Message processing
Process.
Step 305: when the agreement that remote equipment prestores is identical with the agreement encapsulating this TELNET message,
What remote equipment judged described TELNET message sends designated port that port and the machine pre-save whether phase
With, if identical, then perform step 306;If it is different, then perform step 307.
Step 306: remote equipment judges that the purpose IP address of this TELNET message with the IP address of the machine is
No identical, if identical, then perform common TELNET Message processing process;If it is different, then incite somebody to action this
The IP address of machine is set to the purpose IP address of this TELNET message, and (namely server is that this far-end sets
The standby IP address pushed).
Step 307: remote equipment judges that the purpose IP address of this TELNET message with the IP address of the machine is
No identical, if identical, then perform common TELNET Message processing process;If it is different, then abandon
This message.
The present invention also proposes a kind of system for remote equipment configuration of IP address, and this system includes that server is with remote
End equipment, described server is used for setting up and preserving ARP, and described ARP includes remote equipment
MAC Address and server are the corresponding relation of the IP address of this remote equipment configuration;It is additionally operable to according to described
ARP sends IP to remote equipment and pushes message, and it is described that described IP pushes the purpose IP address of message
Server is the IP address of this remote equipment configuration;
Described remote equipment is used for receiving described IP and pushes message, and the IP address of the machine is set to described service
Device is the IP address of remote equipment configuration.
In said system, server and remote equipment pre-save the information of identical designated port;
Server can use this designated port to send IP to remote equipment and push message;
Described remote equipment can be also used for, after receiving IP propelling movement message, it is judged that described IP pushes message
Target MAC (Media Access Control) address the most identical with the MAC Address of the machine, if identical, then judge that described IP pushes away
It is different from the IP address of the machine and send port information and the machine in advance whether literary composition of delivering newspaper meets purpose IP address
The information of the designated port preserved is identical, if it is satisfied, then the IP address of the machine is set to server for being somebody's turn to do
The IP address of remote equipment configuration.
In said system, IP pushes message can use TELNET agreement, FTP, TFTP or the most voluntarily
Other agreements of definition are packaged.
Said system can include a server and more than one remote equipment;So, server can be used
In setting up and preserve the MAC Address including each remote equipment and the IP that server is the configuration of this remote equipment
The ARP of the corresponding relation of address.Server may be used for setting up by the way of writing batch processing script
ARP.
As fully visible, the present invention propose configuration of IP address scheme compared with prior art, to IP address
Mode of management more active, and without considering the dynamic situation of change that IP address is distributed, in actual applications
There is higher real-time and reliability.This invention compensate for existing conventional network management and is based on one
The defect of individual known IP address, is restarting the feelings causing IP address to be lost to the maloperation of IP address or equipment
Under condition, still equipment can be carried out IP configuration or reduction, be conducive to the safety improving the network equipment with steady
Qualitative, there is the meaning of actual application.It addition, the equipment in some field does not has serial ports, solution of the present invention
Determine and carried out IP address configuration for this kind equipment and realize the technical problem of network management.Further, this
Bright can also coordinate and write batch processing script by setting up static ARP table in the server and realize for large quantities of
The remote equipment that amount does not configures carries out batch IP and pushes, even cluster management.This is particularly with MAC ground
Location continuous print high-volume equipment is disposed first to have and is preferably applied effect.Present invention is particularly suitable for a net
In section;But, if across gateway, utilizing the process of state of the art through those skilled in the art
Also can realize.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Within the spirit of invention and principle, any modification, equivalent substitution and improvement etc. done, should be included in
Within the scope of protection of the invention.
Claims (10)
1. being a method for remote equipment configuration of IP address, be applied to include server and remote equipment is
System, it is characterised in that described method includes:
ARP list item is set up and preserved to server, and described ARP includes remote equipment
MAC Address and server are the corresponding relation of the IP address of this remote equipment configuration;
Server sends IP according to described ARP to remote equipment and pushes message, and described IP pushes message
Purpose IP address be described server be this remote equipment configuration IP address;
Remote equipment receive described IP push message, it is judged that described IP push message target MAC (Media Access Control) address with
The MAC Address of the machine is the most identical, if identical, and at the destination address of message and local IP address
Differ, and in the case of the transmitting terminal of message is identical with the local designated port preserved, by the IP ground of the machine
Location is set to the IP address that described server is the configuration of this remote equipment.
Method the most according to claim 1, it is characterised in that described method farther includes: described
Server and remote equipment pre-save the information of identical designated port;
It is described designated port that described server sends, to remote equipment, the port used when IP pushes message.
Method the most according to claim 1 and 2, it is characterised in that described IP pushes message and uses eventually
End network TELNET agreement, file transfer protocol (FTP) FTP, trivial file transfer protocol TFTP or fixed in advance
The agreement of justice is packaged.
Method the most according to claim 1 and 2, it is characterised in that described system includes a service
Device and more than one remote equipment;
Described ARP includes that the MAC Address of each remote equipment is the configuration of this remote equipment with server
The corresponding relation of IP address.
Method the most according to claim 4, it is characterised in that described ARP is criticized by writing
The mode processing script is set up.
6. being a system for remote equipment configuration of IP address, this system includes server and remote equipment, its
It is characterised by,
Described server is used for setting up and preserving ARP, and described ARP includes the MAC of remote equipment
Address and server are the corresponding relation of the IP address of this remote equipment configuration;It is additionally operable to according to described ARP
List item sends IP to remote equipment and pushes message, and it is described service that described IP pushes the purpose IP address of message
Device is the IP address of this remote equipment configuration;
Described remote equipment is used for receiving described IP and pushes message, it is judged that described IP pushes purpose MAC of message
Address is the most identical with the MAC Address of the machine, if identical, and in destination address and the machine IP of message
In the case of address differs, and the transmitting terminal of message is identical with the local designated port preserved, then by the machine
IP address be set to described server be remote equipment configuration IP address.
System the most according to claim 6, it is characterised in that described server is with remote equipment in advance
Preserve the information of identical designated port;
It is described designated port that described server sends, to remote equipment, the port used when IP pushes message.
8. according to the system described in claim 6 or 7, it is characterised in that described IP pushes message and uses
TELNET agreement, FTP, TFTP or predefined agreement are packaged.
9. according to the system described in claim 6 or 7, it is characterised in that described system includes a service
Device and more than one remote equipment;
Described server, is should for setting up and preserve the MAC Address including each remote equipment and server
The ARP of the corresponding relation of the IP address of remote equipment configuration.
System the most according to claim 9, it is characterised in that described server is for by writing
The mode of batch processing script sets up ARP.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110086698.XA CN102158565B (en) | 2011-04-07 | 2011-04-07 | A kind of method and system for remote equipment configuration of IP address |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110086698.XA CN102158565B (en) | 2011-04-07 | 2011-04-07 | A kind of method and system for remote equipment configuration of IP address |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102158565A CN102158565A (en) | 2011-08-17 |
CN102158565B true CN102158565B (en) | 2016-12-07 |
Family
ID=44439739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110086698.XA Active CN102158565B (en) | 2011-04-07 | 2011-04-07 | A kind of method and system for remote equipment configuration of IP address |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102158565B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105871631B (en) * | 2016-05-31 | 2019-04-09 | 武汉光迅科技股份有限公司 | A method of it is given for change based on snmp protocol and loses IP |
CN106713525B (en) * | 2016-12-29 | 2021-01-29 | 华为技术有限公司 | Method, device and system for configuring communication parameters |
CN108696370B (en) * | 2017-04-06 | 2021-04-13 | 中国移动通信集团甘肃有限公司 | Method, device and system for binding and unbinding server and service |
CN108183978B (en) * | 2018-03-29 | 2021-01-22 | 北京环境特性研究所 | Communication equipment IP address configuration method and communication equipment |
CN110868480A (en) * | 2018-08-27 | 2020-03-06 | 北京淳中科技股份有限公司 | IP address configuration method, device and system of network equipment |
CN111935332A (en) * | 2020-08-11 | 2020-11-13 | 杭州锐格思科技有限公司 | Configuration method for managing IP address of switch |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179566A (en) * | 2007-11-24 | 2008-05-14 | 华为技术有限公司 | Method and apparatus for preventing ARP packet attack |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101521658A (en) * | 2008-02-29 | 2009-09-02 | 上海博达数据通信有限公司 | Realizing method for Ethernet ARP scanning which is applied in broadband router |
CN101287017B (en) * | 2008-05-19 | 2013-12-25 | 郑宽永 | Active IP address allocating method and system |
CN101656763B (en) * | 2009-09-11 | 2013-03-13 | 华为技术有限公司 | IP address automatic distribution method, client and server |
-
2011
- 2011-04-07 CN CN201110086698.XA patent/CN102158565B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179566A (en) * | 2007-11-24 | 2008-05-14 | 华为技术有限公司 | Method and apparatus for preventing ARP packet attack |
Also Published As
Publication number | Publication date |
---|---|
CN102158565A (en) | 2011-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102158565B (en) | A kind of method and system for remote equipment configuration of IP address | |
US8224936B2 (en) | Configuration file override | |
CN105024855B (en) | Distributed type assemblies manage system and method | |
CN103491203B (en) | A kind of method of virtualization DHCP service, device, system and server | |
CN101848107B (en) | SNMP (Simple Network Management Protocol) network element and communication method of SNMP network element and proprietary protocol network element | |
CN105847108B (en) | Communication means and device between container | |
CN111176723B (en) | Service grid and link version based service multi-version release system and method | |
CN103220165B (en) | Processing method and device for server active downtime | |
CN106101297B (en) | A kind of message answer method and device | |
CN107770010A (en) | A kind of home intranet method and home networking system based on OpenFlow | |
CN106411742A (en) | Message transmission method and device | |
CN100563263C (en) | In network storage service, realize the method and system of system high-available | |
CN103051738B (en) | A kind of dhcp address distribution method and system | |
CN107659930A (en) | A kind of AP connection control methods and device | |
CN108989420A (en) | The method and system of registration service, the method and system for calling service | |
CN103780494B (en) | A kind of user information acquiring method and device | |
CN101640634B (en) | Method for controlling network flow | |
CN102647358A (en) | Message transmitting and processing method, device, client equipment and network equipment | |
CN106878481A (en) | A kind of Internet protocol IP address acquisition methods, device and system | |
CN104009961A (en) | PPPoE session ID distribution method and equipment thereof | |
CN106341301A (en) | Message pushing method and device | |
CN107707689A (en) | A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device | |
CN104618148A (en) | Firewall device and backup method thereof | |
CN103533001A (en) | Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server | |
CN106790735A (en) | The virtual machine static network method to set up communicated using serial ports and DHCP protocol |
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 |