CN116248635A - Method, equipment and medium for modifying local area network conflict protocol addresses in batches - Google Patents

Method, equipment and medium for modifying local area network conflict protocol addresses in batches Download PDF

Info

Publication number
CN116248635A
CN116248635A CN202310298070.9A CN202310298070A CN116248635A CN 116248635 A CN116248635 A CN 116248635A CN 202310298070 A CN202310298070 A CN 202310298070A CN 116248635 A CN116248635 A CN 116248635A
Authority
CN
China
Prior art keywords
address
addresses
equipment
local area
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.)
Pending
Application number
CN202310298070.9A
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.)
Guangdong Baolun Electronics Co ltd
Original Assignee
Guangdong Baolun Electronics 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 Guangdong Baolun Electronics Co ltd filed Critical Guangdong Baolun Electronics Co ltd
Priority to CN202310298070.9A priority Critical patent/CN116248635A/en
Publication of CN116248635A publication Critical patent/CN116248635A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2801Broadband local area networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The invention relates to the technical field of computers, and particularly discloses a method, equipment and a medium for modifying conflict protocol addresses of local area networks in batches; whether the conflict exists in the IP address is obtained and detected in real time; if so, adding one increment to the IP addresses of all the devices with the same IP address in sequence from zero to obtain a modified IP address; generating an IP modification command according to the modified IP address; the equipment modifies the IP address of the equipment according to the received IP modification command and executes soft restart; and the restarted equipment is automatically accessed into the local area network. After the equipment is accessed to the local area network, the invention can automatically modify all the equipment with conflict of IP addresses, and compared with the existing scheme, the invention has higher efficiency, occupies smaller calculation resources and network bandwidth and is more convenient; and a great deal of manpower and time are saved, errors caused by manual modification of the IP address are avoided, and normal data communication is ensured.

Description

