WO2017124728A1 - 一种获取路由器配置的方法及装置 - Google Patents

一种获取路由器配置的方法及装置 Download PDF

Info

Publication number
WO2017124728A1
WO2017124728A1 PCT/CN2016/093125 CN2016093125W WO2017124728A1 WO 2017124728 A1 WO2017124728 A1 WO 2017124728A1 CN 2016093125 W CN2016093125 W CN 2016093125W WO 2017124728 A1 WO2017124728 A1 WO 2017124728A1
Authority
WO
WIPO (PCT)
Prior art keywords
router
management
configuration information
password
client
Prior art date
Application number
PCT/CN2016/093125
Other languages
English (en)
French (fr)
Inventor
陆华兴
陈燕
陆沁宇
邱腾渊
曹力
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017124728A1 publication Critical patent/WO2017124728A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/742Route cache; Operation thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • This application relates to, but is not limited to, the field of communication technology.
  • Wireless routers especially home wireless routers, have two main configurations.
  • One of the configuration methods is to connect the local area network (LAN) of the router to the client by using a network cable, and then log in to the wireless router for configuration.
  • LAN local area network
  • the user needs to provide a broadband network access account and an access password. If the user needs to replace the router, if the user forgets the broadband network access account or the access password, the router cannot be configured frequently.
  • the client device must be connected, and the router cannot be configured in the absence of the client device.
  • the configuration method is: connecting the second router to the WAN interface (Wide Area Network, WAN for short) of the first router by using the network cable, and the second router can directly copy the configuration of the first router to obtain the broadband network access account and access.
  • the password prevents the user from successfully configuring the router because he has forgotten the broadband network access account and access password.
  • it is still necessary to use a network cable to connect the first router with the second router to obtain the configuration of the first router.
  • This document provides a method and apparatus for obtaining a router configuration to solve the problem that the related technology cannot configure the router if the broadband network access account and the access password are forgotten, and/or the network cable is lacking.
  • a method for obtaining a router configuration including:
  • the second router receives a handover instruction that is switched to the client
  • the second router switches to the client according to the switching instruction
  • the second router accesses the first router as the client, and acquires configuration information from the first router, where the configuration information includes a broadband network access account and an access password.
  • the triggering manner of the switching instruction is one of the following manners: double-clicking a predetermined button, long pressing a predetermined button, and a toggle switch.
  • the method further includes:
  • the second router authenticates the management account and the management password of the first router
  • the second router determines that the management authority of the first router is obtained when the authentication is passed.
  • the second router authenticates the management account and the management password of the first router, including:
  • the second router does not obtain the management account and/or the management password of the first router, or obtains the management account and the management password of the first router but the authentication fails, according to the first router.
  • the manufacturer and model determine the management account and management password of the first router;
  • the second router obtains the management account and the management password of the first router from the data dictionary that is included in the second router when the determined management account and the management password fail.
  • the management account and the management password of the first router obtained by the second router are authenticated.
  • the configuration information further includes: wireless fidelity WIFI channel selection information and/or a WIFI password of the first router.
  • the method further includes:
  • the second router saves the configuration information.
  • the second router accesses the first router as the client, and obtains configuration information from the first router, including one of the following:
  • the second router accesses the first router by using a hypertext transfer protocol (HTTP), and analyzes a webpage file that includes a link in the first router homepage to obtain the configuration information.
  • HTTP hypertext transfer protocol
  • the second router accesses the first router by using a remote login protocol TELNET, a secure shell protocol SSH, or a file transfer protocol to obtain the configuration information.
  • An apparatus for obtaining a router configuration is applied to a second router, where the apparatus includes:
  • the receiving module is configured to: receive a switching instruction that is switched to the client;
  • the switching module is configured to: switch to the client according to the switching instruction received by the receiving module;
  • the acquiring module is configured to: the client that is switched after the switching module accesses the first router, and obtains configuration information from the first router, where the configuration information includes a broadband network access account and access password.
  • the device further includes:
  • the authentication module is configured to: after the obtaining module accesses the first router as the client, the management account and the management password of the first router are authenticated;
  • the determining module is configured to: when the authentication module passes the authentication, determine to obtain the management authority of the first router.
  • the obtaining module includes one or more of the following:
  • the first obtaining unit is configured to: access the first router by using a hypertext transfer protocol, and analyze the webpage file including the link in the first router homepage to obtain the configuration information;
  • the second obtaining unit is configured to: access the first router by using a remote login protocol TELNET, a secure shell protocol SSH, or a file transfer protocol to obtain the configuration information.
  • the method and device for obtaining the configuration of the router provided by the embodiment of the present invention, the second router is used as the client to access the first router to obtain the configuration information of the first router, and the implementation is implemented by the present invention.
  • the example solves the problem that the related technology cannot configure the router when forgetting the broadband network access account and the access password, and/or lacking the network cable, and realizes the problem His router gets the configuration information to complete the configuration.
  • FIG. 1 is a flowchart of a method for acquiring a router configuration according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for obtaining a router configuration according to an embodiment of the present invention
  • FIG. 3 is a flowchart of still another method for obtaining a router configuration according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for acquiring a router configuration according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another apparatus for acquiring a router configuration according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of another apparatus for acquiring a router configuration according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for acquiring a router configuration according to an embodiment of the present invention.
  • the method may include the following steps, that is, steps 110 to 130:
  • Step 110 The second router receives a handover instruction that is switched to the client.
  • Step 120 The second router switches to the client according to the switching instruction.
  • Step 130 The second router accesses the first router as a client, and obtains configuration information from the first router, where the configuration information includes a broadband network access account and an access password.
  • the method for obtaining the configuration of the router is to switch the second router to the client, so that the second router serves as the client to access the first router to obtain the configuration information of the first router.
  • Related technologies are forgetting broadband network access accounts and access The password cannot be configured in the case of a password, and/or lack of a network cable, and the configuration information is obtained through other routers to complete the configuration.
  • the triggering manner of the switching instruction may be one of the following manners: double-clicking a predetermined button, long pressing a predetermined button, and a toggle switch.
  • the predetermined button may be a Wireless Fidelity Protected Setup (WPS) button of the second router itself, and may trigger a switching instruction when double-clicking or long-pressing; the predetermined button may also be new Created buttons that trigger a toggle command when clicked, double-clicked, or long pressed.
  • WPS Wireless Fidelity Protected Setup
  • the above switch may be a bidirectional switch, for example, a bidirectional switch that can support the second router to switch between the router and the client.
  • the second router may access the first router after acquiring the management authority of the first router.
  • FIG. 2 is a flowchart of another method for obtaining a router configuration according to an embodiment of the present invention. On the basis of the embodiment shown in FIG. 1 , the method provided in this embodiment may be performed before step 130. The method includes the following steps: Steps 121 to 122: The second router obtains the management authority of the first router. In an actual application, the implementation manner of obtaining the management authority of the first router may include the following steps: Step 121 to Step 122:
  • Step 121 The second router authenticates the management account and the management password of the first router.
  • Step 122 The second router determines that the management authority of the first router is obtained when the authentication is passed.
  • the second router does not obtain the management account and/or the management password of the first router, or obtains the management account and the management password of the first router but the authentication fails. And executing, determining, according to the manufacturer and model of the first router, the management account and the management password of the first router; if the second router fails to authenticate the determined management account and the management password, the second router may further perform: The management account and the management password of the first router are obtained from the data dictionary configured by the second router; thus, the second router can authenticate the obtained management account and management password of the first router.
  • the second router may obtain the management authority for the first router by using the authentication.
  • the second router may further perform: saving, by the second router, the configuration information, so that the second router does not need to Get configuration information.
  • step 130 is provided on the basis of the embodiment shown in FIG. Implementations may include step 131 or step 132:
  • Step 131 The second router accesses the first router by using a HyperText Transfer Protocol (HTTP), and analyzes the webpage file included in the first router home page to obtain configuration information.
  • HTTP HyperText Transfer Protocol
  • Step 132 The second router accesses the first router by using a remote login protocol (Teletype Network, telnet), a secure shell protocol (Secure Shell, SSH for short), or a file transfer protocol (FTP). , get configuration information.
  • a remote login protocol Teletype Network, telnet
  • a secure shell protocol Secure Shell, SSH for short
  • FTP file transfer protocol
  • the configuration information may include: a wireless Fidelity (WIFI) channel selection of the first router, in addition to the broadband network access account and the access password. And / or WIFI password to enhance the online experience.
  • WIFI refers to the wireless local area network of the IEEE 802.11b standard defined by the Institute of Electrical and Electronics Engineers (IEEE).
  • FIG. 4 is a schematic structural diagram of an apparatus for acquiring a router configuration according to an embodiment of the present invention.
  • the apparatus for acquiring a router configuration provided by this embodiment includes: a receiving module 10, a switching module 20, and an obtaining module 30. A brief description of each module follows:
  • the receiving module 10 is configured to: receive a switching instruction that is switched to the client;
  • the switching module 20 is configured to switch to the client according to the switching instruction received by the receiving module 10;
  • the obtaining module 30 is configured to: the client that is switched after the switching module 20 accesses the first router, and obtains configuration information from the first router, where the configuration information includes a broadband network access account and an access password.
  • FIG. 5 is a schematic structural diagram of another apparatus for acquiring a router configuration according to an embodiment of the present invention.
  • the apparatus for acquiring a router configuration provided by the embodiment may further include:
  • the authentication module 40 is configured to: before the obtaining module 30 serves as the client to access the first router, the management account and the management password of the first router are authenticated.
  • the determining module 50 is configured to: when the authentication module 40 passes the authentication, determine to obtain the management authority of the first router.
  • the foregoing authentication module 40 may include: a determining unit, a obtaining unit, and an authenticating unit.
  • the determining unit is configured to: according to the management account and/or the management password of the first router, or the management account and the management password of the first router but fail the authentication, according to the manufacturer of the first router and The model determines the management account and management password of the first router.
  • the obtaining unit is configured to: obtain the management account and the management password of the first router from the data dictionary configured by the second router if the management account and the management password authentication determined by the determining unit fail.
  • the authentication unit is configured to: obtain the management account and the management password of the first router obtained by the authentication unit.
  • FIG. 6 is a schematic structural diagram of another apparatus for acquiring a router configuration according to an embodiment of the present invention, which is shown as an example on the structure of the apparatus shown in FIG. 4, where the acquiring module 30 is used in this embodiment.
  • the first obtaining unit 31 is configured to: access the first router by using a hypertext transfer protocol (abbreviated as HTTP), analyze the webpage file including the link in the first router home page, and obtain configuration information;
  • HTTP hypertext transfer protocol
  • the second obtaining unit 32 is configured to access the first router by using a remote login protocol (TELNET), a secure shell protocol (SSH), or a file transfer protocol (referred to as FTP) to obtain configuration information.
  • TELNET remote login protocol
  • SSH secure shell protocol
  • FTP file transfer protocol
  • the embodiment shown in FIG. 6 shows that the obtaining module 30 includes the first obtaining unit 31 and the second obtaining unit 32.
  • the obtaining module 30 in the embodiment of the present invention may also include only the first obtaining unit 31 or the second acquiring.
  • the obtaining module 30 in the embodiment shown in FIG. 6 can also be applied to the device for obtaining the router configuration provided by the embodiment shown in FIG. 5.
  • the WIFI Protected Setup (WIFI Protected Setup, also referred to as WPS) is a certification project implemented by the Wi-Fi Alliance and can be used to simplify wireless network setup and wireless network encryption.
  • WPS supports button configuration mode (Push Button Configuration, referred to as: PBC). In this mode, the WPS button on the wireless access node (AP) is pressed, and the PBC soft button on the client network card is pressed for a certain period of time to establish a relationship between the client and the AP. connection. Alternatively, the above certain time may be 2 minutes.
  • a wireless router that supports WPS technology can establish a connection with a client device through the PBC.
  • the switching instructions include, but are not limited to, one or a combination of a touch touch key, a push button, a toggle switch, gesture movement.
  • the above button can be a WPS button or a new switch button for the device.
  • the above pressing action may be a long press button, a double tap button or a click switch button.
  • the second router as a client device, obtains an Internet Protocol (IP) address of the local end and the first router.
  • IP Internet Protocol
  • the second router can obtain the IP address assigned by the DHCP to the local end and the IP address of the DHCP server through the dynamic host configuration protocol (DHCP).
  • DHCP dynamic host configuration protocol
  • the second router accesses the IP address of the first router through the management account and the management password of the first router, analyzes the hyperlink webpage file included in the homepage, and stores the webpage file containing the hyperlink address into the memory or other storage device.
  • the broadband network access account and the access password are parsed, and the configuration data is read to the second router.
  • the reading the configuration data to the second router includes: reading the parsed broadband network access account and the access password into the memory, and the second router reads the configuration data read into the memory to the other storage device. .
  • the reading the configuration data to the second router may further include: directly reading the parsed broadband network access account and the access password into the storage device.
  • the second router accesses the first router, analyzes the hyperlink address included in the first router homepage, and parses the parameter value in the webpage according to the analysis result, and according to the parameter value, the configuration of the second router can be changed to It is consistent with the configuration of the first router, thus effectively improving the online experience.
  • the value of the parameter is not limited to the broadband access account and the access password of the first router, and may also include a WIFI channel, a WIFI password, and a maximum transmission unit (MTU) value of the LAN port.
  • MTU maximum transmission unit
  • the second router can also log in to the first router by using TELNET or SSH protocol.
  • the configuration of the first router is transmitted and loaded to the second router by using the configuration display command supported by the first router.
  • the second router parses the received data packet, parses the configuration of the first router, and loads the configuration into the second router. Second router.
  • the second router may also log in to the first router through the FTP protocol, directly download the configuration information of the first router, and the second router parses the configuration file downloaded to the router, and loads the configuration file to the second router.
  • the foregoing router management account and the management password may be authenticated by using a management account and an administrative password added by the user. If the user does not actively add the router management account and management password, or fails to add authentication, the management account and management password can be found from the authentication file according to the model of the first router manufacturer and router. If the authentication fails again, the common management account and password recorded in the data dictionary configured by the second wireless router may also be used for authentication.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the second router is switched to the client, so that the second router is used as the client to access the first router to obtain the configuration information of the first router.
  • the related technology can not configure the router when the broadband network access account and the access password are forgotten, and/or the network cable is lacking, and the configuration information is obtained through other routers to complete the configuration.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种获取路由器配置的方法及装置,其中,该方法包括:第二路由器接收切换为客户端的切换指令;该第二路由器根据该切换指令切换为客户端;该第二路由器作为客户端接入第一路由器,并从该第一路由器获取配置信息,其中,该配置信息包括宽带网络接入账号和接入密码。

