A kind of autosynchronous method of key configuration between wireless router
Technical field
The present invention relates to key configuration between wireless communication technology field more particularly to a kind of wireless router is autosynchronous
Method.
Background technique
In the prior art, two kinds are generally included to the configuration method of wireless router:
(1) it manually configures.This method needs to be ready in advance to need synchronous configuration, and the management into router is flat
Platform one by one configures the importing of router.This mode needs to put into a large amount of resource, and cumbersome easy error, it is time-consuming compared with
It is long;
(2) it is configured by automatized script.Automatized script is the relatively advanced method of synchronization, it is only necessary to be automated
Engineer writes the script of a set of synchronous configuration, and the rate of the synchronous configuration in part is improved under the operation of a small number of personnel.Such side
Formula can reduce human resources investment, improve synchronous allocative efficiency, but the method has certain limitation, automatized script to behaviour
It is higher to make personnel qualifications, is unfavorable for popularizing ordinary person.
Therefore, it can be seen that configuring router using existing method, need to be ready in advance to need synchronous configuration, into
The management platform for entering router one by one configures the importing of router, and this mode needs to put into a large amount of resource, and operates numerous
Trivial easy error, takes a long time, and cannot simply and effectively solve the problems, such as synchronous configuration.
Summary of the invention
In view of the above problems, the application describes a kind of autosynchronous method of key configuration between wireless router, described
Method comprising steps of
After the completion of the first router configuration, start the second router, the second router passes through WAN mouthfuls to described the
One router issues request synchronization signal;
The first router judges whether the request synchronization signal meets certification after receiving the request synchronization signal
Demand;
If meeting, the first router to the second router send configuration information, the second router according to
The configuration information completes configuration application;
If not meeting, the second router configuration failure is determined.
Preferably, the second router is authenticated mark and address is encapsulated in options60 data packet to constitute
The request synchronization signal.
Preferably, after the first router receives the request synchronization signal, according to certification mark judgement
Whether request synchronization signal meets certification demand.
Preferably, the configuration information includes PPPOE account number and PPPOE password.
Preferably, the configuration information includes SSID account number, SSID password and cipher mode.
Preferably, the first router configuration information is encapsulated in after options43 data packet be sent to it is described
The second router.
Preferably, the second router according to the configuration information complete configuration application process comprising steps of
The second router reads the configuration information, and is sent to after Resealing after configuration information processing
The first router;
The first router receives the configuration information after the encapsulation that the second router forwarding comes, and judges institute
Stating the second router, whether configuration successful terminates if success;Otherwise, it is determined that the second router configuration failure.
Preferably, after the second router configuration failure, according to dynamic host configuration protocol to the secondary route
Device re-starts configuration.
Above-mentioned technical proposal has the following advantages that or the utility model has the advantages that the present invention passes through key configuration between a kind of wireless router
Synchronous configuration request is encapsulated into options60 data packet by autosynchronous method, router by certification mark come
It is confirmed whether synchronous configuration, entire synchronous configuration process is transmitted by the WAN mouth data of initial start stage, simple and fast, nothing
Personnel are needed to manually complete.
Detailed description of the invention
With reference to appended attached drawing, more fully to describe the embodiment of the present invention.However, appended attached drawing be merely to illustrate and
It illustrates, and is not meant to limit the scope of the invention.
Fig. 1 is the flow diagram of the autosynchronous method of key configuration between a kind of wireless router of the present invention.
Specific embodiment
In the following with reference to the drawings and specific embodiments between the autosynchronous side of key configuration a kind of wireless router of the present invention
Method is described in detail.
As shown in Figure 1, a kind of autosynchronous method of key configuration between wireless router, comprising steps of
S1: after the completion of the first router configuration, start the second router, the second router is by WAN mouthfuls to institute
It states the first router and issues request synchronization signal;
S2: the first router receives the request synchronization signal and is judged, judges the request synchronization signal
Whether certification demand is met;If meeting, S3 is executed;Otherwise, S7 is executed;
S3: the first router issues configuration information to the second router;
S4: the second router reads the configuration information, and sends out after Resealing after configuration information processing
It send to the first router;
S5: the first router receives the configuration information encapsulated through the second router;
S6: whether the first router judges the second router according to the configuration information encapsulated through the second router
Configuration successful;If success terminates;Otherwise, S7 is executed;
S7: according to conventional DHCP (Dynamic Host Configuration Protocol, dynamic host configuration association
View) process configures the second router.
It is worth noting that the first router and the second router are required to be packaged processing when sending signal.Specifically
For, in step S1, S4 and step S6, the second router is by the request synchronization signal, the confirmation request signal
And configuration successful signal is all made of after options60 is packaged and retransmits;In step S3, step S5 and step S7, institute
State the first router transmission confirmation request signal, the judgement signal and the configuration information use options43 into
Row encapsulation.I.e. in the present embodiment, the first router carries out the encapsulation of information, the secondary route using options43
Device carries out the encapsulation of information using options60.
In addition, include in the request synchronization signal that the second router is sent the second router certification identify,
Synchronous configuration file and address are needed, meanwhile, the WAN mouth of the first router and the second router passes through
The mode of DHCP obtains address.Address information, certification mark and the configuration file envelope for needing synchronization of the second router
It is fitted together, constitutes a request synchronization signal.It is worth noting that the configuration information of the first router includes PPPOE account
Number, PPPOE password, can also be for SSID account number, cipher mode and SSID password etc..Wherein, the first router receives
Whether allow to synchronize according to authentication marks verification after to the request synchronization signal.
During the work time, after the completion of the first router configuration, the second router that is connected with the first router
Issue request synchronization signal.Then, the first router receives the request synchronization signal and is judged, asks described in judgement
Ask whether synchronization signal meets certification demand, if meeting, the first router issues configuration information to the second router.
The second router reads the configuration information, and the configuration information after reading Reseal be sent to it is described
The first router, the first router receive the configuration information encapsulated through the second router.The first router is according to warp
The second router encapsulation the configuration information judge the second router whether configuration successful.If the second router is matched
It sets failure or the request synchronizing information does not meet certification demand, the second router is matched according to DHCP process
It sets.
It is worth noting that the second router in the present embodiment is not the router refered in particular to, and refers to and work as the first via
After device configuration successful, the router that can carry out automatically configuring connection with the first router can become the second router.
In simple terms, in the method, it is only necessary to first the first router is carried out with postponing, it is identical when having with the first router
The router of certification mark can be referred to as the second router.
The autosynchronous method of key configuration between the wireless router that the present embodiment proposes when leaving the factory carries out router
Synchronous configuration, can obtain configuration information without excessive human resources, the process of starting is in the case where system default
Achievable configuration synchronizes.This method economizes on resources, easy to operate and efficiency is higher.
The method provided through this embodiment solves the problems, such as the configuration of routers clone of same producer.User more renews
Router, it is only necessary to be connected to old router, automatically cloning key configuration.Additionally it is possible to which it is identical to use more routers
Key configuration, such as: smart home, intelligent residential district, intelligent market, it is only necessary to one router of configuration, it is other to route
Equipment can realize key configuration automatically cloning by the technology, simple and fast.
The present invention is by a kind of autosynchronous method of key configuration between wireless router, by synchronous configuration request envelope
It is attached in options60 data packet, router is confirmed whether synchronous configuration by certification mark, and entire synchronous configuration process is logical
The WAN mouth data for crossing initial start stage are transmitted, simple and fast, are manually completed without personnel.
For a person skilled in the art, after reading above description, various changes and modifications undoubtedly be will be evident.
Therefore, appended claims should regard the whole variations and modifications for covering true intention and range of the invention as.It is weighing
The range and content of any and all equivalences, are all considered as still belonging to the intent and scope of the invention within the scope of sharp claim.