[go: up one dir, main page]

CN108848200A - Equipment adding method, device, equipment and medium in a kind of local area network - Google Patents

Equipment adding method, device, equipment and medium in a kind of local area network Download PDF

Info

Publication number
CN108848200A
CN108848200A CN201810607496.7A CN201810607496A CN108848200A CN 108848200 A CN108848200 A CN 108848200A CN 201810607496 A CN201810607496 A CN 201810607496A CN 108848200 A CN108848200 A CN 108848200A
Authority
CN
China
Prior art keywords
address
new device
target
available
local area
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
CN201810607496.7A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810607496.7A priority Critical patent/CN108848200A/en
Publication of CN108848200A publication Critical patent/CN108848200A/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/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • 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
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/668Internet protocol [IP] address subnets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/695Types of network addresses using masks or ranges of addresses

Landscapes

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

Abstract

本发明公开了一种局域网中的设备添加方法、装置、设备及介质,该方法的步骤包括:当有新设备接入目标局域网时,通过新设备向预设地址表记录的各个IP地址发送ARP请求;根据各ARP请求的应答信息生成ARP表;在可用IP地址中选取目标可用IP地址,以配置为新设备的当前IP地址,并依据已用IP地址与目标局域网中的其它设备建立通信连接。本方法通过新设备向局域网下的各个IP地址发送ARP请求,获取未占用的IP地址以及可通信的IP地址,进而完成配置,因此整体效率更高,并且由于无需采用DHCP服务器,相对保证了较低的实现成本。此外,本发明还提供一种局域网中的设备添加装置、设备及介质,有益效果同上所述。

The invention discloses a device adding method, device, device and medium in a local area network. The steps of the method include: when a new device is connected to the target local area network, sending ARP to each IP address recorded in a preset address table through the new device Request; generate an ARP table according to the response information of each ARP request; select the target available IP address from the available IP addresses to configure it as the current IP address of the new device, and establish a communication connection with other devices in the target LAN based on the used IP address . This method uses the new device to send an ARP request to each IP address under the LAN, obtains the unoccupied IP address and the IP address that can communicate, and then completes the configuration, so the overall efficiency is higher, and because there is no need to use a DHCP server, it is relatively guaranteed Low implementation cost. In addition, the present invention also provides a device adding device, device and medium in a local area network, and the beneficial effect is the same as that described above.

Description

一种局域网中的设备添加方法、装置、设备及介质Method, device, equipment and medium for adding equipment in local area network

技术领域technical field

本发明涉及网络通信领域,特别是涉及一种局域网中的设备添加方法、装置、设备及介质。The invention relates to the field of network communication, in particular to a device adding method, device, device and medium in a local area network.

背景技术Background technique

在当前的网络应用环境下,多个实体设备之间或者一个实体设备内的多个虚拟设备之间往往需要彼此互联形成局域网,进而基于局域网同步信息;在局域网的场景下,每一个加入局域网中的设备都需要有一个对应的IP地址,并且彼此之间的IP地址不能冲突。In the current network application environment, multiple physical devices or multiple virtual devices in one physical device often need to interconnect with each other to form a local area network, and then synchronize information based on the local area network; All devices need to have a corresponding IP address, and the IP addresses of each other cannot conflict.

当局域网中添加设备后,当前通常采用手工分配IP地址或DHCP(Dynamic HostConfiguration Protocol)动态分配IP地址的方式为所添加的设备分配IP地址。手工分配IP地址的方式,需要人工为每个设备配置IP地址,并且还需要在设备的系统中记录与本设备互连的其他设备的IP地址,写入到配置文件,进而根据配置文件中的IP地址建立设备之间的连接。手工分配IP地址的方式在操作方面相对繁琐,并且在有设备加入局域网时,都需要手工更新局域网中当前所有设备的配置文件,因此在局域网中添加新设备的效率相对较低;而通过DHCP动态分配IP地址的方式为设备分配IP地址,需要预先设置独立的DHCP服务器,增加了整体成本。When a device is added to the local area network, the IP address is usually assigned to the added device by manually assigning an IP address or dynamically assigning an IP address by DHCP (Dynamic Host Configuration Protocol). The method of manually assigning an IP address requires manually configuring an IP address for each device, and also needs to record the IP addresses of other devices interconnected with the device in the device system, write them into the configuration file, and then IP addresses establish connections between devices. The method of manually assigning IP addresses is relatively cumbersome in operation, and when a device joins the LAN, it is necessary to manually update the configuration files of all current devices in the LAN, so the efficiency of adding new devices in the LAN is relatively low; The way of assigning IP addresses is to assign IP addresses to devices, and an independent DHCP server needs to be set in advance, which increases the overall cost.

由此可见,提供一种局域网中的设备添加方法,以提高添加新设备到局域网时的整体效率,并相对保证较低的实现成本,是本领域技术人员亟待解决的问题。It can be seen that it is an urgent problem to be solved by those skilled in the art to provide a method for adding devices in a local area network to improve the overall efficiency of adding new devices to the local area network and relatively ensure a relatively low implementation cost.

发明内容Contents of the invention

本发明的目的是提供一种局域网中的设备添加方法、装置、设备及介质,以提高添加新设备到局域网时的整体效率,并相对保证较低的实现成本。The object of the present invention is to provide a method, device, equipment and medium for adding equipment in a local area network, so as to improve the overall efficiency when adding new equipment to the local area network, and relatively ensure a relatively low implementation cost.

为解决上述技术问题,本发明提供一种局域网中的设备添加方法,包括:In order to solve the above-mentioned technical problems, the present invention provides a method for adding equipment in a local area network, including:

当有新设备接入目标局域网时,通过新设备向预设地址表记录的各个IP地址发送ARP请求;其中,预设地址表中记录有预先为目标局域网规划的既定IP地址;When a new device is connected to the target LAN, an ARP request is sent to each IP address recorded in the preset address table through the new device; wherein, the predetermined IP address planned for the target LAN in advance is recorded in the preset address table;

根据各ARP请求的应答信息生成ARP表;其中,ARP表中记录既定IP地址中的可用IP地址及已用IP地址;Generate an ARP table according to the response information of each ARP request; wherein, the ARP table records available IP addresses and used IP addresses in the given IP addresses;

