CN107222589A - A kind of embedded equipment I P address batch modification method and system of identical IP - Google Patents

A kind of embedded equipment I P address batch modification method and system of identical IP Download PDF

Info

Publication number
CN107222589A
CN107222589A CN201710606109.3A CN201710606109A CN107222589A CN 107222589 A CN107222589 A CN 107222589A CN 201710606109 A CN201710606109 A CN 201710606109A CN 107222589 A CN107222589 A CN 107222589A
Authority
CN
China
Prior art keywords
address
modification
client
facility information
server
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
CN201710606109.3A
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.)
Nanjing Guodian Nanzi 710086 Automation Co Ltd
Original Assignee
Nanjing Guodian Nanzi 710086 Automation 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 Nanjing Guodian Nanzi 710086 Automation Co Ltd filed Critical Nanjing Guodian Nanzi 710086 Automation Co Ltd
Priority to CN201710606109.3A priority Critical patent/CN107222589A/en
Publication of CN107222589A publication Critical patent/CN107222589A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects

Abstract

The invention discloses the embedded equipment I P address batch modification method of identical IP a kind of, including:1, server all clients into LAN send facility information request simultaneously, and each user end to server responds respective facility information;2, by the client corresponding facility information in need for changing its IP address export in Excel file, so that the IP address of client is revised as the IP address specified of scene by user in Excel file;3, Excel file is imported, the wherein corresponding modification facility information of all clients is read;4, server is successively by the modification facility information of all clients, the coding that uniquely dispatched from the factory according to equipment sends modification IP orders to corresponding client, client receives after order is performed and returns to implementing result, server includes implementing result on its interface, until all modifications facility information is finished.The achievable IP address batch modification of the present invention, improves operating efficiency.

Description