Description

一种获取路由器配置的方法及装置 技术领域
本申请涉及但不限于通信技术领域。
背景技术
无线路由器,特别是家用的无线路由器,主要有两种配置方式。其中一种配置方式为:用网线将路由器的局域网(Local Area Network,简称为:LAN)口与客户端相连,继而登录到无线路由器进行配置。该配置方式用户需要提供宽带网络接入账号和接入密码,在用户需要更换路由器的情况下,如果用户忘记宽带网络接入账号或接入密码,则会导致无法配置路由器的情况经常发生。另一方面,采用此种配置方式必须要连接客户端设备,在客户端设备缺失的情况下,无法配置路由器。
为了解决上述问题,相关技术中提供了另一种配置方式。该配置方式为:用网线将第二路由器与第一路由器的广域网接口(Wide Area Network,简称为WAN)相连,第二路由器能够直接复制第一路由器的配置,获取宽带网络接入账号和接入密码,避免了用户因为忘记宽带网络接入账号和接入密码而不能成功配置路由器的情况发生。然而,采取此种配置方式仍然需要使用网线将第一路由器与第二路由器连起来才能够获取第一路由器的配置。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
针对相关技术在忘记宽带网络接入账号和接入密码,和/或缺乏网线的情况下无法配置路由器的问题,还未提出有效的解决方案。
本文提供一种获取路由器配置的方法及装置,以解决相关技术在忘记宽带网络接入账号和接入密码,和/或缺乏网线的情况下无法配置路由器的问题。
一种获取路由器配置的方法,包括:
第二路由器接收切换为客户端的切换指令;
所述第二路由器根据所述切换指令切换为所述客户端;
所述第二路由器作为所述客户端接入第一路由器,并从所述第一路由器获取配置信息,其中,所述配置信息包括宽带网络接入账号和接入密码。
可选地,所述切换指令的触发方式为以下方式之一:双击预定按钮、长按预定按钮、拨动开关。
可选地,所述第二路由器作为所述客户端接入第一路由器之前,所述方法还包括:
所述第二路由器认证所述第一路由器的管理账号和管理密码;
所述第二路由器在认证通过的情况下,确定获取到所述第一路由器的管理权限。
可选地,所述第二路由器认证所述第一路由器的管理账号和管理密码,包括:
所述第二路由器在没有获取到所述第一路由器的管理账号和/或管理密码,或者获取到所述第一路由器的管理账号和管理密码但认证失败的情况下,根据所述第一路由器的厂家和型号确定所述第一路由器的管理账号和管理密码;
所述第二路由器在对确定的管理账号和管理密码认证失败的情况下,从所述第二路由器自带的数据字典中得到所述第一路由器的管理账号和管理密码;
所述第二路由器认证得到的所述第一路由器的管理账号和管理密码。
可选地,所述配置信息还包括:所述第一路由器的无线保真WIFI信道选择信息和/或WIFI密码。
可选地,所述第二路由器从所述第一路由器获取配置信息之后,所述方法还包括:
所述第二路由器保存所述配置信息。
可选地,所述第二路由器作为所述客户端接入所述第一路由器,并从所述第一路由器获取配置信息,包括以下之一:
所述第二路由器通过超文本传输协议HTTP接入所述第一路由器,分析所述第一路由器首页中包含链接的网页文件,获取所述配置信息;
所述第二路由器通过远程登录协议TELNET、安全外壳协议SSH或文件传输协议FTP接入所述第一路由器,获取所述配置信息。
一种获取路由器配置的装置,应用于第二路由器,所述装置包括:
接收模块,设置为:接收切换为客户端的切换指令;
切换模块,设置为:根据所述接收模块接收的所述切换指令切换为所述客户端;
获取模块,设置为:作为所述切换模块切换后的所述客户端接入第一路由器,并从所述第一路由器获取配置信息,其中,所述配置信息包括宽带网络接入账号和接入密码。
可选地,所述装置还包括:
认证模块,设置为:在所述获取模块作为所述客户端接入所述第一路由器之前,认证所述第一路由器的管理账号和管理密码;
确定模块,设置为:在所述认证模块认证通过的情况下,确定获取到所述第一路由器的管理权限。
可选地,所述获取模块包括以下一项或多项:
第一获取单元,设置为:通过超文本传输协议HTTP接入所述第一路由器,分析所述第一路由器首页中包含链接的网页文件,获取所述配置信息;
第二获取单元,设置为:通过远程登录协议TELNET、安全外壳协议SSH或文件传输协议FTP接入所述第一路由器,获取所述配置信息。
本发明实施例提供的获取路由器配置的方法及装置,通过将第二路由器切换为客户端,从而该第二路由器作为客户端接入第一路由器,以获取第一路由器的配置信息;本发明实施例解决了相关技术在忘记宽带网络接入账号和接入密码,和/或缺乏网线的情况下无法配置路由器的问题,实现了通过其 他路由器获取配置信息从而完成配置。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例提供的一种获取路由器配置的方法的流程图;
图2为本发明实施例提供的另一种获取路由器配置的方法的流程图;
图3为本发明实施例提供的又一种获取路由器配置的方法的流程图;
图4为本发明实施例提供的一种获取路由器配置的装置的结构示意图;
图5为本发明实施例提供的另一种获取路由器配置的装置的结构示意图;
图6为本发明实施例提供的又一种获取路由器配置的装置的结构示意图。
本发明的实施方式
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本发明实施例中提供了一种获取路由器配置的方法,图1为本发明实施例提供的一种获取路由器配置的方法的流程图,如图1所示,本实施例提供的获取路由器配置方法可以包括如下步骤,即步骤110~步骤130:
步骤110,第二路由器接收切换为客户端的切换指令;
步骤120,第二路由器根据该切换指令切换为客户端;
步骤130,第二路由器作为客户端接入第一路由器,并从该第一路由器获取配置信息,其中,该配置信息包括宽带网络接入账号及接入密码。
本发明实施例提供的获取路由器配置的方法,通过将第二路由器切换为客户端,从而该第二路由器作为客户端接入第一路由器,以获取第一路由器的配置信息;本发明实施例解决了相关技术在忘记宽带网络接入账号和接入 密码,和/或缺乏网线的情况下无法配置路由器的问题,实现了通过其他路由器获取配置信息从而完成配置。
可选地,在本发明实施例中,上述切换指令的触发方式可以为以下方式之一:双击预定按钮、长按预定按钮、拨动开关。其中,上述预定按钮可以为该第二路由器本身具有的无线保护设置(Wireless Fidelity Protected Setup,简称为:WPS)键,在双击或长按的情况下可以触发切换指令;该预定按钮也可以为新创设的按键,在单击、双击或长按的情况下触发切换指令。上述开关可以为双向开关,例如为可以支持该第二路由器在路由器与客户端两种模式下切换的双向开关。
可选地,在本发明实施例中,第二路由器获取该第一路由器的管理权限后可以接入该第一路由器。如图2所示,为本发明实施例提供的另一种获取路由器配置的方法的流程图,在图1所示实施例的基础上,本实施例提供的方法,在步骤130之前,还可以包括:第二路由器获取该第一路由器的管理权限,在实际应用中,获取第一路由器的管理权限的实现方式可以包括如下步骤,即步骤121~步骤122:
步骤121,第二路由器认证第一路由器的管理账号和管理密码;
步骤122,第二路由器在认证通过的情况下,确定获取到该第一路由器的管理权限。
可选地,在本发明实施例中,该第二路由器在没有获取到该第一路由器的管理账号和/或管理密码,或者获取到该第一路由器的管理账号和管理密码但认证失败的情况下,还可以执行:根据该第一路由器的厂家和型号确定该第一路由器的管理账号和管理密码;该第二路由器在对确定的管理账号和管理密码认证失败的情况下,还可以执行:从该第二路由器配置的数据字典中得到该第一路由器的管理账号和管理密码;从而,该第二路由器可以认证得到的该第一路由器的管理账号和管理密码。通过上述方案,在用户未改动第一路由器的初始管理账号和管理密码的情况下,第二路由器可以通过认证获取对第一路由器的管理权限。
可选地,在本发明实施例中,在第二路由器从第一路由器获取配置信息之后,还可以执行:第二路由器保存该配置信息,从而该第二路由器无需再 次获取配置信息。
可选地,如图3所示,为本发明实施例提供的又一种获取路由器配置的方法的流程图,在图1所示实施例的基础上,本实施例提供的方法,步骤130的实现方式可以包括步骤131或步骤132:
步骤131,第二路由器通过超文本传输协议(HyperText Transfer Protocol,简称为:HTTP)接入第一路由器,分析该第一路由器首页中包含链接的网页文件,获取配置信息;
步骤132,第二路由器通过远程登录协议(Teletype Network,简称为:TELNET)、安全外壳协议(Secure Shell,简称为:SSH)或文件传输协议(File Transfer Protocol,简称:FTP)接入第一路由器,获取配置信息。
可选地,在本发明实施例中,上述配置信息除了包括宽带网络接入账号和接入密码之外,还可以包括:第一路由器的无线保真(Wireless Fidelity,简称为:WIFI)信道选择和/或WIFI密码,从而增进上网体验。WIFI是指电气和电子工程师协会(Institute of Electrical and Electronics Engineers,简称为:IEEE)定义的IEEE 802.11b标准的无线局域网。
图4为本发明实施例提供的一种获取路由器配置的装置的结构示意图,如图4所示,本实施例提供的获取路由器配置的装置包括:接收模块10、切换模块20和获取模块30。下面对每个模块进行简要说明:
接收模块10,设置为:接收切换为客户端的切换指令;
切换模块20,设置为:根据接收模块10接收的切换指令切换为客户端;
获取模块30,设置为:作为切换模块20切换后的客户端接入第一路由器,并从该第一路由器获取配置信息,其中,该配置信息包括宽带网络接入账号和接入密码。
可选地,图5为本发明实施例提供的另一种获取路由器配置的装置的结构示意图,在图4所示装置的结构基础上,本实施例提供的获取路由器配置的装置还可以包括:
认证模块40,设置为:在获取模块30作为客户端接入第一路由器之前,认证该第一路由器的管理账号和管理密码。
确定模块50,设置为:在认证模块40认证通过的情况下,确定获取到该第一路由器的管理权限。
可选地,在本发明实施例中,上述认证模块40可以包括:确定单元、得到单元和认证单元。
其中,确定单元,设置为:在没有获取到第一路由器的管理账号和/或管理密码,或者获取到第一路由器的管理账号和管理密码但认证失败的情况下,根据第一路由器的厂家和型号确定该第一路由器的管理账号和管理密码。
得到单元,设置为:在对确定单元确定的管理账号和管理密码认证失败的情况下,从第二路由器配置的数据字典中得到第一路由器的管理账号和管理密码。
认证单元,设置为:认证得到单元得到的第一路由器的管理账号和管理密码。
可选地,图6为本发明实施例提供的又一种获取路由器配置的装置的结构示意图,以在图4所示装置的结构基础上为例予以示出,本实施例中的获取模块30可以包括以下一项或多项:
第一获取单元31,设置为:通过超文本传输协议(简称HTTP)接入第一路由器,分析该第一路由器首页中包含链接的网页文件,获取配置信息;
第二获取单元32,设置为:通过远程登录协议(简称TELNET)、安全外壳协议(简称SSH)或文件传输协议(简称FTP)接入第一路由器,获取配置信息。
图6所示实施例以获取模块30包括第一获取单元31和第二获取单元32为例予以示出,本发明实施例中的获取模块30也可以仅包括第一获取单元31或第二获取单元32;另外,图6所示实施例中的获取模块30同样可以应用于图5所示实施例提供的获取路由器配置的装置中。
下面结合应用实例对本发明实施例提供的技术方案进行详细说明。
无线保护设置(WIFI Protected Setup,又称WI-FI保护设置,简称为:WPS)是由Wi-Fi联盟组织实施的认证项目,可以用于简化无线网络设置及无线网络加密等工作。WPS支持按钮配置模式(Push Button Configuration,简称为: PBC)。在该方式下只要按下无线访问节点(Access Point,简称为:AP)上的WPS键,并在一定时间内按下客户端网卡上的PBC软按键,即可建立客户端与AP之间的连接。可选地,上述一定时间可以为2分钟。支持WPS技术的无线路由器可以通过PBC与客户端设备建立连接。
当第二路由器需要替换第一路由器时,按下第一路由器的WPS键,使得该第一路由器作为AP支持客户端设备的接入。用户向第二路由器发出切换为客户端的切换指令,寻找附近的AP,并接入所要替换的第一路由器的局域网。该切换指令包括但不限于点触触摸键、按压按键、拨动开关、手势移动的一种或者组合。上述按键可以为WPS键,也可以为设备新设的切换键。上述按压动作可以为长按按键、双击按键或单击切换键。
该第二路由器作为客户端设备获取本端及第一路由器的互联网协议(Internet Protocol,简称为:IP)地址。该第二路由器可通过动态主机配置协议(简称DHCP)的方式获取DHCP分配给本端的IP地址和DHCP服务器端的IP地址。
该第二路由器通过第一路由器的管理账号和管理密码认证,访问第一路由器的IP地址,分析首页所包含的超链接网页文件,将含有超链接地址的网页文件存储到内存或者其他存储设备中,解析宽带网络接入账号和接入密码,读取该配置数据到第二路由器上。上述读取配置数据到第二路由器上包括:将解析得到的宽带网络接入账号和接入密码读取到内存,第二路由器再将读取到内存中的配置数据读取到其他存储设备中。上述读取配置数据到第二路由器上还可以包括:将解析得到的宽带网络接入账号和接入密码直接读取到存储设备中。
可选地,该第二路由器访问第一路由器,分析第一路由器首页所包含的超链接地址,根据该分析结果解析得到网页中的参数值,根据该参数值可以将第二路由器的配置更改为与第一路由器的配置保持一致,从而有效改善上网体验。该参数值不仅限于第一路由器的宽带接入账号和接入密码,还可以包括WIFI信道、WIFI密码,LAN口最大传输单元(Maximum Transmission Unit,简称为:MTU)值。
可选地,该第二路由器也可以通过TELNET、SSH协议登陆到第一路由器, 使用第一路由器支持的配置显示命令将第一路由器配置通过数据报文的方式传输并加载到第二路由器,第二路由器通过解析接受到的数据报文,解析第一路由器的配置,并加载到第二路由器。
可选地,该第二路由器也可以通过FTP协议登陆到第一路由器,直接下载第一路由器的配置信息,第二路由器解析下载到本路由器的配置文件,并加载到第二路由器。
可选地,上述路由器管理账号和管理密码可以使用用户添加的管理账号和管理密码进行认证。在用户未主动添加路由器管理账号和管理密码,或主动添加认证失败的情况下,还可以根据第一路由器厂家和路由器的型号从认证文件中查找得到管理账号和管理密码。若再次认证失败,还可以通过第二无线路由器配置的数据字典中记录的常见管理账号和密码进行认证。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例通过将第二路由器切换为客户端,从而该第二路由器作为客户端接入第一路由器,以获取第一路由器的配置信息;本发明实施例解决 了相关技术在忘记宽带网络接入账号和接入密码,和/或缺乏网线的情况下无法配置路由器的问题,实现了通过其他路由器获取配置信息从而完成配置。