在可用IP地址中选取目标可用IP地址,以配置为新设备的当前IP地址,并依据已用IP地址与目标局域网中的其它设备建立通信连接。Select the target available IP address from the available IP addresses to configure it as the current IP address of the new device, and establish a communication connection with other devices in the target LAN based on the used IP address.

优选的,在通过新设备向预设地址表记录的各个IP地址发送ARP请求前,该方法进一步包括:Preferably, before the new device sends an ARP request to each IP address recorded in the preset address table, the method further includes:

设置目标局域网的IP网段,并根据对目标局域网的规划设置IP网段的子网掩码;Set the IP network segment of the target LAN, and set the subnet mask of the IP network segment according to the planning of the target LAN;

生成属于IP网段,且满足子网掩码要求的既定IP地址并记录至预设地址表。Generate a predetermined IP address that belongs to the IP network segment and meets the requirements of the subnet mask and record it in the preset address table.

优选的,在可用IP地址中选取目标可用IP地址后,该方法进一步包括:Preferably, after selecting the available IP address of the target from the available IP addresses, the method further includes:

当同时存在有第二新设备选取目标可用IP地址时,判断新设备的MAC地址是否小于第二新设备的MAC地址;When there is a second new device to select a target available IP address at the same time, it is judged whether the MAC address of the new device is less than the MAC address of the second new device;

如果是,则执行配置为新设备的当前IP地址的步骤,并控制第二新设备在可用IP地址中重新选取目标可用IP地址;If yes, then perform the step of being configured as the current IP address of the new device, and control the second new device to reselect the available IP address of the target in the available IP addresses;

否则,控制新设备在可用IP地址中重新选取目标可用IP地址。Otherwise, control the new device to reselect the target available IP address from the available IP addresses.

优选的,依据已用IP地址与目标局域网中的其它设备建立通信连接具体为:Preferably, establishing a communication connection with other devices in the target LAN according to the used IP address is specifically:

依据已用IP地址与目标局域网中的其它设备建立通信TCP/IP连接。Establish a communication TCP/IP connection with other devices in the target LAN based on the used IP address.

优选的,在依据已用IP地址与目标局域网中的其它设备建立通信连接后,该方法进一步包括:Preferably, after establishing a communication connection with other devices in the target LAN according to the used IP address, the method further includes:

根据预设周期控制新设备向预设地址表记录的各个IP地址发送ARP请求以更新ARP表。According to the preset cycle, the new device is controlled to send an ARP request to each IP address recorded in the preset address table to update the ARP table.

此外,本发明还提供一种局域网中的设备添加装置,包括:In addition, the present invention also provides a device adding device in a local area network, including:

请求发送模块,用于当有新设备接入目标局域网时,通过新设备向预设地址表记录的各个IP地址发送ARP请求;其中,预设地址表中记录有预先为目标局域网规划的既定IP地址;The request sending module is used to send an ARP request to each IP address recorded in the preset address table through the new device when a new device is connected to the target LAN; wherein, the preset address table records the predetermined IP planned in advance for the target LAN address;

表生成模块,用于根据各ARP请求的应答信息生成ARP表;其中,ARP表中记录既定IP地址中的可用IP地址及已用IP地址;A table generation module is used to generate an ARP table according to the response information of each ARP request; wherein, the available IP address and the used IP address in the predetermined IP address are recorded in the ARP table;

配置连接模块,用于在可用IP地址中选取目标可用IP地址,以配置为新设备的当前IP地址,并依据已用IP地址与目标局域网中的其它设备建立通信连接。The configuration connection module is used to select the target available IP address from the available IP addresses to be configured as the current IP address of the new device, and to establish a communication connection with other devices in the target LAN according to the used IP address.

优选的,该装置进一步包括:Preferably, the device further comprises:

网段掩码设置模块,用于设置目标局域网的IP网段,并根据对目标局域网的规划设置IP网段的子网掩码;A network segment mask setting module is used to set the IP network segment of the target LAN, and set the subnet mask of the IP network segment according to the planning of the target LAN;

地址表生成模块,用于生成属于IP网段,且满足子网掩码要求的既定IP地址并记录至预设地址表。The address table generation module is used to generate a predetermined IP address that belongs to the IP network segment and meets the requirements of the subnet mask and records it in the preset address table.

优选的,该装置进一步包括:Preferably, the device further comprises:

表更新模块,用于根据预设周期控制新设备向预设地址表记录的各个IP地址发送ARP请求以更新ARP表。A table updating module, configured to control the new device to send an ARP request to each IP address recorded in the preset address table according to a preset period to update the ARP table.

此外,本发明还提供一种局域网中的设备添加设备,包括:In addition, the present invention also provides a device adding device in a local area network, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行计算机程序时实现如上述的局域网中的设备添加方法的步骤。The processor is used for implementing the steps of the above-mentioned method for adding devices in the local area network when executing the computer program.

此外,本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述的局域网中的设备添加方法的步骤。In addition, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method for adding a device in a local area network are realized.

本发明所提供的局域网中的设备添加方法,当有新设备接入局域网时,通过新设备根据预设地址表中所记录的IP地址发送ARP请求,进而根据各个ARP请求的应答信息,生成包含有可用IP地址及已用IP地址的ARP表,以此确定预设地址表中的各IP地址的当前占用情况,进而在可用IP地址中选取目标可用IP地址配置为新设备的当前IP地址,并依据已用IP地址与局域网中的其它设备建立通信连接关系,以此实现在局域网中添加新的设备。本方法通过新设备向局域网下的各个IP地址发送ARP请求,获取未占用的IP地址以及可通信的IP地址,进而完成配置,相比于人工手动分配IP地址而言的整体效率更高,并且由于无需采用DHCP服务器,相对保证了较低的实现成本。此外,本发明还提供一种局域网中的设备添加装置、设备及介质,有益效果同上所述。In the device adding method in the local area network provided by the present invention, when a new device is connected to the local area network, the new device sends an ARP request according to the IP address recorded in the preset address table, and then according to the response information of each ARP request, generates an ARP request containing There is an ARP table of available IP addresses and used IP addresses to determine the current occupancy of each IP address in the preset address table, and then select the target available IP address from the available IP addresses and configure it as the current IP address of the new device. And establish a communication connection relationship with other devices in the local area network according to the used IP address, so as to realize adding new devices in the local area network. This method uses the new device to send an ARP request to each IP address under the LAN, obtains the unoccupied IP address and the IP address that can communicate, and then completes the configuration. Compared with the manual allocation of IP addresses, the overall efficiency is higher, and Since there is no need to use a DHCP server, relatively low implementation costs are guaranteed. In addition, the present invention also provides a device adding device, device and medium in a local area network, and the beneficial effects are the same as those described above.

