CN105871631B - A method of it is given for change based on snmp protocol and loses IP - Google Patents

A method of it is given for change based on snmp protocol and loses IP Download PDF

Info

Publication number
CN105871631B
CN105871631B CN201610374860.0A CN201610374860A CN105871631B CN 105871631 B CN105871631 B CN 105871631B CN 201610374860 A CN201610374860 A CN 201610374860A CN 105871631 B CN105871631 B CN 105871631B
Authority
CN
China
Prior art keywords
address
snmp
virtual
order
control devices
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
Application number
CN201610374860.0A
Other languages
Chinese (zh)
Other versions
CN105871631A (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.)
Accelink Technologies Co Ltd
Original Assignee
Accelink Technologies 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 Accelink Technologies Co Ltd filed Critical Accelink Technologies Co Ltd
Priority to CN201610374860.0A priority Critical patent/CN105871631B/en
Publication of CN105871631A publication Critical patent/CN105871631A/en
Application granted granted Critical
Publication of CN105871631B publication Critical patent/CN105871631B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a kind of methods for giving target control device losses IP address for change based on snmp protocol, comprising steps of SNMP network management distributes equipment of the virtual IP to IP is lost;The virtual IP address and the static binding item of equipment MAC are added in arp cache on local computing;The port for changing SNMP simultaneously is that equipment arranges port, executes SNMP to virtual IP address and writes virtual IP address order;Equipment gets the order, and the IP for updating oneself is virtual IP address;The reduction port SNMP is standard port, executes SNMP to virtual IP address and reads original IP order, equipment returns to original IP information;SNMP reset command is executed to virtual IP address, equipment will be reduced into former IP.The method of the present invention does not pick out to come especially suitable for the serial ports in the network equipment, perhaps does not have to obtain the IP address of the network equipment below the case where serial port connecting wire or tool without serial ports or client, greatly facilitates the maintenance and management of SNMP network.

Description