Claims (10)

  1. 一种获取路由器配置的方法,包括:
    第二路由器接收切换为客户端的切换指令;
    所述第二路由器根据所述切换指令切换为所述客户端;
    所述第二路由器作为所述客户端接入第一路由器,并从所述第一路由器获取配置信息,其中,所述配置信息包括宽带网络接入账号和接入密码。
  2. 根据权利要求1所述的方法,其中,所述切换指令的触发方式为以下方式之一:双击预定按钮、长按预定按钮、拨动开关。
  3. 根据权利要求1所述的方法,其中,所述第二路由器作为所述客户端接入所述第一路由器之前,所述方法还包括:
    所述第二路由器认证所述第一路由器的管理账号和管理密码;
    所述第二路由器在认证通过的情况下,确定获取到所述第一路由器的管理权限。
  4. 根据权利要求3所述的方法,其中,所述第二路由器认证所述第一路由器的管理账号和管理密码,包括:
    所述第二路由器在没有获取到所述第一路由器的管理账号和/或管理密码,或者获取到所述第一路由器的管理账号和管理密码但认证失败的情况下,根据所述第一路由器的厂家和型号确定所述第一路由器的管理账号和管理密码;
    所述第二路由器在对确定的管理账号和管理密码认证失败的情况下,从所述第二路由器配置的数据字典中得到所述第一路由器的管理账号和管理密码;
    所述第二路由器认证得到的所述第一路由器的管理账号和管理密码。
  5. 根据权利要求1~4中任一项所述的方法,其中,所述配置信息还包括:所述第一路由器的无线保真WIFI信道选择信息和/或WIFI密码。
  6. 根据权利要求1~4中任一项所述的方法,其中,所述第二路由器从所述第一路由器获取配置信息之后,所述方法还包括:
    所述第二路由器保存所述配置信息。
  7. 根据权利要求1~4中任一项所述的方法,其中,所述第二路由器作为所述客户端接入所述第一路由器,并从所述第一路由器获取配置信息,包括以下之一:
    所述第二路由器通过超文本传输协议HTTP接入所述第一路由器,分析所述第一路由器首页中包含链接的网页文件,获取所述配置信息;
    所述第二路由器通过远程登录协议TELNET、安全外壳协议SSH或文件传输协议FTP接入所述第一路由器,获取所述配置信息。
  8. 一种获取路由器配置的装置,应用于第二路由器,所述装置包括:
    接收模块,设置为:接收切换为客户端的切换指令;
    切换模块,设置为:根据所述接收模块接收的所述切换指令切换为所述客户端;
    获取模块,设置为:作为所述切换模块切换后的所述客户端接入第一路由器,并从所述第一路由器获取配置信息,其中,所述配置信息包括宽带网络接入账号和接入密码。
  9. 根据权利要求8所述的装置,还包括:
    认证模块,设置为:在所述获取模块作为所述客户端接入所述第一路由器之前,认证所述第一路由器的管理账号和管理密码;
    确定模块,设置为:在所述认证模块认证通过的情况下,确定获取到所述第一路由器的管理权限。
  10. 根据权利要求8所述的装置,其中,所述获取模块包括以下一项或多项:
    第一获取单元,设置为:通过超文本传输协议HTTP接入所述第一路由器,分析所述第一路由器首页中包含链接的网页文件,获取所述配置信息;
    第二获取单元,设置为:通过远程登录协议TELNET、安全外壳协议SSH或文件传输协议FTP接入所述第一路由器,获取所述配置信息。