附图说明Description of drawings

为了更清楚地说明本发明实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. As far as people are concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.

图1为本发明实施例提供的一种局域网中的设备添加方法的流程图;FIG. 1 is a flow chart of a method for adding equipment in a local area network provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种局域网中的设备添加方法的流程图;FIG. 2 is a flow chart of another method for adding devices in a local area network provided by an embodiment of the present invention;

图3为本发明实施例提供的一种局域网中的设备添加装置的结构图。Fig. 3 is a structural diagram of an apparatus for adding equipment in a local area network according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本发明保护范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明的核心是提供一种局域网中的设备添加方法,以提高添加新设备到局域网时的整体效率,并相对保证较低的实现成本。本发明的另一核心是提供一种局域网中的设备添加装置、设备及介质。The core of the present invention is to provide a method for adding equipment in a local area network, so as to improve the overall efficiency when adding new equipment to the local area network, and relatively ensure a relatively low implementation cost. Another core of the present invention is to provide a device adding device, device and medium in a local area network.

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

实施例一Embodiment one

图1为本发明实施例提供的一种局域网中的设备添加方法的流程图。请参考图1,局域网中的设备添加方法的具体步骤包括:FIG. 1 is a flow chart of a method for adding devices in a local area network provided by an embodiment of the present invention. Please refer to Figure 1, the specific steps of the device addition method in the LAN include:

步骤S10:当有新设备接入目标局域网时,通过新设备向预设地址表记录的各个IP地址发送ARP请求。Step S10: When a new device is connected to the target LAN, the new device sends an ARP request to each IP address recorded in the preset address table.

其中,预设地址表中记录有预先为目标局域网规划的既定IP地址。Wherein, the predetermined IP address planned in advance for the target LAN is recorded in the preset address table.

需要说明的是,ARP(Address Resolution Protocol),是根据IP地址获取物理地址的一个TCP/IP协议。主机发送信息时将包含目标IP地址的ARP请求广播到网络上的所有主机,并接收返回消息,以此确定目标IP地址是否已有设备占用;收到返回消息后将该IP地址和物理地址存入本机ARP缓存中并保留一定时间,下次请求时直接查询ARP缓存以节约资源。在本步骤中,新设备分别向预设地址表记录的各个IP地址发送ARP请求,并接收返回消息,主要目的在于根据返回消息确定预设地址表中的各个IP地址是否已经被使用,即是否能否被新设备占用。由于在局域网规划时,会根据具体需求对局域网所能容纳的设备数量进行预先设定,由于IP地址能够唯一对应一台设备,因此局域网中能容纳的设备数量与该局域网中所规划的既定IP地址的数量存在直接的关联,预设地址表中所记录的既定IP地址为当前局域网中所有能够被使用的IP地址。It should be noted that ARP (Address Resolution Protocol) is a TCP/IP protocol for obtaining a physical address based on an IP address. When the host sends information, it broadcasts the ARP request containing the target IP address to all hosts on the network, and receives the return message to determine whether the target IP address is already occupied by a device; after receiving the return message, store the IP address and physical address Enter the local ARP cache and keep it for a certain period of time, and directly query the ARP cache for the next request to save resources. In this step, the new device sends an ARP request to each IP address recorded in the preset address table, and receives a return message. The main purpose is to determine whether each IP address in the preset address table has been used according to the return message, that is, whether Can be occupied by new equipment. Since the number of devices that can be accommodated in the LAN will be preset according to specific needs during LAN planning, and since an IP address can uniquely correspond to a device, the number of devices that can be accommodated in the LAN is the same as the planned IP address in the LAN. The number of addresses is directly related, and the predetermined IP addresses recorded in the preset address table are all IP addresses that can be used in the current local area network.

步骤S11:根据各ARP请求的应答信息生成ARP表。Step S11: Generate an ARP table according to the response information of each ARP request.

其中,ARP表中记录既定IP地址中的可用IP地址及已用IP地址。Wherein, the ARP table records available IP addresses and used IP addresses in the predetermined IP addresses.

需要说明的是,新设备向各个既定IP地址发送ARP请求后,如存在设备已占用目标既定IP地址,则该设备会接收到ARP请求并以应答信息的形式向新设备进行响应;如目标既定IP地址未被局域网中的已有设备占用,则新设备则不会接收到应答信息。因此本步骤中所指的根据各ARP请求的应答信息生成ARP表,具体是根据各APR请求是否存在相应的应答信息以确定既定IP地址中的可用IP地址及已用IP地址,进而生成APR表。It should be noted that after the new device sends an ARP request to each predetermined IP address, if there is a device that already occupies the target predetermined IP address, the device will receive the ARP request and respond to the new device in the form of a response message; if the target If the IP address is not occupied by an existing device in the LAN, the new device will not receive the reply message. Therefore, the generation of the ARP table according to the response information of each ARP request referred to in this step is to determine the available IP address and the used IP address in the given IP address according to whether there is a corresponding response information for each APR request, and then generate the APR table .

步骤S12:在可用IP地址中选取目标可用IP地址,以配置为新设备的当前IP地址,并依据已用IP地址与目标局域网中的其它设备建立通信连接。Step S12: Select the target available IP address from the available IP addresses to be configured as the current IP address of the new device, and establish a communication connection with other devices in the target LAN according to the used IP address.