Method, equipment and medium for modifying local area network conflict protocol addresses in batches
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a medium for modifying a local area network conflict protocol address in batches.
Background
Along with the development of modern electronic information technology, various electronic devices are rapidly developed, and a large number of electronic devices are controlled through local area network networking, so that the method is widely applied to scenes such as stage scenes, internet of things, intelligent home and the like.
However, in general, all devices of the same type just shipped are the same in the recorded IP addresses, when all devices are accessed for the first time in the field, a large amount of IP address conflicts will occur, so that part of the devices and even the whole network cannot normally communicate, and each device is manually configured with an IP address, whether configured uniformly at a control end or modified independently at a device end, the workload is great, the operation is single and boring, and new IP address conflicts or errors are easily caused.
Disclosure of Invention
In order to overcome the problems, the invention provides a method, equipment and medium for modifying local area network conflict protocol addresses in batches.
The invention provides a method for modifying local area network conflict protocol addresses in batches, which comprises the following steps:
accessing equipment into a local area network, and adding the equipment into a multicast protocol of the local area network;
acquiring MAC addresses and IP addresses of all access devices in the local area network in real time, and detecting whether conflict exists among the IP addresses;
if so, sequentially adding one increment to the IP addresses of all the devices with the same IP address from zero to form a modified IP address, and carrying out one-to-one correspondence on the modified IP address and the MAC address corresponding to the device;
generating an IP modification command according to the modified IP address and the multicast protocol, and sending the IP modification command to equipment corresponding to the MAC address;
the equipment modifies the IP address of the equipment according to the received IP modification command and executes soft restart;
and automatically accessing the local area network by the restarted equipment.
Preferably, the IP addresses of all the devices with the same IP address are sequentially increased from zero to one to form modified IP addresses, and the modified IP addresses and the MAC addresses corresponding to the devices are in one-to-one correspondence, specifically:
all the devices with the same IP address are obtained, and the devices are ordered according to the MAC address;
according to the sequencing sequence of the MAC addresses, sequentially adding one increment to the IP addresses of the equipment from zero to form modified IP addresses, and carrying out one-to-one correspondence on the modified IP addresses and the MAC addresses corresponding to the equipment.
Preferably, if the IP addresses of all the devices with the same IP address are increased by one from zero, a modified IP address is formed, and the modified IP address and the MAC address corresponding to the device are in one-to-one correspondence, specifically:
when detecting that the IP addresses have conflict, generating and outputting a popup window according to all devices with the IP address conflict; the popup window comprises an equipment name text box, an equipment choosing box, an MAC address display and a current IP address display;
selecting devices to be modified through a selected device hooking frame, setting an initial IP address, and sequentially increasing the initial IP address by one according to the number of the hooked devices to obtain modified IP addresses corresponding to the number of the devices.
Preferably, the setting an initial IP address specifically includes:
ordering the equipment with the IP address conflict according to the MAC addresses;
the IP address of the first-ordered device is set to the initial IP address.
Preferably, when detecting that the IP address has a conflict, generating and outputting a pop-up window according to all devices having the IP address conflict; the popup window comprises a device name text box, a device choosing box, an MAC address display and a current IP address display, and further comprises the following steps:
the popup window also comprises equipment type options and a classification check box; the device types corresponding to the device type options are in one-to-one correspondence with the classification check boxes;
setting the equipment type of the equipment through equipment type options according to the MAC address and the IP address of the equipment;
and checking any classification check box, and checking all devices corresponding to the device type.
Preferably, the setting the device type of the device according to the MAC address and the IP address of the device further includes the following steps:
devices of the same device type are uniformly assigned to one or more independent network segments depending on the device type.
The invention also provides a device for modifying local area network conflict protocol addresses in batches, which comprises: the system comprises an initial access module, a conflict detection module, an address generation module, a command generation module, a modification execution module and an automatic access module;
the initial access module is used for accessing the equipment into a local area network, and the equipment is added into a multicast protocol of the local area network;
the conflict detection module is used for acquiring the MAC addresses and the IP addresses of all access devices in the local area network in real time and detecting whether the IP addresses have conflict or not;
the address generation module is used for sequentially adding one increment to all the equipment with the same IP address from zero to form a modified IP address when detecting that the IP addresses have conflict, and carrying out one-to-one correspondence on the modified IP address and the MAC address corresponding to the equipment;
the command generation module is used for generating an IP modification command according to the modified IP address and the multicast protocol and sending the IP modification command to equipment corresponding to the MAC address;
the modification execution module is used for modifying the IP address of the equipment according to the received IP modification command and executing soft restart;
the automatic access module is used for automatically accessing the local area network by the equipment after restarting.
Preferably, the address generation module includes the following submodules:
the sequencing sub-module is used for acquiring all the devices with the same IP address and sequencing the devices according to the MAC address;
and the increment sub-module is used for sequentially increasing the IP addresses of the equipment by one from zero according to the sequencing sequence of the MAC addresses to form modified IP addresses, and carrying out one-to-one correspondence on the modified IP addresses and the MAC addresses corresponding to the equipment.
Preferably, the address generation module includes the following submodules:
the popup window sub-module is used for generating and outputting popup windows according to all devices with the IP address conflict when detecting the IP address conflict; the popup window comprises an equipment name text box, an equipment choosing box, an MAC address display and a current IP address display;
and the selecting sub-module is used for selecting the equipment to be modified through the selecting equipment selecting frame, setting an initial IP address, and sequentially increasing the initial IP address by one according to the number of the selected equipment to obtain the modified IP address corresponding to the number of the equipment.
The invention provides a terminal device, which comprises a processor and a storage device, wherein the storage device is used for storing one or more programs; when the one or more programs are executed by the processor, the processor implements the method described above for batch modification of local area network conflict protocol addresses.
The invention provides a computer readable storage medium, which comprises a stored computer program, wherein when the computer program runs, a device where the computer readable storage medium is located is controlled to execute the method for modifying local area network conflict protocol addresses in batches.
The beneficial effects of the invention are as follows:
the method of the scheme is realized through the program, after the equipment is accessed to the local area network, all equipment with conflict of IP addresses can be automatically modified without executing any other operation, and compared with the existing scheme, the method has higher efficiency, occupies smaller computing resources and network bandwidth and is more convenient; and a large amount of manpower and time are saved, errors caused by manual IP address modification of the equipment are avoided, and normal data communication is ensured.
Preferably, through popup window, the device with the conflict of IP addresses can be visually displayed, so that the device is convenient to view and manage, and the modified IP addresses can be customized.
Drawings
The invention will be further described with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a method according to one embodiment of the present invention;
fig. 2 is a schematic diagram of an IP address modification tool interface according to another embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1 and fig. 2, as one embodiment of the present invention, an IP address modification tool is disclosed, which is an application program developed for a method for modifying a local area network conflict protocol address in batches in the present application, and is used for quickly modifying the IP of a part or all of the devices at a time in a large amount by adding the devices to the multicast address of the local area network, aiming at the problems of IP conflict and tedious modification of the new network access devices of the same model.
The method for modifying local area network conflict protocol addresses in batches in the embodiment comprises the following steps:
s1, accessing equipment into a local area network, and adding the equipment into a multicast protocol of the local area network;
s2, acquiring MAC addresses and IP addresses of all devices in the local area network in real time, and detecting whether conflict exists among the IP addresses;
s31, if not, repeatedly executing the step S2 after a plurality of time delays;
s32, if so, sequentially adding one increment to all the equipment IP addresses with the same IP address from zero to form a modified IP address, and carrying out one-to-one correspondence on the modified IP address and the MAC address corresponding to the equipment;
s4, generating an IP modification command according to the modified IP address and the multicast protocol, and sending the IP modification command to equipment corresponding to the MAC address;
s5, the equipment modifies the IP address of the equipment according to the received IP modification command and executes soft restart;
s6, the restarted equipment automatically accesses the local area network, and the step S2 is repeatedly executed.
The time delay of the present embodiment is specifically 5ms, and the time may be set to any time length according to the need.
After the equipment is accessed to the local area network, the embodiment can automatically modify all equipment with conflict IP addresses without executing any other operation, and compared with the existing scheme, the method has higher efficiency, occupies smaller computing resources and network bandwidth and is more convenient; and a large amount of manpower and time are saved, errors caused by manual IP address modification of the equipment are avoided, and normal data communication is ensured.
The embodiment also discloses a device for modifying local area network conflict protocol addresses in batches, which comprises: the system comprises an initial access module, a conflict detection module, an address generation module, a command generation module, a modification execution module and an automatic access module;
the initial access module is used for accessing the equipment into the local area network and joining the equipment into a multicast protocol of the local area network;
the conflict detection module is used for acquiring the MAC addresses and the IP addresses of all access devices in the local area network in real time and detecting whether the IP addresses have conflict or not;
the address generation module is used for sequentially adding one increment to the IP addresses of all the devices with the same IP address from zero to form modified IP addresses when detecting that the IP addresses have conflict, and carrying out one-to-one correspondence on the modified IP addresses and the MAC addresses corresponding to the devices;
the command generation module is used for generating an IP modification command according to the modified IP address and the multicast protocol and sending the IP modification command to the equipment corresponding to the MAC address;
the modification execution module is used for modifying the IP address of the equipment according to the received IP modification command and executing soft restart;
the automatic access module is used for automatically accessing the restarted equipment into the local area network.
The soft restart is required after the IP modification is completed in this embodiment, because the IP address is changed, and other functions of the device that need to use the IP address may not work normally, so that the IP information needs to be updated together by restarting. In this embodiment, the soft restart is implemented by using a program that most devices are already built in the device code before leaving the factory, and when the IP address is modified, the devices are automatically soft restarted.
In another embodiment of the present solution, as a specific application example of the foregoing embodiment, taking an example that a total of 9 new devices from device 1 to device 9 are connected to an existing lan, initial IP is "192.168.0.20", and MAC addresses of the devices are not repeated when leaving the factory. In some embodiments, the 9 devices have IP conflicts with other devices in the local area network when accessing, and because the processing flows are the same, they will not be described in detail here.
The specific steps for modifying the IP address are as follows:
s1, accessing all equipment 1 to equipment 9 into a local area network, and adding 9 pieces of equipment into a multicast protocol of the local area network;
s2, acquiring MAC addresses and IP addresses of all devices in the local area network in real time, and detecting whether the IP addresses have conflict, wherein at the moment, the IP addresses of 9 newly accessed devices have conflict;
s32, sequentially adding one increment to all the IP addresses of the devices with the same IP address from zero to sequentially obtain 9 modified IP addresses of '192.168.0.20', '192.168.0.21', '192.168.0.22' to '192.168.0.29', forming a modified IP address, wherein the step S3 further comprises the following sub-steps: sorting the devices 1 to 9 according to the MAC address; according to the sequencing sequence of the MAC addresses, sequentially carrying out one-to-one correspondence on the modified 9 IP addresses and the MAC addresses of the equipment 1 to the equipment 9;
s4, generating 9 parts of IP modification commands according to the modified IP address and the multicast protocol, and sending the IP modification commands to equipment corresponding to the MAC address; (since the modified IP address of the device 1 is the same as the original IP address, the IP modification command can be omitted;)
S5, the equipment modifies the IP address of the equipment according to the received IP modification command and executes soft restart;
s6, the restarted equipment 1 to equipment 9 automatically access to the local area network to finish IP address modification of the 9 pieces of equipment.
In the above embodiment, after step S6, the devices 1 to 9 with new modified IP addresses, one or several of which may have any IP address conflict with other devices in the lan, have two processing methods at this time:
the method comprises the following steps: in step S32, sequentially adding one increment to all the device IP addresses with the same IP address from zero, and sequentially obtaining 9 modified IP addresses of "192.168.0.20", "192.168.0.21", "192.168.0.22" to "192.168.0.28" to form a modified IP address; at this time, a detection is added to determine whether an IP conflict exists between a modified IP address and other devices in the local area network, and when the fact that the modified IP address still has the conflict is detected, the modified IP address is added by one until all the modified IP addresses do not conflict with the existing IP addresses in the local area network. At this time, the device that modifies the IP address can ensure that the device that modifies the IP address will not collide with the existing device.
The second method is as follows: after the step S6 is executed, the step S2 is repeatedly executed, and at this time, the process from the step S3 to the step S6 is directly continued to be executed after detecting that the modified IP address conflicts with the new IP addresses of other devices, and after one or more cycles, the IP addresses of all devices with the IP address conflicts are naturally modified step by step until all access devices in the local area network do not have the IP address conflicts.
Referring to fig. 2, the IP address modification tool of another embodiment of the present invention displays a cross-section, and the method for modifying the local area network conflict protocol address in batches adopted by the IP address modification tool, compared with the above embodiment, the difference in step S3 further includes the following sub-steps:
s321, when detecting that the IP addresses have conflict, generating and outputting a popup window according to all devices with the conflict of the IP addresses; the popup window comprises an equipment name text box, an equipment choosing box, an MAC address display and a current IP address display;
s322, selecting the equipment to be modified through the equipment selecting frame, setting an initial IP address, and sequentially increasing the initial IP address by one according to the number of the selected equipment to obtain the modified IP address corresponding to the number of the equipment.
And forming a device list through popup windows of popup window forms, uniformly displaying the device list on an IP configuration tool interface, and checking a plurality of devices to carry out corresponding IP modification. The device capable of visually displaying the IP address conflict is convenient to check and manage, and the modified IP address can be customized.
Preferably, the setting of the initial IP address in step S322 specifically further includes the following steps:
s3221, sorting the equipment with the IP address conflict according to the MAC addresses;
s3222 sets the IP address of the first-order device as the initial IP address.
Preferably, step S321 of the present embodiment further includes the following substeps:
s3211, the popup window also comprises equipment type options and a classification check box; wherein, the equipment types corresponding to the equipment type options are in one-to-one correspondence with the classification check boxes;
s3212, setting the equipment type of the equipment through equipment type options according to the MAC address and the IP address of the equipment;
s3213, checking any classification check box, and checking all devices corresponding to the device type.
Each equipment type is respectively distributed to one or more independent network segments, and different network segments are set to correspond to different types, so that the equipment type can be classified and screened, and unified management of a large number of equipment is facilitated.
In addition, the pop-up window of the embodiment can also comprise a device name text box, a device icon or a picture and other contents, so that operators can conveniently and intuitively check and manage the device.
In step S3212, the method further includes the following steps:
s32121, uniformly distributing devices of the same device type to one or more independent network segments according to the device type.
The embodiment also discloses a device for modifying local area network conflict protocol addresses in batches, which is different from the above embodiment in that the address generating module includes the following submodules:
the sequencing sub-module is used for acquiring all the devices with the same IP address and sequencing the devices according to the MAC address;
the increment sub-module is used for sequentially increasing the IP addresses of the equipment by one from zero according to the sequencing sequence of the MAC addresses to form modified IP addresses, and carrying out one-to-one correspondence on the modified IP addresses and the MAC addresses corresponding to the equipment;
the popup window sub-module is used for generating and outputting popup windows according to all devices with the IP address conflict when detecting the IP address conflict; the popup window comprises an equipment name text box, an equipment choosing box, an MAC address display and a current IP address display;
and the selecting sub-module is used for selecting the equipment to be modified through the selecting equipment selecting frame, setting an initial IP address, and sequentially increasing the initial IP address by one according to the number of the selected equipment to obtain the modified IP address corresponding to the number of the equipment.
In this embodiment, the IP configuration tool automatically refreshes and displays the latest information of all the devices at present every time the IP modification command is sent. Since one transmission of the protocol takes several milliseconds and the computational resources are small, the efficiency of the modification tool is not affected as a whole.
The invention also discloses a terminal device, which comprises a processor and a storage device, wherein the storage device is used for storing one or more programs; when one or more programs are executed by the processor, the processor implements the method described above for batch modification of local area network conflict protocol addresses. The processor may be a central processing unit (Central Process ing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Appl icat ion Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, referred to as a control center for the test equipment, that interfaces and lines to various parts of the overall test equipment.
The storage means may be used for storing computer programs and/or modules, and the processor may implement various functions of the terminal device by running or executing the computer programs and/or modules stored in the storage means, and invoking data stored in the storage means. The storage device may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the terminal device, etc. In addition, the storage device may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), at least one disk storage device, a Flash memory device, or other volatile solid-state storage device.
Wherein a device-integrated module/unit for batch modification of local area network conflict protocol addresses may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a stand alone product. Based on such understanding, the present invention may implement all or part of the processes in the methods of the above embodiments, or may be implemented by a computer program instructing related hardware, and the computer program may be stored in at least one computer readable storage medium, which when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
It should be noted that the embodiments of the apparatus and device described above are only schematic, where the units described as separate units may or may not be physically separated, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Claims (10)