PCT/CN2016/093125 2016-01-21 2016-08-03 一种获取路由器配置的方法及装置 WO2017124728A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610041379.XA CN106992934A (zh) 2016-01-21 2016-01-21 一种获取路由器配置的方法及装置
CN201610041379.X 2016-01-21

Publications (1)

Publication Number Publication Date
WO2017124728A1 true WO2017124728A1 (zh) 2017-07-27

Family

ID=59361981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/093125 WO2017124728A1 (zh) 2016-01-21 2016-08-03 一种获取路由器配置的方法及装置

Country Status (2)

Country Link
CN (1) CN106992934A (zh)
WO (1) WO2017124728A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108134693B (zh) * 2017-12-18 2021-11-26 太仓市同维电子有限公司 路由器的联网参数配置方法、装置、路由器和存储介质
CN109005146A (zh) * 2018-06-04 2018-12-14 青岛海信宽带多媒体技术有限公司 一种获取账号信息的方法及网关
CN110719169A (zh) 2019-11-07 2020-01-21 北京小米移动软件有限公司 传输路由器安全信息的方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110292942A1 (en) * 2010-05-27 2011-12-01 Fujitsu Limited Router, information processing device and program
CN103825910A (zh) * 2014-03-19 2014-05-28 北京极科极客科技有限公司 获取上网认证信息的方法和装置
CN103873307A (zh) * 2014-04-11 2014-06-18 北京极科极客科技有限公司 用于pppoe用户名和密码备份和还原的方法
CN104506360A (zh) * 2014-12-26 2015-04-08 深圳市彩易生活科技有限公司 一种智能设备的入网配置方法、系统及相关设备
CN104767675A (zh) * 2014-01-07 2015-07-08 明泰科技股份有限公司 自动设定网关装置的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110292942A1 (en) * 2010-05-27 2011-12-01 Fujitsu Limited Router, information processing device and program
CN104767675A (zh) * 2014-01-07 2015-07-08 明泰科技股份有限公司 自动设定网关装置的方法
CN103825910A (zh) * 2014-03-19 2014-05-28 北京极科极客科技有限公司 获取上网认证信息的方法和装置
CN103873307A (zh) * 2014-04-11 2014-06-18 北京极科极客科技有限公司 用于pppoe用户名和密码备份和还原的方法
CN104506360A (zh) * 2014-12-26 2015-04-08 深圳市彩易生活科技有限公司 一种智能设备的入网配置方法、系统及相关设备