A kind of embedded equipment I P address batch modification method and system of identical IP
Technical field
Present invention relates particularly to the embedded equipment I P address batch modification method of identical IP a kind of, the method is further related to IP address batch modification system.
Background technology
The embedded device of usual company production IP address when dispatching from the factory typically can all use factory-default, that is, have There is identical to dispatch from the factory IP, when these equipment are connected in field network, the problem of IP address of equipment conflicts just occur, it is impossible to Normal data communication is carried out, so as to influence equipment debugging progress.
Embedded device need before being taken into use to IP carry out manual modification, traditional method can only once change one it is embedding Enter the IP address of formula equipment, when scene need substantial amounts of equipment when, manually change IP address of equipment just become one it is withered Dry work, in fact it could happen that human operational error.Cause work ratio low, waste substantial amounts of human time, influence equipment debugging Progress.
The content of the invention
It is of the prior art not enough there is provided a kind of identical IP embedded equipment I P it is an object of the invention to overcome Location batch modification method and system, by the way that the information of equipment is exported into Excel file, with can once changing the IP of multiple devices Location, can save substantial amounts of manpower and time, effectively avoid the human operational error for setting IP to be likely to occur by platform, it is ensured that data Communication is normally carried out, and practicality is stronger.
In order to solve the above technical problems, the invention provides the embedded equipment I P address batch modification side of identical IP a kind of Method, it is characterized in that, including by the server and multiple client of network connection, this multiple client is located at same LAN It is interior;Method comprises the following steps:
Step S1, server all clients into LAN send facility information request simultaneously, and each client is to service Device responds respective facility information, facility information including equipment uniquely dispatch from the factory coding, network interface number, each network interface IP address and MAC Address, server preserves this facility information and including on its interface;
Step S2, by it is in need change its IP address the corresponding facility information of client export in Excel file, The IP address for specifying the IP address of the client scene of being revised as in Excel file for user;
Step S3, imports Excel file, reads the wherein corresponding modification facility information of all clients, modification equipment letter Breath include equipment uniquely dispatch from the factory coding, change network interface number, the amended IP address of each network interface;
Step S4, server uniquely dispatches from the factory successively by the modification facility information of all clients, according to equipment and encoded to phase The client answered sends modification IP orders, and client receives after order is performed and returns to implementing result, and server shows implementing result Show on its interface, until all modifications facility information is finished.
Further, in step S1, client of the server into LAN sends form of the request using broadcast.
Further, each client is uniquely dispatched from the factory coding including unique equipment.
Further, in step S4, IP modification command messages include:Equipment is uniquely dispatched from the factory coding, the network interface number of modification, IP address, the MAC Address of movable network interface after each network interface modification.
Further, IP modifications comprise the following steps:
S401, server compare active client movable network interface IP address whether the movable network interface IP with remaining client It is identical, if identical, go to S402;If differing, still using former MAC Address, S403 is gone to;
Whether S402, the movable network interface MAC Address for comparing active client is identical with remaining client activities network interface MAC, If identical, S403 is gone to;If differing, still using former MAC Address, S404 is gone to;
S403, broadcast address is revised as by the current IP MAC Address for changing the movable network interface in command message;
S404, server sends IP modification command messages;
S405, client receive and parse through IP modification command message in equipment uniquely dispatch from the factory coding whether with this client It is identical, if it is different, directly abandoning the message commands;If identical, IP address modification order is performed, and implementing result is returned To server.
Accordingly, based on the above method, present invention also offers the embedded equipment I P address batch modification of identical IP a kind of System, it is characterized in that, including by the server and multiple client of network connection, this multiple client is located at same LAN It is interior;
The IP requests that the server includes being sequentially connected are repaiied with respond module, IP export modules, IP import moduls and IP Change module;
IP is asked and respond module, and server all clients into LAN send facility information request, each visitor simultaneously Family end responds respective facility information to server, and facility information uniquely dispatches from the factory coding, network interface number, each network interface including equipment IP address and MAC Address, server preserve this facility information and including on its interface;
IP export modules, by it is in need change its IP address the corresponding facility information of client export to Excel text In part, the IP address for specifying the IP address of the client scene of being revised as in Excel file for user;
IP import moduls, import Excel file, read the wherein corresponding modification facility information of all clients, and modification is set Standby information include equipment uniquely dispatch from the factory coding, change network interface number, the amended IP address of each network interface;
IP modified modules, server is successively by the modification facility information of all clients, and uniquely dispatch from the factory coding according to equipment Modification IP orders are sent to corresponding client, client receives after order is performed and returns to implementing result, and server will perform knot Fruit is shown on its interface, until all modifications facility information is finished.
Compared with prior art, the beneficial effect that is reached of the present invention is:The achievable IP address batch modification of the present invention, is carried High workload efficiency, saves artificial and time cost.
Brief description of the drawings
Fig. 1 is the frame diagram of IP address batch modification system of the present invention;
Fig. 2 is the flow chart of IP address batch modification method of the present invention;
Fig. 3 is the flow chart of IP modifications.
Embodiment
The invention will be further described below in conjunction with the accompanying drawings.Following examples are only used for clearly illustrating the present invention Technical scheme, and can not be limited the scope of the invention with this.
A kind of identical IP of present invention embedded equipment I P address batch modification method, IP address batch modification system, As shown in figure 1, including the server by network connection and multiple embedded devices, this server can be using PC in the prior art Machine is realized, the relation between server and embedded device is described for convenience, embedded device can be referred to as into client, this Multiple client is located in same LAN.IP address batch modification method comprises the following steps:
Step S1, a key IP request and response:Server all clients into LAN send facility information simultaneously please Ask, each user end to server responds respective facility information, facility information including equipment uniquely dispatch from the factory coding, network interface number, Each network interface IP address and MAC Address, server preserve this facility information and including on its interface.
Client of the server into LAN sends request can be using the form broadcasted.
It is the identity card of equipment in a local network that equipment, which is uniquely dispatched from the factory and encoded, and each embedded device includes uniquely dispatching from the factory Coding, server can whereby distinguish different equipment.
Server is received after the response data of client, and the facility information of all clients is stored into setting to server In standby information data structure, facility information data structure includes:Equipment is with uniquely dispatching from the factory coding, network interface number, each network interface IP Location and MAC Address.And by these presentation of information on the interface of server (PC).
Step S2, a key IP export:By it is in need change its IP address the corresponding facility information of client export to In Excel file, the IP address for specifying the IP address of the client scene of being revised as in Excel file for user.
User can select armamentarium information to export on server interface, or choose as needed embedding derived from needs Enter formula equipment, user is sent after a key IP export (swf) commands, server is by the facility information data structure of selected embedded device Export to Excel file.The Excel file is stored on PC (server) hard disk.Facilitate user to edit and change IP address, User uniquely dispatches from the factory to encode according to equipment is revised as the live IP address specified by the IP address of equipment.
Illustrated below by taking 2 equipment as an example.
Device IP information before modification is as shown in table 1:The network interface A and network interface B of this two equipment IP as can be seen from Table 1 With MAC Address all same.
Amended device IP information is as shown in table 2:The network interface A of two equipment now and network interface B as can be seen from the table IP address is differed, but MAC Address is identical.Need exist for explanation is to work as user to change Excel file, only need to be to IP address Modify, for identical MAC Address without being concerned about, server can be handled when issuing IP modification orders, and processing procedure is such as Shown in Fig. 3.
Table 1:User edit before IP address Excel file
Table 2:User edit after IP address Excel file
Step S3, a key IP importing:Excel file is imported, the wherein corresponding modification facility information of all clients is read, Modification facility information include equipment uniquely dispatch from the factory coding, change network interface number, the amended IP address of each network interface.
User sends a key IP and imported after order, and server automatically imports amended facility information in Excel file Imported to IP in data structure.The information that IP is imported in data structure includes:Equipment uniquely dispatch from the factory coding, modification network interface number, The amended IP address of each network interface.
Step S4, a key IP modification:Server by the modification facility information of all clients, uniquely goes out according to equipment successively Factory encodes to corresponding client and sends modification IP orders, and client receives and implementing result is returned after order is performed, and server will Implementing result is shown on its interface, until all modifications facility information is finished.
User send a key IP modification order after, server automatically will need change equipment equipment uniquely dispatch from the factory coding, Network interface number, each network interface MAC Address, and amended IP address information are changed, the IP modification numbers of server program are added According in structure.Each data stored in data structure are changed according to IP successively, uniquely dispatch from the factory coding according to current device, to client End sends modification IP order.After the complete modification IP orders of client executing, by implementing result (the network interface name of success or modification failure Claim) return to server, and be shown on server interface, be easy to user to check.Then the next equipment of modification is performed IP orders, until all apparatus modifications operations are finished.
IP modification command messages include:Equipment is uniquely dispatched from the factory coding, IP modification orders, the network interface number of modification, each IP address, the MAC Address of movable network interface after network interface modification.Movable network interface is the network interface for referring to the accession to current local area network.Inactive net Mouth refers to the network interface for not accessing current local area network.For server, client (embedded device) only one of which Movable network interface, that is to say, that current active network interface belongs to the same network segment with LAN, inactive network interface is in different from LAN The network segment.Data interaction between server and client is transmitted by movable network interface, so if the work in modification queue The IP address of dynamic network interface is identical, and signal procedure of the client based on TCP or udp protocol just can not normal work.
One key IP modification process figures are as shown in Figure 3.Detailed step is as follows:
S401, server compare active client movable network interface IP address whether the movable network interface IP with remaining client It is identical, if identical, go to S402;If differing, still using former MAC Address, S403 is gone to;
S402, compare active client modification movable network interface MAC Address whether with remaining client activities network interface MAC phase Together, if identical, S403 is gone to;If differing, still using former MAC Address, S404 is gone to;
S403, broadcast address is revised as by the current IP MAC Address for changing the movable network interface in command message;
S404, server sends IP modification command messages;
S405, client receive and parse through IP modification command message in equipment uniquely dispatch from the factory coding whether with this client It is identical, if it is different, directly abandoning the message commands;If identical, IP address modification order is performed, and implementing result is returned To server.
Compared with traditional manual IP address amending method, the work that user's needs are done in method is:Four only need to be sent Bar order:One key IP is asked, and key export, a key IP is imported, key IP modifications;And IP in edit-modify Excel file Location information, the remaining all automation modification processes of process, it is not necessary to user intervention.By actual test, manual amendment 53 The IP address of platform equipment needs about 1-2 hours, and this method need to only be completed less than 5 minutes, and accuracy is 100%, referring specifically to table 3.
Table 3:The time required to 53 IP address of equipment of modification
The time required to manual amendment The time required to this method modification
1-2 hours 4-5 minutes
The inventive method saves a large amount of manpowers and time, effectively avoids the manual operation for setting IP to be likely to occur by platform Error, it is ensured that data communication is normally carried out, and practicality is stronger.
Accordingly, the embedded equipment I P address batch modification system of a kind of identical IP based on the above method, including it is logical The server and multiple client of network connection are crossed, this multiple client is located in same LAN;
The IP requests that the server includes being sequentially connected are repaiied with respond module, IP export modules, IP import moduls and IP Change module;
IP is asked and respond module, and server all clients into LAN send facility information request, each visitor simultaneously Family end responds respective facility information to server, and facility information uniquely dispatches from the factory coding, network interface number, each network interface including equipment IP address and MAC Address, server preserve this facility information and including on its interface;
IP export modules, by it is in need change its IP address the corresponding facility information of client export to Excel text In part, the IP address for specifying the IP address of the client scene of being revised as in Excel file for user;
IP import moduls, import Excel file, read the wherein corresponding modification facility information of all clients, and modification is set Standby information include equipment uniquely dispatch from the factory coding, change network interface number, the amended IP address of each network interface;
IP modified modules, server is successively by the modification facility information of all clients, and uniquely dispatch from the factory coding according to equipment Modification IP orders are sent to corresponding client, client receives after order is performed and returns to implementing result, and server will perform knot Fruit is shown on its interface, until all modifications facility information is finished.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the technical principles of the invention, some improvement and modification can also be made, these improvement and modification Also it should be regarded as protection scope of the present invention.