可以理解的是,在局域网中添加新设备的本质是新设备在局域网中拥有自身的IP地址,并且与该局域网中的其它设备建立通信关系,因此在本步骤中,首先在可用IP地址中选取目标可用IP地址,并配置为新设备的当前IP地址,由于已用IP地址能够对应局域网中当前已存在的其它设备,因此本步骤进而根据已用IP地址与目标局域网中的其它设备建立通信连接,最终实现将新设备添加至局域网中。另外,本步骤所指的建立通信连接可以为基于TCP/IP协议的连接,也可以是基于UDP协议的连接,应根据在该局域网中对设备的具体使用需求而定,在此不做具体限定。It can be understood that the essence of adding a new device in the LAN is that the new device has its own IP address in the LAN and establishes a communication relationship with other devices in the LAN. Therefore, in this step, first select the available IP address The available IP address of the target is configured as the current IP address of the new device. Since the used IP address can correspond to other devices currently existing in the LAN, this step further establishes a communication connection with other devices in the target LAN based on the used IP address , and finally add new devices to the LAN. In addition, the establishment of a communication connection referred to in this step can be a connection based on the TCP/IP protocol, or a connection based on the UDP protocol, which should be determined according to the specific use requirements of the device in the local area network, and is not specifically limited here. .

本发明所提供的局域网中的设备添加方法,当有新设备接入局域网时,通过新设备根据预设地址表中所记录的IP地址发送ARP请求,进而根据各个ARP请求的应答信息,生成包含有可用IP地址及已用IP地址的ARP表,以此确定预设地址表中的各IP地址的当前占用情况,进而在可用IP地址中选取目标可用IP地址配置为新设备的当前IP地址,并依据已用IP地址与局域网中的其它设备建立通信连接关系,以此实现在局域网中添加新的设备。本方法通过新设备向局域网下的各个IP地址发送ARP请求,获取未占用的IP地址以及可通信的IP地址,进而完成配置,相比于人工手动分配IP地址而言的整体效率更高,并且由于无需采用DHCP服务器,相对保证了较低的实现成本。In the device adding method in the local area network provided by the present invention, when a new device is connected to the local area network, the new device sends an ARP request according to the IP address recorded in the preset address table, and then according to the response information of each ARP request, generates an ARP request containing There is an ARP table of available IP addresses and used IP addresses to determine the current occupancy of each IP address in the preset address table, and then select the target available IP address from the available IP addresses and configure it as the current IP address of the new device. And establish a communication connection relationship with other devices in the local area network according to the used IP address, so as to realize adding new devices in the local area network. This method uses the new device to send an ARP request to each IP address under the LAN, obtains the unoccupied IP address and the IP address that can communicate, and then completes the configuration. Compared with the manual allocation of IP addresses, the overall efficiency is higher, and Since there is no need to use a DHCP server, relatively low implementation costs are guaranteed.

实施例二Embodiment two

在上述实施例的基础上,本发明还提供以下一系列优选的实施方式。On the basis of the above embodiments, the present invention also provides the following series of preferred implementation manners.

图2为本发明实施例提供的另一种局域网中的设备添加方法的流程图。图2中步骤S10-S12与图1相同,在此不再赘述。Fig. 2 is a flow chart of another method for adding devices in a local area network provided by an embodiment of the present invention. Steps S10-S12 in FIG. 2 are the same as those in FIG. 1, and will not be repeated here.

如图2所示,作为一种优选的实施方式,在通过新设备向预设地址表记录的各个IP地址发送ARP请求前,该方法进一步包括:As shown in Figure 2, as a preferred implementation, before the new device sends an ARP request to each IP address recorded in the preset address table, the method further includes:

步骤S20:设置目标局域网的IP网段,并根据对目标局域网的规划设置IP网段的子网掩码。Step S20: Set the IP network segment of the target LAN, and set the subnet mask of the IP network segment according to the planning of the target LAN.

步骤S21:生成属于IP网段,且满足子网掩码要求的既定IP地址并记录至预设地址表。Step S21: Generate a predetermined IP address that belongs to the IP network segment and meets the requirements of the subnet mask and records it in the preset address table.

需要说明的是,企业规模越来越大,局域网中的设备数量从原来的十几台到几十台甚至几百台,由于所需的IP地址数量也越来越多,因此可以通过IP网段以及子网掩码共同限定IP地址的取值范围。例如所预先规划的局域网的设备规模在255个设备范围之内,那么则可以约定IP网段使用192.168.1.0,子网掩码为255.255.255.0,如果所预先规划的局域网的设备规模小于15个,则子网掩码使用255.255.255.240即可。上述示例仅为说明IP网段、子网掩码以及IP地址之间的关系,由于IP网段与子网掩码的配合使用是本领域技术人员所公知的技术内容,在此不进行过多赘述,本实施方式只是采用此种方式以相对减轻划分局域网中既定IP地址的负载程度,提高整体效率。It should be noted that the scale of enterprises is getting larger and larger, and the number of devices in the LAN has changed from a dozen to dozens or even hundreds of devices. Since the number of IP addresses required is also increasing, it can be accessed through the IP network. The segment and the subnet mask jointly define the value range of the IP address. For example, if the equipment size of the pre-planned LAN is within the range of 255 devices, then the IP network segment can be agreed to use 192.168.1.0, and the subnet mask is 255.255.255.0. , the subnet mask can be 255.255.255.240. The above example is only to illustrate the relationship between the IP network segment, subnet mask and IP address. Since the cooperation between the IP network segment and the subnet mask is a technical content well known to those skilled in the art, we will not go into too much detail here. To repeat, this embodiment only adopts this method to relatively reduce the load degree of dividing the predetermined IP address in the local area network and improve the overall efficiency.

此外,作为一种优选的实施方式,在可用IP地址中选取目标可用IP地址后,该方法进一步包括:In addition, as a preferred embodiment, after selecting the target available IP address from the available IP addresses, the method further includes:

当同时存在有第二新设备选取目标可用IP地址时,判断新设备的MAC地址是否小于第二新设备的MAC地址;When there is a second new device to select a target available IP address at the same time, it is judged whether the MAC address of the new device is less than the MAC address of the second new device;

如果是,则执行配置为新设备的当前IP地址的步骤,并控制第二新设备在可用IP地址中重新选取目标可用IP地址;If yes, then perform the step of being configured as the current IP address of the new device, and control the second new device to reselect the available IP address of the target in the available IP addresses;