Also Published As

Publication number Publication date
CN106992934A (zh) 2017-07-28

Similar Documents

Publication Publication Date Title
US11140162B2 (en) Response method and system in virtual network computing authentication, and proxy server
US10601810B2 (en) Private cloud routing server connection mechanism for use in a private communication architecture
EP3308526B1 (en) Single sign-on for managed mobile devices
US11716390B2 (en) Systems and methods for remote management of appliances
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
US20180145968A1 (en) Single sign-on for managed mobile devices
US20220083361A1 (en) Command line interface
EP3089496B1 (en) Method and apparatus for providing information
US11765164B2 (en) Server-based setup for connecting a device to a local area network
US20130173702A1 (en) Supporting wps sessions using tcp-based connections
CN104717218A (zh) 一种Wifi认证系统及方法
US11863529B2 (en) Private cloud routing server connection mechanism for use in a private communication architecture
CN111049946B (zh) 一种Portal认证方法、系统及电子设备和存储介质
CN109672602A (zh) 一种远程接入vpn的方法和设备
US20130318155A1 (en) Information processing apparatus, network system and information processing method
WO2017124728A1 (zh) 一种获取路由器配置的方法及装置
CN113542389A (zh) 用于私有通信架构的私有云端路由服务器连接机制
EP2997711A1 (en) Providing single sign-on for wireless devices
US20210185017A1 (en) Private cloud routing server connection mechanism for use in a private communication architecture
CN106453400B (zh) 一种认证方法及系统
KR102071281B1 (ko) 통합 인증 방법
CN111786932A (zh) 账号登录方法、装置、电子设备及计算机存储介质
US9143549B2 (en) Communication system offering remote access and communication method thereof
CN106802832B (zh) Jenkins节点状态管理方法及装置
CN112804144B (zh) 一种信息配置方法和网络设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16885988

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16885988

Country of ref document: EP

Kind code of ref document: A1