Claims (6)

1. the embedded equipment I P address batch modification method of identical IP a kind of, it is characterized in that, including the clothes for passing through network connection Business device and multiple client, this multiple client are located in same LAN;Method comprises the following steps:
Step S1, server all clients into LAN send facility information request simultaneously, and each user end to server rings Answer respective facility information, facility information uniquely dispatches from the factory coding, network interface number, each network interface IP address and MAC including equipment Address, server preserves this facility information and including on its interface;
Step S2, by it is in need change its IP address the corresponding facility information of client export in Excel file, for The IP address that user specifies the IP address of the client scene of being revised as in Excel file;
Step S3, imports Excel file, reads the wherein corresponding modification facility information of all clients, changes facility information bag Equipment is included uniquely to dispatch from the factory coding, modification network interface number, the amended IP address of each network interface;
Step S4, server uniquely dispatches from the factory successively by the modification facility information of all clients, according to equipment and encoded to corresponding Client sends modification IP orders, and client, which is received, returns to implementing result after order is performed, server includes implementing result On its interface, until all modifications facility information is finished.
2. a kind of identical IP according to claim 1 embedded equipment I P address batch modification method, it is characterized in that, step In rapid S1, client of the server into LAN sends form of the request using broadcast.
3. a kind of identical IP according to claim 1 embedded equipment I P address batch modification method, it is characterized in that, often Individual client is uniquely dispatched from the factory coding including unique equipment.
4. a kind of identical IP according to claim 1 embedded equipment I P address batch modification method, it is characterized in that, step In rapid S4, IP modification command messages include:Equipment is uniquely dispatched from the factory coding, the network interface number of modification, IP after each network interface modification Location, the MAC Address of movable network interface.
5. a kind of identical IP according to claim 4 embedded equipment I P address batch modification method, it is characterized in that, IP Modification comprises the following steps:
S401, server compare active client movable network interface IP address whether the movable network interface IP phases with remaining client Together, if identical, S402 is gone to;If differing, still using former MAC Address, S403 is gone to;
Whether S402, the movable network interface MAC Address for comparing active client is identical with remaining client activities network interface MAC, if phase Together, S403 is gone to;If differing, still using former MAC Address, S404 is gone to;
S403, broadcast address is revised as by the current IP MAC Address for changing the movable network interface in command message;
S404, server sends IP modification command messages;
S405, client receive and parse through IP modification command message in equipment uniquely dispatch from the factory coding whether the phase with this client Together, if it is different, directly abandoning the message commands;If identical, IP address modification order is performed, and implementing result is returned into clothes Business device.
6. the embedded equipment I P address batch modification system of identical IP based on any one of claim 1-5 methods described a kind of System, it is characterized in that, including by the server and multiple client of network connection, this multiple client is located at same LAN It is interior;
The server includes the IP requests being sequentially connected and respond module, IP export modules, IP import moduls and IP modification moulds Block;
IP is asked and respond module, and server all clients into LAN send facility information request, each client simultaneously Respond respective facility information to server, facility information including equipment with uniquely dispatching from the factory coding, network interface number, each network interface IP Location and MAC Address, server preserve this facility information and including on its interface;
IP export modules, by it is in need change its IP address the corresponding facility information of client export in Excel file, The IP address for specifying the IP address of the client scene of being revised as in Excel file for user;
IP import moduls, import Excel file, read the wherein corresponding modification facility information of all clients, modification equipment letter Breath include equipment uniquely dispatch from the factory coding, change network interface number, the amended IP address of each network interface;
IP modified modules, server uniquely dispatches from the factory successively by the modification facility information of all clients, according to equipment and encoded to phase The client answered sends modification IP orders, and client receives after order is performed and returns to implementing result, and server shows implementing result Show on its interface, until all modifications facility information is finished.
CN201710606109.3A 2017-07-24 2017-07-24 A kind of embedded equipment I P address batch modification method and system of identical IP Pending CN107222589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710606109.3A CN107222589A (en) 2017-07-24 2017-07-24 A kind of embedded equipment I P address batch modification method and system of identical IP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710606109.3A CN107222589A (en) 2017-07-24 2017-07-24 A kind of embedded equipment I P address batch modification method and system of identical IP