A method of it is given for change based on snmp protocol and loses IP
Technical field
It is the present invention relates to field of communication technology, in particular to a kind of to give the side that de- tube apparatus loses IP for change based on snmp protocol Method.
Background technique
With the development of computer network, network becomes to become increasingly complex, and network management system also seems more in the entire network Come more important.SNMP (Simple Network Management Protocol) network management system is the Network Management System based on snmp protocol comprising SNMP network management workstation and managed devices;Pass through SNMP message (SNMP association between SNMP network management workstation and managed devices View defines five kinds of SNMP reports of Get-Request, Get-Next-Request, Get-Response, Set-Request and Trap Text) it is communicated, SNMP network management workstation is read or MIB (management information bank) information of setting managed devices, realizes network The function of management.
When having more managed device in SNMP network management system, each equipment correspondence possesses at least one IP address, in this way Network management is caused to need to manage the IP address of large number of equipment, user may accidentally delete some Network Management Equipment in actual operation, Again original IP address that the equipment has forgotten the equipment again is added, so as to cause the de- pipe of the equipment.
Therefore there is an urgent need to have one kind that can give for change based on snmp protocol to lose IP address equipment for existing SNMP network management system Method, solve the problem of that under SNMP network management system, Network Management Equipment IP address loss causes to be detached from SNMP network management.
Summary of the invention
The present invention provides a kind of method given for change based on snmp protocol and lose IP, for solving the network management under SNMP network management The problem of device IP is lost.
To achieve the purpose of the present invention, a kind of side for being given for change target control device losses IP address based on snmp protocol is provided Method, comprising:
Step 101, a virtual ip address is distributed on the computer of SNMP network management, and by the virtual ip address and target tube Control the MAC Address static binding of equipment;
Step 102, SNMP network management sends SNMP to the virtual ip address and writes virtual IP address order, and target management and control devices can receive Virtual IP address order is write to the SNMP, by parsing the data packet of the order, therefrom obtains the virtual ip address information, thus according to The IP address of the target management and control devices itself is changed to the virtual ip address by the order, and is come into force;
Step 103, SNMP network management sends SNMP to the virtual ip address and reads original IP order, which receives The SNMP reads original IP order, returns the former IP information of the target management and control devices as the SNMP reply data for reading original IP order Give SNMP network management;
Step 104, SNMP network management sends the order of SNMP device reset to the virtual ip address, which receives It to the SNMP device reset order, executes and resets operation, the IP address configuration of the target management and control devices is reduced to former IP address, Hereafter SNMP network management can use original IP address to carry out normal SNMP operation to the target management and control devices.
In the above-mentioned technical solutions, the step 101, which may further comprise:, verifies the virtual ip address to ensure that this is virtual IP address is not used by the other equipment in network, and/or, verify the MAC Address of the virtual ip address and target management and control devices Static binding whether succeed.
In the above-mentioned technical solutions, in the step 102, which does not believe the virtual ip address configured Breath is saved in nonvolatile memory.
In the above-mentioned technical solutions, in the step 102, SNMP network management using the target management and control devices agreement port to The virtual ip address sends SNMP and reads original IP order.
In the above-mentioned technical solutions, the step 102 may further comprise: that the IP address for verifying the target management and control devices is It is no to be changed to the virtual ip address.
In the above-mentioned technical solutions, in the step 103, SNMP network management uses SNMP standard port to the virtual ip address It sends SNMP and reads original IP order;In the step 104, SNMP network management is sent using SNMP standard port to the virtual ip address SNMP device reset order.
In the above-mentioned technical solutions, in the step 102, which receives the SNMP from link layer and writes virtually The data packet of IP order.
In the above-mentioned technical solutions, which parses the data packet, judge destination IP in the data packet and Whether the IP of itself is consistent, if it is, parsing snmp protocol by normal process as normal SNMP packet;If not certainly The IP of body then continues to judge whether the port SNMP that the data packet uses is agreement port, if not agreement port, then it is assumed that The data packet is that illegal data packet directly abandons;If being due up port, continue to judge whether the data packet is to write virtually The order of IP is not that data packet directly abandons;The virtual ip address information is then got if being;The target management and control devices root According to the virtual ip address information of acquisition, the IP address for changing itself is the virtual ip address.
The present invention achieves following technical effect:
The IP for giving loss for change by way of SNMP network is not picked out suitable for serial ports and, or does not have serial ports, or Person client does not have to obtain IP below the case where serial port connecting wire or tool, greatly facilitates maintenance and the pipe of SNMP network Reason.
Detailed description of the invention
Fig. 1 is that the present invention implements the schematic diagram for giving the method for losing IP for change based on snmp protocol;
Fig. 2 is that the present invention implements the flow chart for giving the method for losing IP for change based on snmp protocol;
Fig. 3 writes virtual IP address order after equipment receives the order to virtual IP address execution SNMP for network management and parses the data packet Flow chart.
Specific embodiment
Understand for the ease of those of ordinary skill in the art and implement the present invention, with reference to the accompanying drawing and specific embodiment The present invention is described in further detail.
Fig. 1 is that the present invention implements the schematic diagram for giving the method for losing IP for change based on snmp protocol.
Shown in Figure 1, the method for giving loss IP for change based on snmp protocol includes the following steps:
Step 101: a virtual ip address is distributed on the computer of SNMP network management, and on the computer by the virtual IP address The MAC Address static binding of location and target management and control devices;The target management and control devices are to need to carry out pipe on the SNMP network management Manage the equipment of control but due to lack the IP address of the equipment and temporarily cannot in the SNMP network management access control, the target Management and control devices possible configuration crosses IP address, but the IP address reasons such as is accidentally deleted and is lost, or is also likely to be the target tube Control equipment did not configure IP address at all and was still initial default IP address.And the MAC Address of the target management and control devices is general It can be marked directly on these network equipments, or be recorded on associated documents, and in shipment for these network equipments For its MAC Address be fixed and not modifiable.The virtual ip address must with target management and control devices in same network segment, and And other equipment or computer conflict in consolidated network of getting along well.
Step 102:SNMP network management sends SNMP to the virtual ip address and writes virtual IP address order, due to the virtual ip address and The MAC Address of target management and control devices can be received the SNMP and be write virtual IP address order by static binding, target management and control devices, the target Management and control devices therefrom obtain the virtual ip address information, thus according to the order by the mesh by parsing the data packet of the order The IP address of mark management and control devices itself is changed to the virtual ip address, and comes into force.The target management and control devices will not be configured The virtual ip address information preservation into nonvolatile memories such as FLASH.
Step 103:SNMP network management sends SNMP to the virtual ip address and reads original IP order, is changed to own IP address The target management and control devices of the virtual ip address receive the SNMP and read original IP order, by the former IP information of the target management and control devices SNMP network management is returned to as the SNMP reply data for reading original IP order.SNMP network management records the former IP of the target management and control devices Address information.
Step 104:SNMP network management sends the order of SNMP device reset to the virtual ip address, changes own IP address The SNMP device reset order is received for the target management and control devices of the virtual ip address, which will execute multiple Bit manipulation, since the virtual ip address information in step 102 is not saved in the nonvolatile memories such as FLASH, to work as The target management and control devices, which execute to configure the IP address of the target management and control devices when resetting operation, is reduced to former IP address state, Hereafter SNMP network management can use original IP address to carry out normal SNMP read-write operation to the target management and control devices.
Above-mentioned SNMP writes virtual IP address order, and SNMP reads original IP order, and SNMP device IP reset command all uses mark The format of quasi- SNMP order, it is only necessary to increase the corresponding SNMP node of above-mentioned 3 kinds of orders in MIB.
Fig. 2 is that the present invention implements the flow chart for giving the method for losing IP for change based on snmp protocol.
A unused IP address is obtained on the computer of step 201:SNMP network management as virtual ip address, and it is virtual to verify this IP address is to ensure that the virtual ip address is not used by the other equipment in network.It can by the PING order PING virtual IP address Location, and at the same time executing ARP-a order, checks in arp cache table without the virtual ip address if do not returned, executes ARP-a The reason of order, is to cause the PING IP address without return there is a possibility that be provided with firewall with the equipment of the IP address.
Step 202: on the electric energy of SNMP network management that the virtual ip address and the progress of the MAC Address of target management and control devices is quiet State binding.It can be ordered by ARP-S, by the MAC Address static binding of the virtual ip address and target management and control devices, and be passed through Arp-a order checks whether binding succeeds.
It is that the target management and control devices arrange port that step 203:SNMP network management, which changes the port SNMP, which is the target tube It controls equipment and arranges port, write virtual IP address order for receiving.The target management and control devices also can receive SNMP life by the port It enables, but is used for specific use (such as writing virtual IP address order), need to distinguish with conventional port 161.The reading-writing port of SNMP default For 161 ports, if being changed to other agreement ports, which receives the data packet in bottom, can be solved Analysis.
Step 204:SNMP network management executes SNMP to the virtual ip address and writes virtual IP address order, which receives After the order, the data packet (specific analytic method is shown in Fig. 3) is parsed, to obtain virtual ip address.
Step 205: the IP address that the target manages equipment change oneself is the virtual ip address, and is come into force.In this way The IP address of the target management and control devices is just changed to the virtual ip address.But not by the configuration information of the virtual ip address It is saved in the nonvolatile memories such as FLASH, in this way when the target manages device reset or power-off, the target management and control devices Former IP address can be restored to.The PING virtual ip address order is executed at this time, there should be return response, it was demonstrated that the target management and control devices IP address be changed to the virtual ip address.
It is standard port (such as 161 ports) that step 206:SNMP network management, which changes the port SNMP, is held to the virtual ip address Row SNMP reads original IP order.Since the target management and control devices have been changed to the virtual ip address, SNMP network management can change SNMP Port is standard port, and by standard port the target management and control devices can be carried out with the normal read-write operation of SNMP, SNMP net Pipe executes to the target management and control devices and reads original IP order, to obtain original IP address information of the target management and control devices.
Step 207: the target management and control devices receive the reading original IP order of SNMP network management transmission, execute SNMP response, return It returns former IP address information and gives SNMP network management, so that SNMP network management has got the original setting of the target management and control devices really Former IP address information has found the IP address information of target control device losses.
Step 208:SNMP network management sends the order of SNMP device reset to the virtual ip address, which receives It to after the order, executes and resets operation, the setting of its IP address is reduced into former IP address, so that the target management and control devices are restored just Normal state, hereafter SNMP network management can carry out the target management and control devices by the true former IP address of the target management and control devices Normal SNMP access.
IP and MAC Address operation schematically are carried out using ARP order in above-mentioned process, those skilled in the art can be with It samples other modes to realize, such as Netsh command mode or other network programming modes.
Fig. 3 writes virtual IP address order after equipment receives the order to virtual IP address execution SNMP for network management and parses the data packet Flow chart.
Step 301:SNMP network management executes SNMP to virtual ip address and writes virtual IP address order, due to virtual ip address and the mesh The MAC Address static binding of management and control devices is marked, therefore the link layer of the target management and control devices will receive the SNMP and write virtual IP address life The data packet of order.
Step 302: the target management and control devices parse the data packet, judge that the IP of the destination IP in the data packet and oneself is It is no consistent, if so, this is a normal SNMP packet, snmp protocol is parsed by normal process;If it is not, then continuing to sentence Whether the port SNMP that the data packet of breaking uses is agreement port.
Step 303: if not agreement port, then it is assumed that the data packet is that illegal data packet directly abandons;If so, Then continue to judge whether the data packet is the order for writing virtual IP address, is not that data packet directly abandons;This is then got if being Virtual ip address information.
Step 304: for the target management and control devices according to the virtual ip address information of acquisition, it is virtual for changing the IP address of oneself IP address comes into force.Hereafter since the target management and control devices have been changed to virtual ip address, SNMP network management can change SNMP Port is standard port, can carry out the normal read-write operation of SNMP to equipment by virtual ip address.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (7)