否则,控制新设备在可用IP地址中重新选取目标可用IP地址。Otherwise, control the new device to reselect the target available IP address from the available IP addresses.

需要说明的是,本实施方式所适用的情况是,与新设备同时存在有第二新设备,并且第二新设备选取与新设备相同的目标可用IP地址,在此情况下,为了防止不同设备占用相同IP地址的情况发生,可以对新设备与第二新设备之间的MAC(Media Access Control或Medium Access Control)地址的数值进程比较,由于每一台设备的MAC地址均不相同,因此MAC地址能够作为新设备与第二新设备之间准确的比对依据,进而在本实施方式中通过判断新设备的MAC地址是否小于第二新设备的MAC地址,以确定控制新设备或控制第二新设备重新选取目标可用IP地址并配置为当前IP地址,以此对IP地址冲突的情况进行相应的规避。基于本实施方式的思想,还可以对判断条件进行相应的修改,如“判断新设备的MAC地址是否大于第二新设备的MAC地址”,但是本质上是对新设备与第二新设备之间的MAC地址进行比较,因此对判断条件的修改也应落入本实施方式的保护范围。It should be noted that this embodiment is applicable to the situation that there is a second new device at the same time as the new device, and the second new device selects the same target available IP address as the new device. In this case, in order to prevent different devices from Occupying the same IP address, you can compare the numerical progress of the MAC (Media Access Control or Medium Access Control) address between the new device and the second new device. Since the MAC address of each device is different, the MAC The address can be used as an accurate comparison basis between the new device and the second new device, and then in this embodiment, by judging whether the MAC address of the new device is smaller than the MAC address of the second new device, to determine whether to control the new device or to control the second The new device reselects the available IP address of the target and configures it as the current IP address, so as to avoid the IP address conflict accordingly. Based on the idea of this embodiment, the judging conditions can also be modified accordingly, such as "judging whether the MAC address of the new device is greater than the MAC address of the second new device", but in essence, it is the difference between the new device and the second new device. Therefore, the modification of the judgment condition should also fall within the scope of protection of this embodiment.

此外,作为一种优选的实施方式,依据已用IP地址与目标局域网中的其它设备建立通信连接具体为:In addition, as a preferred implementation manner, establishing a communication connection with other devices in the target LAN according to the used IP address is specifically:

依据已用IP地址与目标局域网中的其它设备建立通信TCP/IP连接。Establish a communication TCP/IP connection with other devices in the target LAN based on the used IP address.

需要说明的是,TCP/IP是一个稳定的、构造优良的、富有竞争性的协议。TCP和IP是两个独立且紧密结合的协议,负责管理和引导数据报文在网络中的传输。其二者使用专门的报文头定义每个报文的内容。TCP负责和远程主机的连接。而IP负责寻址,使报文被送到其该去的地方。由于TCP/IP连接具有良好的破坏恢复机制,并且能够在不中断现有服务的情况下加入网络,此外还有高效的错误处理机制,因此通过TCP/IP连接能够相对高效的进行局域网中设备间的数据通信。It should be noted that TCP/IP is a stable, well-structured, and competitive protocol. TCP and IP are two independent and tightly integrated protocols responsible for managing and guiding the transmission of data packets in the network. Both of them use a special message header to define the content of each message. TCP is responsible for the connection with the remote host. And IP is responsible for addressing, so that the message is sent to the place where it should go. Since the TCP/IP connection has a good damage recovery mechanism, and can join the network without interrupting existing services, and also has an efficient error handling mechanism, the TCP/IP connection can be relatively efficient between devices in the LAN. data communication.

此外,作为一种优选的实施方式,在依据已用IP地址与目标局域网中的其它设备建立通信连接后,该方法进一步包括:In addition, as a preferred implementation manner, after establishing a communication connection with other devices in the target LAN according to the used IP address, the method further includes:

根据预设周期控制新设备向预设地址表记录的各个IP地址发送ARP请求以更新ARP表。According to the preset cycle, the new device is controlled to send an ARP request to each IP address recorded in the preset address table to update the ARP table.

由于局域网中所接入的设备往往是在不断变化的,因此为了确保ARP表中所记录的可用IP地址及已用IP地址的可用性,可以在新设备接入局域网后,按照预设周期对新设备中的ARP表进行更新,更新的方式即重新向预设地址表记录的各个IP地址发送ARP请求,并根据应答信息更新ARP表中的已用IP地址的内容,以此确保已用IP地址的准确性,保证新设备与局域网中其它设备之间通信连接的可靠性。Since the devices connected to the LAN are constantly changing, in order to ensure the usability of the available IP addresses and the used IP addresses recorded in the ARP table, after the new device is connected to the LAN, the new device can be updated according to the preset cycle. The ARP table in the device is updated. The update method is to resend the ARP request to each IP address recorded in the preset address table, and update the content of the used IP address in the ARP table according to the response information, so as to ensure that the used IP address The accuracy ensures the reliability of the communication connection between the new device and other devices in the LAN.

实施例三Embodiment three

在上文中对于局域网中的设备添加方法的实施例进行了详细的描述,本发明还提供一种与该方法对应的局域网中的设备添加装置,由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。The embodiment of the method for adding equipment in the local area network has been described in detail above, and the present invention also provides a device for adding equipment in the local area network corresponding to the method, because the embodiment of the device part and the embodiment of the method part are mutually Correspondingly, for the embodiment of the device part, please refer to the description of the embodiment of the method part, and details will not be repeated here.

图3为本发明实施例提供的一种局域网中的设备添加装置的结构图。本发明实施例提供的局域网中的设备添加装置,包括:Fig. 3 is a structural diagram of an apparatus for adding equipment in a local area network according to an embodiment of the present invention. The device adding device in the local area network provided by the embodiment of the present invention includes:

请求发送模块10,用于当有新设备接入目标局域网时,通过新设备向预设地址表记录的各个IP地址发送ARP请求;其中,预设地址表中记录有预先为目标局域网规划的既定IP地址。The request sending module 10 is used to send an ARP request to each IP address recorded in the preset address table through the new device when a new device is connected to the target LAN; IP address.