Publications (1)

Publication Number Publication Date
CN107222589A true CN107222589A (en) 2017-09-29

Family

ID=59954074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710606109.3A Pending CN107222589A (en) 2017-07-24 2017-07-24 A kind of embedded equipment I P address batch modification method and system of identical IP

Country Status (1)

Country Link
CN (1) CN107222589A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286692A (en) * 2018-09-30 2019-01-29 山东浪潮云投信息科技有限公司 A kind of method of configuration server IPMI static ip address
CN110597862A (en) * 2019-09-20 2019-12-20 中国银行股份有限公司 Data entry method, equipment and system based on information system
CN110830605A (en) * 2019-10-30 2020-02-21 许继集团有限公司 Self-discovery client, communication terminal equipment and automatic discovery method thereof
CN113055501A (en) * 2019-12-28 2021-06-29 浙江宇视科技有限公司 Method and device for configuring IP address in series through network port

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100228837A1 (en) * 1999-09-29 2010-09-09 Squire Matthew B Methods for auto-configuring a router on an ip subnet
CN102123181A (en) * 2010-12-09 2011-07-13 广东高新兴通信股份有限公司 Method for automatically configuring IP address to network device
CN103490950A (en) * 2013-09-03 2014-01-01 深圳市迈腾电子有限公司 Router PPTP conversation capacity simulation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100228837A1 (en) * 1999-09-29 2010-09-09 Squire Matthew B Methods for auto-configuring a router on an ip subnet
CN102123181A (en) * 2010-12-09 2011-07-13 广东高新兴通信股份有限公司 Method for automatically configuring IP address to network device
CN103490950A (en) * 2013-09-03 2014-01-01 深圳市迈腾电子有限公司 Router PPTP conversation capacity simulation method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286692A (en) * 2018-09-30 2019-01-29 山东浪潮云投信息科技有限公司 A kind of method of configuration server IPMI static ip address
CN110597862A (en) * 2019-09-20 2019-12-20 中国银行股份有限公司 Data entry method, equipment and system based on information system
CN110830605A (en) * 2019-10-30 2020-02-21 许继集团有限公司 Self-discovery client, communication terminal equipment and automatic discovery method thereof
CN113055501A (en) * 2019-12-28 2021-06-29 浙江宇视科技有限公司 Method and device for configuring IP address in series through network port
CN113055501B (en) * 2019-12-28 2022-12-23 浙江宇视科技有限公司 Method and device for configuring IP addresses in series through internet access