1. a kind of method for giving target control device losses IP address for change based on snmp protocol, characterized by comprising:
Step 101, a virtual ip address is distributed on the computer of SNMP network management, and the virtual ip address and target control are set Standby MAC Address static binding;
Step 102, SNMP network management sends SNMP to the virtual ip address and writes virtual IP address order, and target management and control devices can receive this SNMP writes virtual IP address order, by parsing the data packet of the order, the virtual ip address information is therefrom obtained, thus according to the life It enables and the IP address of the target management and control devices itself is changed to the virtual ip address, and come into force;
Step 103, SNMP network management sends SNMP to the virtual ip address and reads original IP order, which receives this SNMP reads original IP order, returns to the former IP information of the target management and control devices as the SNMP reply data for reading original IP order SNMP network management;
Step 104, SNMP network management sends the order of SNMP device reset to the virtual ip address, which receives this SNMP device reset order executes and resets operation, the IP address configuration of the target management and control devices is reduced to former IP address, hereafter SNMP network management can use original IP address to carry out normal SNMP operation to the target management and control devices;
The step 101, which may further comprise:, verifies the virtual ip address to ensure the virtual ip address not by its in network He uses equipment, and, whether the static binding for verifying the MAC Address of the virtual ip address and target management and control devices succeeds.
2. the method according to claim 1 for giving target control device losses IP address for change based on snmp protocol, feature Be: in the step 102, the target management and control devices are not by the virtual ip address information preservation configured to non-volatile memories In device.
3. the method according to claim 1 for giving target control device losses IP address for change based on snmp protocol, feature Be: in the step 102, SNMP network management sends SNMP to the virtual ip address using the agreement port of the target management and control devices Read original IP order.
4. the method according to claim 1 for giving target control device losses IP address for change based on snmp protocol, feature Be: the step 102 may further comprise: the IP address of the verification target management and control devices with whether being changed to the virtual IP address Location.
5. the method according to claim 1 for giving target control device losses IP address for change based on snmp protocol, feature Be: in the step 103, SNMP network management sends SNMP to the virtual ip address using SNMP standard port and reads original IP order; In the step 104, SNMP network management sends the order of SNMP device reset to the virtual ip address using SNMP standard port.
6. the method according to claim 3 for giving target control device losses IP address for change based on snmp protocol, feature Be: in the step 102, which receives the data packet that the SNMP writes virtual IP address order from link layer.
7. the method according to claim 6 for giving target control device losses IP address for change based on snmp protocol, feature Be: the target management and control devices parse the data packet, judge whether the destination IP in the data packet is consistent with the IP of itself, if It is then to parse snmp protocol by normal process as normal SNMP packet;If not the IP of itself, then continue to judge the number Whether the port SNMP used according to packet is agreement port, if not agreement port, then it is assumed that the data packet is illegal data Packet directly abandons;If being due up port, continue to judge whether the data packet is the order for writing virtual IP address, is not then data packet Directly abandon;The virtual ip address information is then got if being;The target management and control devices are believed according to the virtual ip address of acquisition Breath, the IP address for changing itself is the virtual ip address.
CN201610374860.0A 2016-05-31 2016-05-31 A method of it is given for change based on snmp protocol and loses IP Active CN105871631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610374860.0A CN105871631B (en) 2016-05-31 2016-05-31 A method of it is given for change based on snmp protocol and loses IP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610374860.0A CN105871631B (en) 2016-05-31 2016-05-31 A method of it is given for change based on snmp protocol and loses IP