1. A method for batch modification of conflicting protocol addresses of a local area network, comprising the steps of:
accessing equipment into a local area network, and adding the equipment into a multicast protocol of the local area network;
acquiring MAC addresses and IP addresses of all access devices in the local area network in real time, and detecting whether conflict exists among the IP addresses;
if so, sequentially adding one increment to the IP addresses of all the devices with the same IP address from zero to form a modified IP address, and carrying out one-to-one correspondence on the modified IP address and the MAC address corresponding to the device;
generating an IP modification command according to the modified IP address and the multicast protocol, and sending the IP modification command to equipment corresponding to the MAC address;
the equipment modifies the IP address of the equipment according to the received IP modification command and executes soft restart;
and automatically accessing the local area network by the restarted equipment.
2. The method for batch modification of local area network conflict protocol addresses according to claim 1, wherein the IP addresses of all devices with the same IP address are sequentially increased by one from zero to form modified IP addresses, and the modified IP addresses and MAC addresses corresponding to the devices are in one-to-one correspondence, specifically:
all the devices with the same IP address are obtained, and the devices are ordered according to the MAC address;
according to the sequencing sequence of the MAC addresses, sequentially adding one increment to the IP addresses of the equipment from zero to form modified IP addresses, and carrying out one-to-one correspondence on the modified IP addresses and the MAC addresses corresponding to the equipment.
3. The method for batch modification of local area network conflict protocol addresses according to claim 1, wherein if so, all the devices with the same IP address are sequentially added with one increment from zero to form modified IP addresses, and the modified IP addresses and the MAC addresses corresponding to the devices are in one-to-one correspondence, specifically:
when detecting that the IP addresses have conflict, generating and outputting a popup window according to all devices with the IP address conflict; the popup window comprises an equipment name text box, an equipment choosing box, an MAC address display and a current IP address display;
selecting devices to be modified through a selected device hooking frame, setting an initial IP address, and sequentially increasing the initial IP address by one according to the number of the hooked devices to obtain modified IP addresses corresponding to the number of the devices.
4. A method for modifying local area network conflict protocol addresses in batches according to claim 3, wherein the setting of the initial IP address is specifically:
ordering the equipment with the IP address conflict according to the MAC addresses;
the IP address of the first-ordered device is set to the initial IP address.
5. A method for modifying conflicting protocol addresses of lan in batch according to claim 3, wherein when it is detected that there is a conflict in IP addresses, a pop-up window is generated and outputted according to all devices having the conflict in IP addresses; the popup window comprises a device name text box, a device choosing box, an MAC address display and a current IP address display, and further comprises the following steps:
the popup window also comprises equipment type options and a classification check box; the device types corresponding to the device type options are in one-to-one correspondence with the classification check boxes;
setting the equipment type of the equipment through equipment type options according to the MAC address and the IP address of the equipment;
and checking any classification check box, and checking all devices corresponding to the device type.
6. The method for batch modification of lan collision protocol addresses according to claim 5, wherein the setting of the device type of the device through the device type option according to the MAC address and the IP address of the device further comprises the steps of:
devices of the same device type are uniformly assigned to one or more independent network segments depending on the device type.
7. An apparatus for batch modification of conflicting protocol addresses for a local area network, comprising: the system comprises an initial access module, a conflict detection module, an address generation module, a command generation module, a modification execution module and an automatic access module;
the initial access module is used for accessing the equipment into a local area network, and the equipment is added into a multicast protocol of the local area network;
the conflict detection module is used for acquiring the MAC addresses and the IP addresses of all access devices in the local area network in real time and detecting whether the IP addresses have conflict or not;
the address generation module is used for sequentially adding one increment to all the equipment with the same IP address from zero to form a modified IP address when detecting that the IP addresses have conflict, and carrying out one-to-one correspondence on the modified IP address and the MAC address corresponding to the equipment;
the command generation module is used for generating an IP modification command according to the modified IP address and the multicast protocol and sending the IP modification command to equipment corresponding to the MAC address;
the modification execution module is used for modifying the IP address of the equipment according to the received IP modification command and executing soft restart;
the automatic access module is used for automatically accessing the local area network by the equipment after restarting.
8. The apparatus for batch modification of local area network conflict protocol addresses of claim 7, wherein the address generation module comprises the sub-modules of:
the sequencing sub-module is used for acquiring all the devices with the same IP address and sequencing the devices according to the MAC address;
and the increment sub-module is used for sequentially increasing the IP addresses of the equipment by one from zero according to the sequencing sequence of the MAC addresses to form modified IP addresses, and carrying out one-to-one correspondence on the modified IP addresses and the MAC addresses corresponding to the equipment.
9. The apparatus for batch modification of local area network conflict protocol addresses of claim 7, wherein the address generation module comprises the sub-modules of:
the popup window sub-module is used for generating and outputting popup windows according to all devices with the IP address conflict when detecting the IP address conflict; the popup window comprises an equipment name text box, an equipment choosing box, an MAC address display and a current IP address display;
and the selecting sub-module is used for selecting the equipment to be modified through the selecting equipment selecting frame, setting an initial IP address, and sequentially increasing the initial IP address by one according to the number of the selected equipment to obtain the modified IP address corresponding to the number of the equipment.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform a method of batch modification of local area network conflict protocol addresses according to any one of claims 1 to 6.
CN202310298070.9A 2023-03-23 2023-03-23 Method, equipment and medium for modifying local area network conflict protocol addresses in batches Pending CN116248635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310298070.9A CN116248635A (en) 2023-03-23 2023-03-23 Method, equipment and medium for modifying local area network conflict protocol addresses in batches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310298070.9A CN116248635A (en) 2023-03-23 2023-03-23 Method, equipment and medium for modifying local area network conflict protocol addresses in batches