Similar Documents

Publication Publication Date Title
CN107222589A (en) A kind of embedded equipment I P address batch modification method and system of identical IP
CN105305418B (en) A kind of distribution terminal self-described method based on IEC61850 standards
CN108989358B (en) Method for acquiring running data of textile machine based on TCP/IP protocol
CN103714150A (en) Visualization error correction method of power distribution network topology model
CN105207366B (en) Distribution terminal plug and play model configuration tool and its implementation based on IEC61850
CN107065813A (en) A kind of workshop appliance data monitoring system and method
CN104899134B (en) Domain name registration service device automatization test system and method
CN113419920B (en) Real-time monitoring method for joint debugging test process of simulation test system of Internet of things management platform
CN111242807A (en) Method for accessing data of transformer substation into ubiquitous power Internet of things
EP3751421A1 (en) Method for providing control applications and configuration control device
CN109348498A (en) NM server test method, device and system
CN114285695A (en) Communication method, device, equipment, system and storage medium
CN107453954A (en) A kind of Networked E-Journals method, system and equipment
CN114328256A (en) Test method, test device, computer-readable storage medium and electronic equipment
CN104503405B (en) Monitoring method, device and system based on SCADA system
CN110932393B (en) Substation information protection master station system and data initialization method thereof
CN107800802A (en) A kind of Rack whole machine cabinets write-in and the method for reading UUID
CN102694775A (en) Campus information machine terminal authentication method based on asynchronous communication mode
CN110445854A (en) A kind of information issuing system based on android system
CN112822034B (en) Service subscription mode-based data transmission method and system between main and distribution network systems
CN113543185A (en) Automatic-opening-assistance-based 5G high-density base station rapid operation method and system
CN106998271A (en) Automatic adaptation processing system and method
CN106790534A (en) A kind of power system information push method, apparatus and system
CN108093092A (en) The distribution system and method for server ip address
CN114363423B (en) B-SA supported embedded BACnet device, actuator and building automatic control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170929

RJ01 Rejection of invention patent application after publication