Publications (2)

Publication Number Publication Date
CN105871631A CN105871631A (en) 2016-08-17
CN105871631B true CN105871631B (en) 2019-04-09

Family

ID=56642850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610374860.0A Active CN105871631B (en) 2016-05-31 2016-05-31 A method of it is given for change based on snmp protocol and loses IP

Country Status (1)

Country Link
CN (1) CN105871631B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018214113A1 (en) * 2017-05-25 2018-11-29 深圳市伊特利网络科技有限公司 Method and system for applying virtual network addresses in network link
CN107071090A (en) * 2017-05-25 2017-08-18 深圳市伊特利网络科技有限公司 Application process and system of the virtual network address in the link of networking
CN107451491B (en) * 2017-07-28 2020-03-10 杭州安恒信息技术股份有限公司 Method for improving protocol analysis accuracy when database connection information is lost
CN108390833B (en) * 2018-02-11 2020-02-07 北京邮电大学 Software defined network forwarding control method based on virtual domain
CN113556409A (en) * 2021-06-04 2021-10-26 深圳市高川自动化技术有限公司 IP address retrieving method, system, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158565A (en) * 2011-04-07 2011-08-17 瑞斯康达科技发展股份有限公司 Method and system for configuring Internet protocol (IP) address for remote device
CN102769675A (en) * 2012-08-13 2012-11-07 广州杰赛科技股份有限公司 Method used for keeping host resource stable and based on cloud computing platform
CN104539749A (en) * 2014-12-19 2015-04-22 深圳市天视通电子科技有限公司 Connecting method and device based on virtual IP address
CN105138920A (en) * 2015-07-30 2015-12-09 浪潮电子信息产业股份有限公司 Method for realizing safety management of intranet terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2411991A1 (en) * 2001-11-19 2003-05-19 Linear Systems Ltd. Transmitting digital video signals over an ip network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158565A (en) * 2011-04-07 2011-08-17 瑞斯康达科技发展股份有限公司 Method and system for configuring Internet protocol (IP) address for remote device
CN102769675A (en) * 2012-08-13 2012-11-07 广州杰赛科技股份有限公司 Method used for keeping host resource stable and based on cloud computing platform
CN104539749A (en) * 2014-12-19 2015-04-22 深圳市天视通电子科技有限公司 Connecting method and device based on virtual IP address
CN105138920A (en) * 2015-07-30 2015-12-09 浪潮电子信息产业股份有限公司 Method for realizing safety management of intranet terminal

