CN109286690A - Automatically the method for peer IP is obtained in a kind of local area network - Google Patents

Automatically the method for peer IP is obtained in a kind of local area network Download PDF

Info

Publication number
CN109286690A
CN109286690A CN201810991739.1A CN201810991739A CN109286690A CN 109286690 A CN109286690 A CN 109286690A CN 201810991739 A CN201810991739 A CN 201810991739A CN 109286690 A CN109286690 A CN 109286690A
Authority
CN
China
Prior art keywords
host
address
area network
local area
mac
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
CN201810991739.1A
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.)
Bowa (wuhan) Technology Co Ltd
Original Assignee
Bowa (wuhan) 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 Bowa (wuhan) Technology Co Ltd filed Critical Bowa (wuhan) Technology Co Ltd
Priority to CN201810991739.1A priority Critical patent/CN109286690A/en
Publication of CN109286690A publication Critical patent/CN109286690A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4552Lookup mechanisms between a plurality of directories; Synchronisation of directories, e.g. metadirectories
    • 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/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Automatically the method for peer IP is obtained in a kind of local area network, it is related to field of computer technology, more particularly to a kind of method for obtaining peer IP in local area network automatically, it is the following steps are included: step 1: the server module of the device is run on the first host;Step 2: the MAC of other hosts is registered to the MAC list of the device server module, it is assumed that is MAC1;Step 3: repacking sets server-side and is sent to other hosts in local area network using broadcast technology;Step 4: the second host that the device client modules are run in local area network receives the broadcasting packet;Step 5: the client modules on the second host parse hardware address list MAC1 from message, if the MAC of this host is present in MAC1, will record the IP address and MAC Address of lower other side, if there is no then abandoning the message.After adopting the above technical scheme, the invention has the following beneficial effects: the host of user can obtain the new IP of other hosts in real time when other host ips change in local area network.

Description

Automatically the method for peer IP is obtained in a kind of local area network
Technical field
The present invention relates to field of computer technology, and in particular to obtains the side of peer IP in a kind of local area network automatically Method.
Background technique
With the development of router and switch technology, more and more working teams can utilize in the same local area network Main machine coordination working.One Team Member can not only operate the host of oneself, also can use the IP of other hosts in team Address remotely operates other hosts, to increase working efficiency.
It is configured as in DHCP mode (dynamic host configuration protocol) local area network in a router or interchanger, one Host is during operation or booting replay phase, IP may change.If an other host in local area network at this time The host is remotely grasped, then will fail.Under normal circumstances, staff's peer of having to checks IP address, then The login of oneself host remote is returned, the working efficiency and fluency of staff have been seriously affected.The present apparatus utilizes local area network Interior broadcast technology is realized obtains peer dynamic IP (including during booting is restarted and run) in real time, to avoid above-mentioned feelings Condition.Host IP address can be sent to the institute in the local area network by the device server module by LAN broadcast's technology in real time There is host, if certain host has run the device client modules, will receive the IP address that other hosts are sent, at this time again Distinguish which platform host is the IP address received belong to according to network device hardware address (MAC).
Such as application number: 201210413722.0, a kind of real-time device for obtaining server dynamic IP addressing, the mesh of the invention Be it is real-time obtain client server dynamic IP addressing, reduce expense, the stability realized and maintainability.But through studying, The technology can not be inexpensively conveniently suitable in the local area network of IP dynamic change.In the invention independent claims, " user client End sign-on access proxy server can obtain the dynamic IP for the authorization server that it to be accessed in real time ": if staff thinks The IP address of peer is obtained, then also needs to be separately configured the authorization server of a fixed IP.The situation will lead to work The workload and expense for making personnel greatly increase, and in the local area network for dynamically distributing IP, can not configure a fixed IP Server.These situations illustrate that the invention is not suitable for the local area network with dynamic IP allocation.
Summary of the invention
In view of the defects and deficiencies of the prior art, the present invention intends to provide obtain other side automatically in a kind of local area network The method of host ip, it can reduce workload, reduce operating cost, when increasing working efficiency, when in local area network other When host ip changes, the host of user can obtain the new IP of other hosts in real time.
To achieve the above object, the present invention is using following technical scheme: it the following steps are included:
Step 1: running the server module of the device on the first host, which, which is configured to be switched on, restarts and broadcast mould Formula;
Step 2: expectation is received to the MAC(network device hardware address of other hosts of the host IP address) it is registered to the dress Set the MAC list of server module, it is assumed that be MAC1;
Step 3: server-side is set in repacking can obtain host ip and MAC Address in real time, in addition MAC1, is sent to using broadcast technology Other hosts in local area network;
Step 4: the second host that the device client modules are run in local area network receives the broadcasting packet;
Step 5: the client modules on the second host parse hardware address list MAC1 from message, if this host MAC be present in MAC1, then will record the IP address and MAC Address of lower other side, if there is no the message is then abandoned, otherwise Continue IP address and MAC Address that the first host is parsed from message;
Step 6: the second host is according to the MAC Address of the first host, to distinguish which host is the IP address received belong to.If Host after changing for new host or IP address, then local data base is arrived in storage;
Step 7: staff searches its IP address from the database of the second host using the MAC Address of peer.
The host for running the device server module can be one or more host in same local area network.
After adopting the above technical scheme, reduction operating cost increases the invention has the following beneficial effects: it can reduce workload When working efficiency, when other host ips change in local area network, the host of user can obtain other hosts in real time New IP.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is the working principle of the invention flow diagram.
Specific embodiment
Referring to shown in Fig. 1, present embodiment the technical solution adopted is that: it the following steps are included:
Step 1: running the server module of the device on the first host, which, which is configured to be switched on, restarts and broadcast mould Formula;
Step 2: expectation is received to the MAC(network device hardware address of other hosts of the host IP address) it is registered to the dress Set the MAC list of server module, it is assumed that be MAC1;
Step 3: server-side is set in repacking can obtain host ip and MAC Address in real time, in addition MAC1, is sent to using broadcast technology Other hosts in local area network;
Step 4: the second host that the device client modules are run in local area network receives the broadcasting packet;
Step 5: the client modules on the second host parse hardware address list MAC1 from message, if this host MAC be present in MAC1, then will record the IP address and MAC Address of lower other side, if there is no the message is then abandoned, otherwise Continue IP address and MAC Address that the first host is parsed from message;
Step 6: the second host is according to the MAC Address of the first host, to distinguish which host is the IP address received belong to.If Host after changing for new host or IP address, then local data base is arrived in storage;
Step 7: staff searches its IP address from the database of the second host using the MAC Address of peer.
The key point of the present apparatus be allow device booting to restart and the IP address of real-time broadcast oneself, and client can With MAC Address list in message whether containing oneself MAC Address, if information in remaining packet will not be parsed without if, to reach To the case where preventing IP address information to be exposed to other hosts.
The above is only used to illustrate the technical scheme of the present invention and not to limit it, and those of ordinary skill in the art are to this hair The other modifications or equivalent replacement that bright technical solution is made, as long as it does not depart from the spirit and scope of the technical scheme of the present invention, It is intended to be within the scope of the claims of the invention.

Claims (2)

1. the method for peer IP is obtained in a kind of local area network automatically, it is characterised in that: it the following steps are included:
Step 1: running the server module of the device on the first host, which, which is configured to be switched on, restarts and broadcast mould Formula;
Step 2: expectation is received to the MAC(network device hardware address of other hosts of the host IP address) it is registered to the dress Set the MAC list of server module, it is assumed that be MAC1;
Step 3: server-side is set in repacking can obtain host ip and MAC Address in real time, in addition MAC1, is sent to using broadcast technology Other hosts in local area network;
Step 4: the second host that the device client modules are run in local area network receives the broadcasting packet;
Step 5: the client modules on the second host parse hardware address list MAC1 from message, if this host MAC be present in MAC1, then will record the IP address and MAC Address of lower other side, if there is no the message is then abandoned, otherwise Continue IP address and MAC Address that the first host is parsed from message;
Step 6: the second host is according to the MAC Address of the first host, to distinguish which host is the IP address received belong to;If Host after changing for new host or IP address, then local data base is arrived in storage;
Step 7: staff searches its IP address from the database of the second host using the MAC Address of peer.
2. the method for peer IP is obtained in a kind of local area network according to claim 1 automatically, it is characterised in that: operation The host of the device server module can be one or more host in same local area network.
CN201810991739.1A 2018-08-29 2018-08-29 Automatically the method for peer IP is obtained in a kind of local area network Pending CN109286690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810991739.1A CN109286690A (en) 2018-08-29 2018-08-29 Automatically the method for peer IP is obtained in a kind of local area network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810991739.1A CN109286690A (en) 2018-08-29 2018-08-29 Automatically the method for peer IP is obtained in a kind of local area network

Publications (1)

Publication Number Publication Date
CN109286690A true CN109286690A (en) 2019-01-29

Family

ID=65184135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810991739.1A Pending CN109286690A (en) 2018-08-29 2018-08-29 Automatically the method for peer IP is obtained in a kind of local area network

Country Status (1)

Country Link
CN (1) CN109286690A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1329422A (en) * 2000-06-20 2002-01-02 日本电气株式会社 Local network path control system capable of changing active terminal
US20110238800A1 (en) * 2010-03-29 2011-09-29 Brother Kogyo Kabushiki Kaisha Communication apparatus and storing medium
CN106067906A (en) * 2016-05-25 2016-11-02 浙江大华技术股份有限公司 A kind of method of reconnect and monitoring device
CN106921610A (en) * 2015-12-25 2017-07-04 华为技术有限公司 Access control method and the network equipment
CN107529133A (en) * 2017-09-06 2017-12-29 广东欧珀移动通信有限公司 Data transmission method, device, storage medium and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1329422A (en) * 2000-06-20 2002-01-02 日本电气株式会社 Local network path control system capable of changing active terminal
US20110238800A1 (en) * 2010-03-29 2011-09-29 Brother Kogyo Kabushiki Kaisha Communication apparatus and storing medium
CN106921610A (en) * 2015-12-25 2017-07-04 华为技术有限公司 Access control method and the network equipment
CN106067906A (en) * 2016-05-25 2016-11-02 浙江大华技术股份有限公司 A kind of method of reconnect and monitoring device
CN107529133A (en) * 2017-09-06 2017-12-29 广东欧珀移动通信有限公司 Data transmission method, device, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
US9798572B2 (en) Virtual machine migration method, switch, and virtual machine system
US10187459B2 (en) Distributed load balancing system, health check method, and service node
US10104614B2 (en) Method for waking up access point device, device, and system
CN103841179B (en) cloud desktop system
CN101282328B (en) Method for accessing internet inner-network Web service
WO2016197866A1 (en) Network wake-up method, remote server, and network switching device
CN110071984A (en) A kind of network identity mapping method and system and terminal, mark gateway
US20080089323A1 (en) System and method for assigning virtual local area networks
CN107070691A (en) Docker containers across host communication method and system
US20130007253A1 (en) Method, system and corresponding device for load balancing
US10884768B2 (en) Solution which can improve VDI user experience automatically
CN103152200B (en) Virtual machine migration method, switch, network management device and network system
EP2584742A1 (en) Method and switch for sending packet
US20150288581A1 (en) Ipv6 address tracing method, apparatus, and system
JP4361803B2 (en) Method and apparatus for borrowing parameters for network address translator configuration
CN109327335A (en) A kind of cloud monitoring solution system and method
US9985840B2 (en) Container tracer
US9130938B2 (en) Method, switch, and system for processing a message
CN104253878A (en) VLAN (Virtual Local Area Network) information management system and method of DHCP (Dynamic Host Configuration Protocol) RELAY termination sub-interface
US20190342171A1 (en) Autonomous configuration system for a service infrastructure
CN103327136A (en) Method for managing ip address of server management network card under dhcp network
CN107995124A (en) Traffic scheduling method and device
CN100505735C (en) Conversation managing method for multi-node intelligent network application service system
CN109286690A (en) Automatically the method for peer IP is obtained in a kind of local area network
CN109151859B (en) Multi-machine test method for AP (access point) product without fixed IP (Internet protocol) at network port

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190129