表生成模块11,用于根据各ARP请求的应答信息生成ARP表;其中,ARP表中记录既定IP地址中的可用IP地址及已用IP地址。The table generating module 11 is configured to generate an ARP table according to the response information of each ARP request; wherein, the ARP table records available IP addresses and used IP addresses among predetermined IP addresses.

配置连接模块12,用于在可用IP地址中选取目标可用IP地址,以配置为新设备的当前IP地址,并依据已用IP地址与目标局域网中的其它设备建立通信连接。The configuration connection module 12 is used to select the target available IP address from the available IP addresses to be configured as the current IP address of the new device, and establish a communication connection with other devices in the target LAN according to the used IP address.

本发明所提供的局域网中的设备添加装置,当有新设备接入局域网时,通过新设备根据预设地址表中所记录的IP地址发送ARP请求,进而根据各个ARP请求的应答信息,生成包含有可用IP地址及已用IP地址的ARP表,以此确定预设地址表中的各IP地址的当前占用情况,进而在可用IP地址中选取目标可用IP地址配置为新设备的当前IP地址,并依据已用IP地址与局域网中的其它设备建立通信连接关系,以此实现在局域网中添加新的设备。本装置通过新设备向局域网下的各个IP地址发送ARP请求,获取未占用的IP地址以及可通信的IP地址,进而完成配置,相比于人工手动分配IP地址而言的整体效率更高,并且由于无需采用DHCP服务器,相对保证了较低的实现成本。The device adding device in the local area network provided by the present invention, when a new device is connected to the local area network, sends an ARP request through the new device according to the IP address recorded in the preset address table, and then according to the response information of each ARP request, generates an ARP request containing There is an ARP table of available IP addresses and used IP addresses to determine the current occupancy of each IP address in the preset address table, and then select the target available IP address from the available IP addresses and configure it as the current IP address of the new device. And establish a communication connection relationship with other devices in the local area network according to the used IP address, so as to realize adding new devices in the local area network. This device sends an ARP request to each IP address under the LAN through a new device, obtains an unoccupied IP address and a communicable IP address, and then completes the configuration. Compared with manually assigning an IP address, the overall efficiency is higher, and Since there is no need to use a DHCP server, relatively low implementation costs are guaranteed.

在实施例三的基础上,该装置还包括:On the basis of embodiment three, the device also includes:

网段掩码设置模块,用于设置目标局域网的IP网段,并根据对目标局域网的规划设置IP网段的子网掩码;A network segment mask setting module is used to set the IP network segment of the target LAN, and set the subnet mask of the IP network segment according to the planning of the target LAN;

地址表生成模块,用于生成属于IP网段,且满足子网掩码要求的既定IP地址并记录至预设地址表。The address table generation module is used to generate a predetermined IP address that belongs to the IP network segment and meets the requirements of the subnet mask and records it in the preset address table.

在上述局域网中的设备添加装置的基础上,该装置还包括:On the basis of the equipment adding device in the above local area network, the device also includes:

表更新模块,用于根据预设周期控制新设备向预设地址表记录的各个IP地址发送ARP请求以更新ARP表。A table updating module, configured to control the new device to send an ARP request to each IP address recorded in the preset address table according to a preset period to update the ARP table.

实施例四Embodiment Four

本发明还提供一种局域网中的设备添加设备,包括:The present invention also provides a device adding device in a local area network, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行计算机程序时实现如上述的局域网中的设备添加方法的步骤。The processor is used for implementing the steps of the above-mentioned method for adding devices in the local area network when executing the computer program.

本发明所提供的局域网中的设备添加设备,当有新设备接入局域网时,通过新设备根据预设地址表中所记录的IP地址发送ARP请求,进而根据各个ARP请求的应答信息,生成包含有可用IP地址及已用IP地址的ARP表,以此确定预设地址表中的各IP地址的当前占用情况,进而在可用IP地址中选取目标可用IP地址配置为新设备的当前IP地址,并依据已用IP地址与局域网中的其它设备建立通信连接关系,以此实现在局域网中添加新的设备。本设备通过新设备向局域网下的各个IP地址发送ARP请求,获取未占用的IP地址以及可通信的IP地址,进而完成配置,相比于人工手动分配IP地址而言的整体效率更高,并且由于无需采用DHCP服务器,相对保证了较低的实现成本。In the device adding device in the local area network provided by the present invention, when a new device is connected to the local area network, the new device sends an ARP request according to the IP address recorded in the preset address table, and then according to the response information of each ARP request, generates an ARP request containing There is an ARP table of available IP addresses and used IP addresses to determine the current occupancy of each IP address in the preset address table, and then select the target available IP address from the available IP addresses and configure it as the current IP address of the new device. And establish a communication connection relationship with other devices in the local area network according to the used IP address, so as to realize adding new devices in the local area network. This device sends an ARP request to each IP address under the LAN through a new device, obtains an unoccupied IP address and a communicable IP address, and then completes the configuration. Compared with manually assigning IP addresses, the overall efficiency is higher, and Since there is no need to use a DHCP server, relatively low implementation costs are guaranteed.

本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述的局域网中的设备添加方法的步骤。The present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method for adding a device in a local area network are realized.

本发明所提供的计算机可读存储介质,当有新设备接入局域网时,通过新设备根据预设地址表中所记录的IP地址发送ARP请求,进而根据各个ARP请求的应答信息,生成包含有可用IP地址及已用IP地址的ARP表,以此确定预设地址表中的各IP地址的当前占用情况,进而在可用IP地址中选取目标可用IP地址配置为新设备的当前IP地址,并依据已用IP地址与局域网中的其它设备建立通信连接关系,以此实现在局域网中添加新的设备。本计算机可读存储介质通过新设备向局域网下的各个IP地址发送ARP请求,获取未占用的IP地址以及可通信的IP地址,进而完成配置,相比于人工手动分配IP地址而言的整体效率更高,并且由于无需采用DHCP服务器,相对保证了较低的实现成本。The computer-readable storage medium provided by the present invention, when a new device is connected to the local area network, sends an ARP request through the new device according to the IP address recorded in the preset address table, and then according to the response information of each ARP request, generates an ARP request containing The ARP table of the available IP address and the used IP address to determine the current occupancy of each IP address in the preset address table, and then select the target available IP address from the available IP addresses and configure it as the current IP address of the new device, and Establish a communication connection relationship with other devices in the LAN based on the used IP address, so as to add new devices in the LAN. The computer-readable storage medium sends an ARP request to each IP address under the LAN through a new device, obtains an unoccupied IP address and a communicable IP address, and then completes the configuration. Compared with manual allocation of IP addresses, the overall efficiency Higher, and because there is no need to use a DHCP server, relatively low implementation costs are guaranteed.

以上对本发明所提供的一种局域网中的设备添加方法、装置、设备及介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method, device, equipment and medium for adding equipment in a local area network provided by the present invention have been introduced in detail above. Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

Claims (10)

1.一种局域网中的设备添加方法,其特征在于,包括:1. A method for adding equipment in a local area network, comprising: 当有新设备接入目标局域网时,通过所述新设备向预设地址表记录的各个IP地址发送ARP请求;其中,所述预设地址表中记录有预先为所述目标局域网规划的既定IP地址;When a new device accesses the target local area network, the new device sends an ARP request to each IP address recorded in the preset address table; wherein, the preset address table records the predetermined IP planned for the target local area network in advance address; 根据各所述ARP请求的应答信息生成ARP表;其中,所述ARP表中记录所述既定IP地址中的可用IP地址及已用IP地址;Generate an ARP table according to the response information of each of the ARP requests; wherein, the available IP address and the used IP address in the predetermined IP address are recorded in the ARP table; 在所述可用IP地址中选取目标可用IP地址,以配置为所述新设备的当前IP地址,并依据所述已用IP地址与所述目标局域网中的其它设备建立通信连接。Selecting a target available IP address from the available IP addresses to be configured as the current IP address of the new device, and establishing a communication connection with other devices in the target LAN according to the used IP address. 2.根据权利要求1所述的方法,其特征在于,在所述通过所述新设备向预设地址表记录的各个IP地址发送ARP请求前,该方法进一步包括:2. The method according to claim 1, characterized in that, before the new device sends an ARP request to each IP address recorded in the preset address table, the method further comprises: 设置所述目标局域网的IP网段,并根据对所述目标局域网的规划设置所述IP网段的子网掩码;Set the IP network segment of the target LAN, and set the subnet mask of the IP network segment according to the planning of the target LAN; 生成属于所述IP网段,且满足所述子网掩码要求的所述既定IP地址并记录至所述预设地址表。generating the predetermined IP address that belongs to the IP network segment and meets the requirement of the subnet mask, and records it in the preset address table. 3.根据权利要求1所述的方法,其特征在于,在所述可用IP地址中选取目标可用IP地址后,该方法进一步包括:3. The method according to claim 1, characterized in that, after selecting the target available IP address from the available IP addresses, the method further comprises: 当同时存在有第二新设备选取所述目标可用IP地址时,判断所述新设备的MAC地址是否小于所述第二新设备的MAC地址;When there is a second new device that selects the target available IP address at the same time, judging whether the MAC address of the new device is smaller than the MAC address of the second new device; 如果是,则执行所述配置为所述新设备的当前IP地址的步骤,并控制所述第二新设备在所述可用IP地址中重新选取目标可用IP地址;If yes, then perform the step of configuring the current IP address of the new device, and control the second new device to reselect the target available IP address from the available IP addresses; 否则,控制所述新设备在所述可用IP地址中重新选取目标可用IP地址。Otherwise, control the new device to reselect a target available IP address from the available IP addresses. 4.根据权利要求1所述的方法,其特征在于,所述依据所述已用IP地址与所述目标局域网中的其它设备建立通信连接具体为:4. The method according to claim 1, wherein the establishment of a communication connection with other devices in the target LAN according to the used IP address is specifically: 依据所述已用IP地址与所述目标局域网中的其它设备建立通信TCP/IP连接。Establishing a communication TCP/IP connection with other devices in the target LAN according to the used IP address. 5.根据权利要求1-4任意一项所述的方法,其特征在于,在所述依据所述已用IP地址与所述目标局域网中的其它设备建立通信连接后,该方法进一步包括:5. The method according to any one of claims 1-4, characterized in that, after establishing a communication connection with other devices in the target LAN according to the used IP address, the method further comprises: 根据预设周期控制所述新设备向预设地址表记录的各个IP地址发送ARP请求以更新所述ARP表。The new device is controlled according to a preset period to send an ARP request to each IP address recorded in the preset address table to update the ARP table. 6.一种局域网中的设备添加装置,其特征在于,包括:6. A device adding device in a local area network, characterized in that it comprises: 请求发送模块,用于当有新设备接入目标局域网时,通过所述新设备向预设地址表记录的各个IP地址发送ARP请求;其中,所述预设地址表中记录有预先为所述目标局域网规划的既定IP地址;The request sending module is used to send an ARP request to each IP address recorded in the preset address table through the new device when a new device accesses the target local area network; The predetermined IP address planned by the target LAN; 表生成模块,用于根据各所述ARP请求的应答信息生成ARP表;其中,所述ARP表中记录所述既定IP地址中的可用IP地址及已用IP地址;A table generating module, configured to generate an ARP table according to the response information of each of the ARP requests; wherein, the ARP table records available IP addresses and used IP addresses in the predetermined IP addresses; 配置连接模块,用于在所述可用IP地址中选取目标可用IP地址,以配置为所述新设备的当前IP地址,并依据所述已用IP地址与所述目标局域网中的其它设备建立通信连接。The configuration connection module is used to select a target available IP address from the available IP addresses to be configured as the current IP address of the new device, and to establish communication with other devices in the target LAN according to the used IP address connect. 7.根据权利要求6所述的装置,其特征在于,该装置进一步包括:7. The device according to claim 6, characterized in that the device further comprises: 网段掩码设置模块,用于设置所述目标局域网的IP网段,并根据对所述目标局域网的规划设置所述IP网段的子网掩码;Network segment mask setting module, used to set the IP network segment of the target LAN, and set the subnet mask of the IP network segment according to the planning of the target LAN; 地址表生成模块,用于生成属于所述IP网段,且满足所述子网掩码要求的所述既定IP地址并记录至所述预设地址表。An address table generation module, configured to generate the predetermined IP address belonging to the IP network segment and satisfying the subnet mask requirement, and record it into the preset address table. 8.根据权利要求6或7所述的装置,其特征在于,该装置进一步包括:8. The device according to claim 6 or 7, characterized in that the device further comprises: 表更新模块,用于根据预设周期控制所述新设备向预设地址表记录的各个IP地址发送ARP请求以更新所述ARP表。A table updating module, configured to control the new device to send an ARP request to each IP address recorded in the preset address table according to a preset period to update the ARP table. 9.一种局域网中的设备添加设备,其特征在于,包括:9. A device adding device in a local area network, characterized in that, comprising: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序时实现如权利要求1至5任一项所述的局域网中的设备添加方法的步骤。A processor, configured to implement the steps of the method for adding devices in a local area network according to any one of claims 1 to 5 when executing the computer program. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述的局域网中的设备添加方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the local area network according to any one of claims 1 to 5 is realized Steps in the device addition method in .
CN201810607496.7A 2018-06-13 2018-06-13 Equipment adding method, device, equipment and medium in a kind of local area network Pending CN108848200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810607496.7A CN108848200A (en) 2018-06-13 2018-06-13 Equipment adding method, device, equipment and medium in a kind of local area network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810607496.7A CN108848200A (en) 2018-06-13 2018-06-13 Equipment adding method, device, equipment and medium in a kind of local area network

Publications (1)

Publication Number Publication Date
CN108848200A true CN108848200A (en) 2018-11-20

Family

ID=64211076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810607496.7A Pending CN108848200A (en) 2018-06-13 2018-06-13 Equipment adding method, device, equipment and medium in a kind of local area network

Country Status (1)

Country Link
CN (1) CN108848200A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347034A (en) * 2021-05-31 2021-09-03 浙江大华技术股份有限公司 Device processing method and device, authentication method and device, and storage medium
CN116233069A (en) * 2023-03-14 2023-06-06 亿航智能设备(广州)有限公司 A method, device, and computer-readable storage medium for dynamically configuring network addresses

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140022936A1 (en) * 2012-07-18 2014-01-23 Accedian Networks Inc. Systems and methods of detecting and assigning ip addresses to devices with arp requests
CN104378456A (en) * 2014-11-20 2015-02-25 无锡悟莘科技有限公司 Allocation optimization method for IP addresses in local area network
CN106131235A (en) * 2016-06-28 2016-11-16 上海斐讯数据通信技术有限公司 A kind of IP address configuration method
CN106134164A (en) * 2014-03-26 2016-11-16 高通股份有限公司 The method and apparatus assigned for fast IP address
CN107370647A (en) * 2017-07-25 2017-11-21 郑州云海信息技术有限公司 A kind of method interconnected between LAN system and its internal controller system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140022936A1 (en) * 2012-07-18 2014-01-23 Accedian Networks Inc. Systems and methods of detecting and assigning ip addresses to devices with arp requests
CN106134164A (en) * 2014-03-26 2016-11-16 高通股份有限公司 The method and apparatus assigned for fast IP address
CN104378456A (en) * 2014-11-20 2015-02-25 无锡悟莘科技有限公司 Allocation optimization method for IP addresses in local area network
CN106131235A (en) * 2016-06-28 2016-11-16 上海斐讯数据通信技术有限公司 A kind of IP address configuration method
CN107370647A (en) * 2017-07-25 2017-11-21 郑州云海信息技术有限公司 A kind of method interconnected between LAN system and its internal controller system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347034A (en) * 2021-05-31 2021-09-03 浙江大华技术股份有限公司 Device processing method and device, authentication method and device, and storage medium
CN116233069A (en) * 2023-03-14 2023-06-06 亿航智能设备(广州)有限公司 A method, device, and computer-readable storage medium for dynamically configuring network addresses
CN116233069B (en) * 2023-03-14 2025-04-25 亿航智能设备(广州)有限公司 A network address dynamic configuration method, device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN100377542C (en) Mobile IP communication system and method using dual-stack transition mechanism
CN101515950B (en) Realization method and device for WLAN subnet terminal and wireless access client
CN102148879A (en) Port mapping method and device and communication system
JP2003229856A (en) Communication device and communication control method
CN111212134A (en) Request message processing method and device, edge computing system and electronic equipment
CN106506717B (en) A kind of automatic discovering method and equipment
CN108924274A (en) domain name system DNS processing method, device, storage medium and electronic equipment
CN114338594B (en) ARP (Address resolution protocol) response-substituting method, device, equipment and storage medium in Kubernetes environment
JP2007509566A (en) Handover method, handover apparatus, and information recording medium having instructions for performing the handover method under DHCPv4 environment
CN112689029A (en) Method, device and equipment for acquiring IP address of group user
CN104378222A (en) Communication parameter configuration method, server and intelligent network system
CN102316176B (en) Packet processing and tracing methods, apparatuses thereof and systems thereof
WO2023221708A1 (en) Pdn dialing method, system and apparatus, multi-pdn dialing configuration method, system and apparatus, and device and storage medium
CN112040029A (en) NAT translation method, device, computer equipment and storage medium
CN104243628A (en) Continuous multi-port application method and device
CN111107119B (en) Data access method, device and system based on cloud storage system and storage medium
CN108848200A (en) Equipment adding method, device, equipment and medium in a kind of local area network
CN100382524C (en) Method and arrangement for configuring a device in a data network
WO2016202016A1 (en) Device management method, apparatus and system
US11675510B2 (en) Systems and methods for scalable shared memory among networked devices comprising IP addressable memory blocks
WO2016034006A1 (en) Packet sending method and access device
CN116414515A (en) Information processing method, device, electronic equipment and storage medium
CN101656722B (en) Method for generating dynamic host configuration protocol (DHCP) snooping binding information, and device thereof
CN107800810A (en) A kind of Server remote control method and system
US20250300962A1 (en) Address configuration method and electronic device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181120