Publications (1)

Publication Number Publication Date
CN116248635A true CN116248635A (en) 2023-06-09

Family

ID=86627894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310298070.9A Pending CN116248635A (en) 2023-03-23 2023-03-23 Method, equipment and medium for modifying local area network conflict protocol addresses in batches

Country Status (1)

Country Link
CN (1) CN116248635A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040052216A1 (en) * 2002-09-17 2004-03-18 Eung-Seok Roh Internet protocol address allocation device and method
CN101304388A (en) * 2008-06-20 2008-11-12 华为技术有限公司 Method, apparatus and system for settling IP address conflict
CN105939403A (en) * 2016-03-31 2016-09-14 杭州迪普科技有限公司 Address conflict detection method and device
AU2015361318A1 (en) * 2014-12-11 2017-05-25 Bitdefender Ipr Management Ltd Systems and methods for automatic device detection, device management, and remote assistance
WO2019166108A1 (en) * 2018-02-28 2019-09-06 Telefonaktiebolaget Lm Ericsson (Publ) A method of determining passive round trip time, rtt, delay in a telecommunications system
CN111314198A (en) * 2020-02-06 2020-06-19 苏州浪潮智能科技有限公司 Method and equipment for setting port IP of white box switch
CN112583639A (en) * 2020-11-30 2021-03-30 新华三大数据技术有限公司 Configuration method and device of network equipment
CN113037880A (en) * 2021-02-04 2021-06-25 深圳云里物里科技股份有限公司 Gateway IP address configuration method and device, gateway and readable storage medium
CN114422445A (en) * 2022-02-24 2022-04-29 成都北中网芯科技有限公司 Method for realizing load balance and out-of-order recombination

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040052216A1 (en) * 2002-09-17 2004-03-18 Eung-Seok Roh Internet protocol address allocation device and method
CN101304388A (en) * 2008-06-20 2008-11-12 华为技术有限公司 Method, apparatus and system for settling IP address conflict
AU2015361318A1 (en) * 2014-12-11 2017-05-25 Bitdefender Ipr Management Ltd Systems and methods for automatic device detection, device management, and remote assistance
CN105939403A (en) * 2016-03-31 2016-09-14 杭州迪普科技有限公司 Address conflict detection method and device
WO2019166108A1 (en) * 2018-02-28 2019-09-06 Telefonaktiebolaget Lm Ericsson (Publ) A method of determining passive round trip time, rtt, delay in a telecommunications system
CN111314198A (en) * 2020-02-06 2020-06-19 苏州浪潮智能科技有限公司 Method and equipment for setting port IP of white box switch
CN112583639A (en) * 2020-11-30 2021-03-30 新华三大数据技术有限公司 Configuration method and device of network equipment
CN113037880A (en) * 2021-02-04 2021-06-25 深圳云里物里科技股份有限公司 Gateway IP address configuration method and device, gateway and readable storage medium
CN114422445A (en) * 2022-02-24 2022-04-29 成都北中网芯科技有限公司 Method for realizing load balance and out-of-order recombination

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEI WU: ""Network assisted IP mobility support in wireless LANS"", 《SECOND IEEE INTERNATIONAL SYMPOSIUM ON NETWORK COMPUTING AND APPLICATIONS》, 31 December 2011 (2011-12-31) *
霍静: ""在局域网中IPSec与NAT冲突的解决方法"", 《甘肃科技纵横 》, 15 June 2007 (2007-06-15) *

Similar Documents

Publication Publication Date Title
CN108153670B (en) Interface testing method and device and electronic equipment
US10958524B2 (en) Method for generating network slice template and for applying network slice template, and apparatus
CN100561957C (en) Network switch collocation method and system
CN111580869B (en) OPC UA-based data communication method and system
US9853827B1 (en) Automated device discovery on a building network
CN109450708B (en) Nginx dynamic configuration method and system
US20150281398A1 (en) Automated Cloud Set Up
CN106293842B (en) Software installation method and device
CN114422618B (en) Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium
CN114661375A (en) Application integration method and device
CN113992553A (en) Platform flow generation system, method, computer and storage medium based on micro-service
CN113535225A (en) Environment configuration file processing method, device, equipment and medium of application software
CN116248635A (en) Method, equipment and medium for modifying local area network conflict protocol addresses in batches
CN116467179A (en) Test case batch editing method and device and processing equipment
CN115794317A (en) Processing method, device, equipment and medium based on virtual machine
CN115051846A (en) Deployment method of K8S cluster based on super fusion platform and electronic equipment
CN110932884A (en) Method and device for adding multiple networks to cloud physical machine
CN111722870B (en) Driving configuration method, device and equipment of electronic control unit and storage medium
CN112732332B (en) Software package management method and device suitable for koji management system and electronic equipment
US20230393827A1 (en) Application management method and system for terminal
CN114978933B (en) Display method and device for display elements of three-dimensional topology
CN114448791B (en) Configuration method and device of routing module, electronic equipment and readable storage medium
CN116775056A (en) DDS cluster simulation method and device, electronic equipment and medium
CN113760304A (en) System configuration method, device, equipment and medium
CN113986360A (en) Server BIOS configuration method, system, device and storage medium

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