Also Published As

Publication number Publication date
CN105871631A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN105871631B (en) A method of it is given for change based on snmp protocol and loses IP
US8769342B2 (en) Redirecting data generated by network devices
JP4509916B2 (en) SNMP-based network management apparatus and method
CN105577496B (en) The system that a kind of home gateway identifies access device type using cloud platform
CN105281937B (en) Server, service management system, and service management method
CN101505550A (en) Method, terminal, apparatus and system for device management
CN109327557A (en) A kind of management method and device of virtual machine IP address
CN108347731A (en) A kind of method, medium, equipment and terminal carrying out secure binding
CN106506302A (en) Support the communicator of dynamic MODBUS agreements mapping
CN104468232B (en) The method and system of network equipments configuration are completed using xml document and mib
RU2602333C2 (en) Network system, packet processing method and storage medium
CN107579879A (en) A kind of network simulation method of testing, emulation server and storage medium
CN101156361B (en) Method, communications assembly and communications device for controlling the access to at least one communications device
CN111669293B (en) SD-WAN system and remote management method and device of network terminal equipment
CN104954133A (en) Certificate writing verification method and device
CN104253718B (en) A kind of network test method and device
CN113328973B (en) Method and device for detecting invalid Access Control List (ACL) rule
CN107526690B (en) Method and device for clearing cache
CN109510745A (en) A kind of configuration method and system of I/O data acquisition
CN105763599B (en) T-CDP implementation method and device under a kind of IPSAN
WO2015196694A1 (en) Single-board log information storage method and system
CN111104200A (en) Virtual machine management method, device, storage medium and server
CN106453565A (en) Distributed storage area network deployment method and device
CN112804372B (en) User terminal grouping method, system, device and storage medium
CN115048187A (en) Operator-based pvc file importing method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant