Nothing Special   »   [go: up one dir, main page]

CN104468543B - The access method and device of a kind of lan device - Google Patents

The access method and device of a kind of lan device Download PDF

Info

Publication number
CN104468543B
CN104468543B CN201410695919.7A CN201410695919A CN104468543B CN 104468543 B CN104468543 B CN 104468543B CN 201410695919 A CN201410695919 A CN 201410695919A CN 104468543 B CN104468543 B CN 104468543B
Authority
CN
China
Prior art keywords
equipment
main frame
list
address
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410695919.7A
Other languages
Chinese (zh)
Other versions
CN104468543A (en
Inventor
刘岸
邓凡
邓一凡
侯旭勃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201410695919.7A priority Critical patent/CN104468543B/en
Publication of CN104468543A publication Critical patent/CN104468543A/en
Application granted granted Critical
Publication of CN104468543B publication Critical patent/CN104468543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention is applied to communication technical field, there is provided the access method and device of a kind of lan device, including:First equipment monitors the packet of other equipment broadcast in same LAN;First equipment creates the list of devices page according to the packet listened to, and the device identification of first equipment and the second equipment is illustrated in the list of devices page, and second equipment is the equipment for possessing identical login domain name with first equipment;When main frame is by logging in the first equipment described in domain name access, first equipment returns to the list of devices page to the main frame;The IP address for the equipment that first equipment is selected according to the main frame, by the administration page of the list of devices page jump to the equipment.The present invention can be under the premise of network topology structure for not changing LAN, and the equipment asked by interception main frame DNS query is redirected by webpage, to realize the access of the identical equipment for logging in domain name of other in main frame local area network.

Description

The access method and device of a kind of lan device
Technical field
The invention belongs to the access method and device of the communications field, more particularly to a kind of lan device.
Background technology
In a local network, it is necessary to which the administration page of lan device can be logged in by accessing specific IP address, with net Network device category it is increasing, different lan devices corresponds to different IP address, it has not been convenient to user remember, therefore, mesh Preceding more appearance that above mentioned problem is avoided using domain logon technology.
In domain logon technology, lan device would generally pre-set not revisable login domain name, such as Abc.com, when main frame accesses the domain name for the first time by browser, lan device can intercept browser automatically and send DNS query is asked, and is then back to the DNS responses for the IP address for carrying the lan device, then, is achieved that the LAN Successful binding of the IP address of equipment on main frame, directly inputs in main frame and logs in domain name corresponding to the lan device, with regard to energy The IP address of the LAN is enough accessed, so as to log in corresponding administration page.
At present, above-mentioned domain logon technology has the disadvantage that:When multiple identical login domain names in same LAN being present Lan device when, main frame can not independently select corresponding to the login domain name that wherein a lan device conducts interviews.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of access method of lan device, it is intended to which same local is worked as in solution When the lan device of multiple identical login domain names in net be present, main frame can not independently select a wherein lan device to carry out The problem of access.
The embodiment of the present invention is achieved in that a kind of access method of lan device, including:
First equipment monitors the packet of other equipment broadcast in same LAN, and the information that the packet carries includes Broadcast login domain name, device identification and the IP address of the equipment of the packet;
First equipment creates the list of devices page according to the packet listened to, is shown in the list of devices page The device identification of first equipment and the second equipment, second equipment are to possess identical login domain with first equipment The equipment of name;
When main frame is by logging in the first equipment described in domain name access, set described in first equipment to main frame return Standby original list, so that the main frame selectes one of equipment shown in the list of devices page;
The IP address for the equipment that first equipment is selected according to the main frame, the list of devices page jump extremely should The administration page of equipment, to realize access of the main frame to the equipment.
The another object of the embodiment of the present invention is to provide a kind of access mechanism of lan device, including;
Monitoring unit, the packet of other equipment broadcast in same LAN, the packet are monitored for the first equipment The information of carrying includes login domain name, device identification and the IP address for broadcasting the equipment of the packet;
Creating unit, the list of devices page, the equipment are created according to the packet listened to for first equipment The device identification of first equipment and the second equipment is illustrated in original list, second equipment is and first equipment Possesses the equipment of identical login domain name;
First returning unit, for when main frame is by logging in the first equipment described in domain name access, first equipment to The main frame returns to the list of devices page, so that the main frame selectes one of them shown in the list of devices page Equipment;
Jump-transfer unit, the IP address for the equipment selected for first equipment according to the main frame, the equipment is arranged Table page jump to the equipment administration page, to realize access of the main frame to the equipment.
The embodiment of the present invention can be under the premise of network topology structure for not changing LAN, by interception main frame DNS The equipment of inquiry request is redirected by webpage, to realize the access of the identical equipment for logging in domain name of other in main frame local area network.
Brief description of the drawings
Fig. 1 is the implementation process figure of the access method of lan device provided in an embodiment of the present invention;
Fig. 2 is the flow chart of lan device broadcast data packet provided in an embodiment of the present invention;
Fig. 3 is the implementation process figure of the access method for the lan device that another embodiment of the present invention provides;
Fig. 4 is the implementation process figure of the access method for the lan device that another embodiment of the present invention provides;
Fig. 5 is the structured flowchart of the access mechanism of lan device provided in an embodiment of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 show the implementation process of the access method of lan device provided in an embodiment of the present invention, it is necessary to explanation It is that in the following embodiments, " first equipment " and " second equipment " does not have difference in function realization, is intended merely to Convenient description, the equipment that the DNS query request that main frame is sent is intercepted during main frame access equipment is referred to as " the first equipment ", To be located at the first equipment in same LAN, and with the first equipment possess it is identical login domain name equipment be referred to as " second sets It is standby ", no longer illustrate one by one in subsequent embodiment.
Details are as follows for implementation process shown in Fig. 1:
In S101, the first equipment monitors the packet of other equipment broadcast in same LAN, and the packet carries Information include broadcast the packet equipment login domain name, device identification and IP address.
In the present embodiment, all devices in same LAN (including " first equipment " referred in S101) are equal Every preset time in the LAN broadcast data packet, in the packet of device broadcasts, at least carry stepping on for the equipment Record domain name, device identification and IP address.
Wherein, it is that the equipment is pre-configured when dispatching from the factory to log in domain name, for example, abc.com, is taken by domain name mapping It is engaged in (Domain Name Service, DNS), the DNS request on the domain name that equipment can be sent according to main frame, by the domain Name is parsed into the IP address of the equipment, and IP address is carried and returns to main frame in DNS responses, should to enable the host to basis IP address successfully accesses the equipment.
Device identification, for can in a LAN one equipment of unique mark character string, for example, can be equipment Model (if the model of the equipment in LAN unique), or, can be equipment the serial number that dispatches from the factory, or, can be with For medium access control (Media Access Control, MAC) address of equipment.
IP address, in the present embodiment, the logical address being allocated in a local network at it for equipment, for example, 192.168.1.12, main frame can directly have access to the administration page of the equipment, in other words, main frame by the IP address of equipment The access to the equipment can be realized by the IP address of equipment.
The flow chart of device broadcasts packet is as shown in Fig. 2 the good preset time of device configuration, for example, 5 seconds, is performing Once after broadcast action, equipment starts timing, if timing continues waiting for, until timing, this is super not less than the preset time Preset time has been crossed, then has performed broadcast action again.The mode of above-mentioned fixed time broadcast packet causes that is accessed in LAN to set Standby relevant information can be refreshed in time.
In S102, first equipment creates the list of devices page, the list of devices according to the packet listened to The device identification of first equipment and the second equipment is illustrated in the page, second equipment is to possess with first equipment The identical equipment for logging in domain name.
In the present embodiment, the first equipment can listen to the packet that the other equipment in addition to its own is broadcasted, First equipment extracts carry and the first equipment identical login domain wherein by being parsed to the packet listened to The packet of name, and the list of devices page is created according to the packet extracted.
In the list of devices page of establishment, the interior all devices under same login domain name of this LAN are illustrated each Device identification, including the device identification of the first equipment and the device identification of the second equipment, wherein, possess with the first equipment identical The second equipment for logging in domain name may have more, then, it is necessary to which this more second equipment are represented one by one in the list of devices page Displaying.Further, in the list of devices page, the respective IP address of the said equipment can also be shown.Pass through list of devices page Face, the correlation circumstance of all devices using same login domain name can be shown, in order to which main frame therefrom selects in subsequent step Select the equipment for needing to log in.
In S103, when main frame is by logging in the first equipment described in domain name access, first equipment is to the main frame The list of devices page is returned to, so that the main frame selectes one of equipment shown in the list of devices page.
When login domain name of the main frame by the equipment of browser access first, main frame sends the DNS query for carrying the domain name Request, the first equipment intercept DNS query request, and the DNS responses for the IP address for carrying the first equipment are returned to main frame, main Machine the analysis result using the IP address of the first equipment as DNS, sends access the IP again after DNS responses are received Webpage corresponding to the IP address is redirected to the list of devices page of its establishment by the request of address, now, the first equipment, so as to The related data of the list of devices page is returned to main frame, main frame is after completing data and downloading, the wash with watercolours in its local browser Contaminate the list of devices page.Based on content shown in the list of devices page, user can be operated in a browser, so that Main frame selectes one of equipment shown in the list of devices page, and the equipment is that user wishes to set by what main frame accessed It is standby.
It should be noted that in S103, the first equipment intercept DNS query request that main frame sends to realize, it is necessary to Meet any one following situation:
First, the first equipment and main frame are direct-connected, and in the gateway path of main frame;
2nd, the first equipment is located at the DNS query request of main frame and is sent on the path of dns server, and is on the path the The equipment of one DNS query request for collecting main frame.
In S104, the IP address for the equipment that first equipment is selected according to the main frame, by the list of devices page Face jumps to the administration page of the equipment, to realize access of the main frame to the equipment.
The selected equipment of main frame can return to the first equipment as web page access data in S103, thus, the first equipment Just the equipment that main frame is actually needed access is known, then now, the IP address for the equipment that the first equipment is selected according to main frame, will be set Standby original list jumps to the administration page of the equipment, and the data of the administration page are sent into main frame, so that the sheet of main frame Ground browser renders the administration page, and the access of equipment is selected to realize main frame to it.
The lan device access method illustrated by above-described embodiment, can not change the network topology knot of LAN Under the premise of structure, the equipment asked by interception main frame DNS query is redirected by webpage, to realize other in main frame local area network The access of the identical equipment for logging in domain name.Meanwhile the above method goes for all support IP protocol stacks and domain in LAN The equipment of name login techniques, it is applied widely.
As one embodiment of the present of invention, after S102, HTTP that the first equipment can be sent by parsing main frame Host fields in request message in head (Header), judging access of this main frame to it is entered by logging in domain name It is capable, or directly carried out by IP address.When judging that main frame is to access the first equipment by logging in domain name, then Perform Fig. 1 embodiments in S103, and if judge that main frame is to access the first equipment by IP address, as shown in figure 3, In S105, the first equipment returns to the administration page of the first equipment to main frame.That is, under the situation, the first equipment can be bright True main frame is actual, and desire access to is exactly the first equipment, then now, the first equipment no longer to main frame returning equipment original list, But the administration page of the first equipment is directly returned to main frame, the correlation step that main frame selectes equipment is eliminated, is which thereby enhanced The access efficiency of equipment in main frame local area network.
As another embodiment of the present invention, as shown in figure 4, after S101, methods described also includes:
S106, when first equipment does not hear the packet for carrying same login domain name, if main frame During by logging in the first equipment described in domain name access, first equipment returns to the management page of first equipment to the main frame Face.
In the present embodiment, if the first equipment is by monitoring, the data for carrying same login domain name are not heard It Bao Shi, then may determine that in same LAN possess the equipment of same domain name in the absence of with it, then now, first sets It is standby no longer to create the list of devices page, in this case, if main frame, by logging in the equipment of domain name access first, the first equipment is straight Connect and the administration page of its own is returned to main frame, realize access of the main frame to the first equipment, thus improve main frame local area network and set Standby access efficiency.
Based on Fig. 1 of the present invention to embodiment illustrated in fig. 4, Fig. 5 shows lan device provided in an embodiment of the present invention The structured flowchart of access mechanism, the device can be located at support IP protocol stack and support domain name login techniques lan device it In, for running the access method of the lan device described in Fig. 1 of the present invention to Fig. 4 embodiments.For convenience of description, only show Part related to the present embodiment.
Reference picture 5, the device include:
Monitoring unit 51, the first equipment monitor the packet of other equipment broadcast in same LAN, and the packet is taken The information of band includes login domain name, device identification and the IP address for broadcasting the equipment of the packet.
Creating unit 52, first equipment create the list of devices page, the equipment row according to the packet listened to The device identification of first equipment and the second equipment is illustrated in the table page, second equipment is to have with first equipment The equipment of standby identical login domain name.
First returning unit 53, when main frame is by logging in the first equipment described in domain name access, first equipment is to institute State main frame and return to the list of devices page, set so that the main frame selectes shown in the list of devices page one of them It is standby.
Jump-transfer unit 54, the IP address for the equipment that first equipment is selected according to the main frame, by the list of devices Page jump to the equipment administration page, to realize access of the main frame to the equipment.
Alternatively, described device also includes:
Radio unit, first equipment broadcast the packet every preset time in the LAN.
Alternatively, described device also includes:
Second returning unit, when the main frame accesses first equipment by IP address, first equipment is to institute State the administration page that main frame returns to first equipment.
Alternatively, described device also includes:
3rd returning unit, the packet of same login domain name is carried when first equipment is not heard When, if main frame accesses the login domain name, first equipment returns to the administration page of first equipment to the main frame.
Alternatively, the IP address of first equipment and second equipment is also illustrated in the list of devices page.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. access method of lan device, it is characterised in that including;
    First equipment monitors the packet of other equipment broadcast in same LAN, and the information that the packet carries includes broadcast Login domain name, device identification and the IP address of the equipment of the packet;
    First equipment creates the list of devices page according to the packet listened to, and institute is illustrated in the list of devices page State the device identification of the first equipment and the second equipment, second equipment to be located at first equipment in same LAN and Possesses the equipment of identical login domain name;
    First equipment intercepts the carrying DNS query request for logging in domain name that main frame is sent, and is returned to the main frame Carry the DNS responses of the IP address of first equipment, solution of the main frame using the IP address of first equipment as DNS Result is analysed, sends the request for accessing the IP address again, after first equipment receives the request, to described in main frame return The list of devices page, so that the main frame selectes one of equipment shown in the list of devices page;
    The IP address for the equipment that first equipment is selected according to the main frame, by the list of devices page jump to the equipment Administration page, to realize access of the main frame to the equipment.
  2. 2. the method as described in claim 1, it is characterised in that methods described also includes:
    First equipment broadcasts the packet every preset time in the LAN.
  3. 3. method as claimed in claim 1 or 2, it is characterised in that methods described also includes:
    When the main frame accesses first equipment by IP address, first equipment returns to described first to the main frame The administration page of equipment.
  4. 4. method as claimed in claim 1 or 2, it is characterised in that the number broadcasted in LAN is monitored in first equipment After bag, methods described also includes:
    When first equipment does not hear the packet for carrying same login domain name, if being stepped on described in main frame access Domain name is recorded, first equipment returns to the administration page of first equipment to the main frame.
  5. 5. the method as described in claim 1, it is characterised in that first equipment is also illustrated in the list of devices page With the IP address of second equipment.
  6. A kind of 6. access mechanism of lan device, it is characterised in that including;
    Monitoring unit, the packet of other equipment broadcast in same LAN is monitored for the first equipment, and the packet carries Information include broadcast the packet equipment login domain name, device identification and IP address;
    Creating unit, the list of devices page, the list of devices are created according to the packet listened to for first equipment The device identification of first equipment and the second equipment is illustrated in the page, second equipment is to be located at first equipment Same LAN is interior and possesses the equipment of identical login domain name;
    First returning unit, for intercepting the carrying DNS query request for logging in domain name that main frame sends, and to the main frame The DNS responses for the IP address for carrying first equipment are returned to, the main frame is using the IP address of first equipment as DNS Analysis result, send again access the IP address request, after receiving the request, the first returning unit, be additionally operable to described Main frame returns to the list of devices page, is set so that the main frame selectes shown in the list of devices page one of them It is standby;
    Jump-transfer unit, the IP address for the equipment selected for first equipment according to the main frame, by the list of devices page Face jumps to the administration page of the equipment, to realize access of the main frame to the equipment.
  7. 7. device as claimed in claim 6, it is characterised in that described device also includes:
    Radio unit, the packet is broadcasted in the LAN every preset time for first equipment.
  8. 8. device as claimed in claims 6 or 7, it is characterised in that described device also includes:
    Second returning unit, for when the main frame accesses first equipment by IP address, first equipment is to institute State the administration page that main frame returns to first equipment.
  9. 9. device as claimed in claims 6 or 7, it is characterised in that described device also includes:
    3rd returning unit, for carrying the packet of same login domain name when first equipment is not heard When, if main frame accesses the login domain name, first equipment returns to the administration page of first equipment to the main frame.
  10. 10. device as claimed in claim 6, it is characterised in that described first is also illustrated in the list of devices page and is set The IP address of standby and described second equipment.
CN201410695919.7A 2014-11-26 2014-11-26 The access method and device of a kind of lan device Active CN104468543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410695919.7A CN104468543B (en) 2014-11-26 2014-11-26 The access method and device of a kind of lan device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410695919.7A CN104468543B (en) 2014-11-26 2014-11-26 The access method and device of a kind of lan device

Publications (2)

Publication Number Publication Date
CN104468543A CN104468543A (en) 2015-03-25
CN104468543B true CN104468543B (en) 2018-02-13

Family

ID=52913915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410695919.7A Active CN104468543B (en) 2014-11-26 2014-11-26 The access method and device of a kind of lan device

Country Status (1)

Country Link
CN (1) CN104468543B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411542A (en) * 2015-07-27 2017-02-15 中兴通讯股份有限公司 Method and device of realizing device search
CN110602092B (en) * 2019-09-12 2022-03-04 福建深空信息技术有限公司 Method for only allowing designated IP to update website based on process forwarding
CN111526189A (en) * 2020-04-13 2020-08-11 恒安嘉新(北京)科技股份公司 Equipment monitoring method and device, computer equipment and storage medium
CN116112469B (en) * 2023-04-14 2023-06-06 杭州云缔盟科技有限公司 Method, system and application for reporting host name information in local area network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262477A (en) * 2007-03-09 2008-09-10 国际商业机器公司 System and method for detecting multiple IP address
CN102469166A (en) * 2010-10-29 2012-05-23 国际商业机器公司 Method for providing virtual domain name system (DNS) in local area network, terminal equipment and system
CN103916492A (en) * 2014-04-11 2014-07-09 深信服网络科技(深圳)有限公司 Network device access control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6766379B2 (en) * 2002-09-03 2004-07-20 Motorola, Inc. Providing multiple unicast resource records to domain name servers for indication of simultaneously sending multiple unicast messages to different IP destinations that share a common domain name

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262477A (en) * 2007-03-09 2008-09-10 国际商业机器公司 System and method for detecting multiple IP address
CN102469166A (en) * 2010-10-29 2012-05-23 国际商业机器公司 Method for providing virtual domain name system (DNS) in local area network, terminal equipment and system
CN103916492A (en) * 2014-04-11 2014-07-09 深信服网络科技(深圳)有限公司 Network device access control method and device

Also Published As

Publication number Publication date
CN104468543A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN102594652B (en) Migration method of virtual machine, switch and virtual machine system
CN104468543B (en) The access method and device of a kind of lan device
CN102299969B (en) Web accessing method, layer seven switching equipment and service network
EP2787742B1 (en) Method and system for transmitting network video
AU2001247630A1 (en) Method and apparatus for coordinating a change in service provider between a client and a server with identity based service access management
US9973399B2 (en) IPV6 address tracing method, apparatus, and system
WO2004071055A3 (en) System and method for control of packet data serving node election in a mobile internet protocol network
CN110061993B (en) Log generation method and device containing public network exit address and access equipment
CN106936943A (en) The distribution method and system of virtual machine address
US10285038B2 (en) Method and system for discovering user equipment in a network
CN106302839A (en) The distribution method of internet protocol address and device
CN105827747A (en) Website access method, client and server within local area network
CN103974237B (en) Motion management method and entity
CN104253878B (en) The vlan information management system and method for DHCP RELAY termination sub-interfaces
CN103401954B (en) The implementation method of virtual DHCP
CN102594839B (en) Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards
EP3089422B1 (en) Content distribution method, apparatus and system
US8843644B2 (en) Method and apparatus for enabling a management system to interface with managed devices
CN107105337A (en) Radio multimedium playing method and device
CN104009999B (en) Prevent method, device and network access server that ARP is cheated
CN106533984B (en) A kind of cut-in method and device of social resources
CN102957755B (en) A kind of address resolution method, device and information transferring method
CN105429880B (en) The network equipment and its method for carrying out routing forwarding
CN105554039B (en) A kind of portal authentication method and Verification System of wireless network
CN104734867B (en) Network service node fault handling method, apparatus and system

Legal Events

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