CN105357289B - The configuration method of router, the generation method of software image file and system - Google Patents

The configuration method of router, the generation method of software image file and system Download PDF

Info

Publication number
CN105357289B
CN105357289B CN201510697987.1A CN201510697987A CN105357289B CN 105357289 B CN105357289 B CN 105357289B CN 201510697987 A CN201510697987 A CN 201510697987A CN 105357289 B CN105357289 B CN 105357289B
Authority
CN
China
Prior art keywords
router
image file
software image
parameter information
server
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
CN201510697987.1A
Other languages
Chinese (zh)
Other versions
CN105357289A (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.)
Huzhou YingLie Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510697987.1A priority Critical patent/CN105357289B/en
Publication of CN105357289A publication Critical patent/CN105357289A/en
Application granted granted Critical
Publication of CN105357289B publication Critical patent/CN105357289B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Abstract

The present invention provides a kind of configuration method of router, the generation method of software image file and system.The configuration method of the router includes: the parameter information that the router is obtained from server, and the parameter information includes: product type information or hardware revision information;The parameter information that will acquire is written in the parameter storage unit of the router;Obtain the software image file of the router;The router is configured with the parameter information according to the software image file got.In method of the invention, for the identical different routers of hardware setting, it is only necessary to generate a software image file, different parameter informations is written into the parameter storage unit of router, to save the testing time, improves efficiency.

Description

The configuration method of router, the generation method of software image file and system
Technical field
The present invention relates to configuration of routers technical fields, configuration method, Software Mirroring more particularly to a kind of router The generation method and system of file.
Background technique
In modern society, more and more occasions can use router.And in router product definition, often encounter A few money router hardware PCB are just the same, and software requirement is also the same, final for no other reason than that some on appearance or shell Difference and cause name of product different.
In this case Software Mirroring publication and production, current way be defined in makefile it is different Product type generates different Software Mirrorings to compile.It is produced in production using the Software Mirroring of respective product type.
On the one hand increasing with model, the product software mirror image for needing to compile generation simultaneously also can gradually increase this way It is more, lead to the overlong time for compiling hair version every time.And since compile out after all is not the same mirror image, for each Mirror image will carry out some basic regression tests every time, so more wasteful test resource, low efficiency, are unfavorable for the hair of product Cloth.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of configuration method of router, The generation method and system of software image file, formation efficiency for solving image file in prior art software is low, with And router configuration it is complicated the problems such as.
In order to achieve the above objects and other related objects, the present invention provides a kind of configuration method of router, comprising: from clothes The parameter information of the router is obtained in business device, the parameter information includes: product type information or hardware revision information; The parameter information that will acquire is written in the parameter storage unit of the router;Obtain the Software Mirroring of the router File;The router is configured with the parameter information according to the software image file got.
In one embodiment of the invention, the same software image file of multiple identical router acquisitions of hardware configuration.
In one embodiment of the invention, the packet the step of parameter information that the router is obtained from server It includes: increasing by an interface in the router uboot logic, the interface includes the mac address information of the router;It is described Router obtains the parameter information of the router by the interface from the server.In one embodiment of the invention In, the IP address of the server are as follows: 192.168.1.3.
The present invention also provides a kind of generation method of software image file, the generation method of the software image file includes Following steps: a server is provided;The parameter letter of multiple routers with same hardware setting is configured on the server Breath;The parameter information includes: product type information and hardware revision information;It provides corresponding to the multiple with identical hard The software image file of the router of part setting;According to the MAC Address of router, the router is obtained from the server Parameter information and corresponding software image file.
In one embodiment of the invention, the IP address of the server are as follows: 192.168.1.3.
In one embodiment of the invention, increase by an interface in the uboot logic of the router, the interface includes The mac address information of the router;The router obtains the router by the interface from the server Parameter information.
The present invention also provides a kind of system for generating software image file, the system packet for generating software image file Include: server, for providing the parameter information of software image file and router, the parameter information includes product type letter Breath or hardware revision information;Router, for obtaining corresponding software image file and parameter letter from the server Breath.
In one embodiment of the invention, the IP address of the server are as follows: 192.168.1.3.
In one embodiment of the invention, the router includes: an interface, for getting parms from the server Information;One parameter information storage unit, for storing the parameter information got.
As described above, the configuration method of router of the invention, the generation method of software image file and system, have with Down the utility model has the advantages that being directed to the identical router of hardware configuration, an identical software image file is only issued;And in router Corresponding parameter information, such as product type information are stored in parameter storage unit with hardware revision information information.In this way, on road When being configured by device, just achieve the purpose that distinguish different product;And after only issuing the same software image file, it saves to more The test process of a software image file, to substantially increase the formation efficiency of software image file.
Detailed description of the invention
Fig. 1 is shown as the flow diagram of the configuration method of router of the invention.
Fig. 2 is shown as the flow diagram of the generation method of invention software image file.
Fig. 3 is shown as the structural schematic diagram that the present invention generates the system of software image file.
Component label instructions
100 servers
200 routers
201 interfaces
202 parameter storage units
S11~S14 step
S21~S24 step
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementation Feature in example can be combined with each other.
It should be noted that illustrating the basic structure that only the invention is illustrated in a schematic way provided in following embodiment Think, only shown in schema then with related component in the present invention rather than component count, shape and size when according to actual implementation Draw, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel It is likely more complexity.
Referring to Fig. 1, the present invention provides a kind of configuration method of router, the configuration method of the router includes following Step:
Step S11, obtains the parameter information of the router from server, and the parameter information includes: product type Information or hardware revision information;
Step S12, the parameter information that will acquire are written in the parameter storage unit of the router;
In a particular embodiment, one piece of subregion can be divided in the router, if the subregion of 1K is to store matching for differentiation Set (such as product type, hardware version numbers).The configuration of these differentiation is configured to router by certain mechanism in production In, to achieve the purpose that distinguish different product.When the page show and other code logics in need using product type, firmly The place of part version number, calling interface read corresponding information from subregion.
Step S13 obtains the software image file of the router;
Step S14 matches the router with the parameter information according to the software image file got It sets.
In the present embodiment, the identical router of multiple hardware configurations obtains the same software image file.That is, When the hardware PCB of multiple routers is just the same, the same software image file is obtained from server, is directed to hardware in this way Identical multiple products are set, it is only necessary to issue a software image file.And different parameter informations can respectively from It accordingly gets, and is stored into the parameter storage unit of each router in server.
In a particular embodiment, the step of parameter information that the router is obtained from server includes:
Increase by an interface in the router uboot logic, the interface includes the MAC Address letter of the router Breath;
The router obtains the parameter information of the router by the interface from the server.
In the present embodiment, the IP address of the server are as follows: 192.168.1.3.
Specifically, the server of a 192.168.1.3 is disposed, and configures starting MAC section to the product for terminating MAC section Type information and hardware revision information, and the request of router can be responded: it is available to phase according to router mac address The product type and hardware version numbers answered.
And by way of increasing by an interface in router uboot logic, it can be ensured that not for same hardware plan The same Software Mirroring used with product type router.Pass through environment when the adjustment and production of router uboot logic Setting, routing very easily can be written in the information (product type and hardware version numbers) of these differentiation in production In device particular zones.
In the configuration method of the router of the present embodiment, due to need to only issue a software image file, thus also significantly The testing time of software image file is saved, to improve the formation efficiency of software image file, while also improving road By the allocative efficiency of device.
Correspondingly, the present invention also provides a kind of generation methods of software image file, with reference to Fig. 2, the Software Mirroring text The generation method of part the following steps are included:
Step S21 provides a server;The IP address of the server are as follows: 192.168.1.3.
Step S22 configures the parameter information of multiple routers with same hardware setting on the server;It is described Parameter information includes: product type information and hardware revision information;
Step S23 provides the software image file corresponding to the multiple router with same hardware setting;
Step S24 obtains the parameter information of the router and right according to the MAC Address of router from the server The software image file answered.
In the present embodiment, increase by an interface in the uboot logic of the router, the interface includes the routing The mac address information of device;The router obtains the parameter information of the router by the interface from the server.
Correspondingly, the present invention also provides a kind of systems for generating software image file, with reference to Fig. 3, the generation software The system of image file includes:
Server 100 includes producing for providing the parameter information of software image file and router, the parameter information Product type information or hardware revision information;In the present embodiment, the IP address of the server are as follows: 192.168.1.3.
Router 200 from the server for obtaining corresponding software image file and parameter information.
In the present embodiment, the router includes:
One interface 201 is for the information that gets parms from the server;
One parameter information storage unit 202, for storing the parameter information got.
In this way, router obtains the parameter information of corresponding router by interface 201 from server 100, and will obtain The parameter information got is written to parameter information storage unit 202.In addition, when router 200 gets correspondence from server Software image file after, the configuration to router can be completed in conjunction with the parameter information got.
In the present embodiment, it is the same software mirror that the router with same hardware setting is got from server As file.That is, it is identical for hardware setting, but when the information difference such as product type, it is only necessary to generate a software Image file, to substantially increase the efficiency for generating software image file.
In conclusion only need to issue a Software Mirroring for multiple products in the configuration method of router of the present invention, Test job amount also only needs once;There is provided simultaneously can be easily correlation in production by way of configuration server Differentiation information is written in router specified partition.The testing time is thus greatly saved, to improve allocative efficiency. So the present invention effectively overcomes various shortcoming in the prior art and has high industrial utilization value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as At all equivalent modifications or change, should be covered by the claims of the present invention.

Claims (8)

1. a kind of configuration method of router, which is characterized in that the configuration method of the router the following steps are included:
The parameter information of the router is obtained from server, the parameter information includes: product type information or hardware Version information;
The parameter information that will acquire is written in the parameter storage unit of the router;
Obtain the software image file of the router;
The router is configured with the parameter information according to the software image file got;
Increase by an interface in the router uboot logic, the interface includes the mac address information of the router;
The router obtains the parameter information of the router by the interface from the server.
2. the configuration method of router according to claim 1, it is characterised in that: the identical router of multiple hardware configurations Obtain the same software image file.
3. the configuration method of router according to claim 1, it is characterised in that: the IP address of the server are as follows: 192.168.1.3。
4. a kind of generation method of software image file, it is characterised in that: the generation method of software image file includes following step It is rapid:
One server is provided;
The parameter information of multiple routers with same hardware setting is configured on the server;The parameter information packet It includes: product type information and hardware revision information;
The software image file for corresponding to the multiple router with same hardware setting is provided;
According to the MAC Address of router, the parameter information and corresponding Software Mirroring of the router are obtained from the server File;
Increase by an interface in the uboot logic of the router, the interface includes the mac address information of the router; The router obtains the parameter information of the router by the interface from the server.
5. the generation method of software image file according to claim 4, it is characterised in that: the IP address of the server Are as follows: 192.168.1.3.
6. it is a kind of generate software image file system, which is characterized in that it is described generate software image file system include:
Server, for providing the parameter information of software image file and router, the parameter information includes product type Information or hardware revision information;
Router, for obtaining corresponding software image file and parameter information from the server;According to what is got The software image file configures the router with the parameter information;
Increase by an interface in the uboot logic of the router, the interface includes the mac address information of the router; The router obtains the parameter information of the router by the interface from the server.
7. the system according to claim 6 for generating software image file, it is characterised in that: the IP address of the server Are as follows: 192.168.1.3.
8. the system according to claim 6 for generating software image file, which is characterized in that the router includes:
One interface, for the information that gets parms from the server;
One parameter information storage unit, for storing the parameter information got.
CN201510697987.1A 2015-10-23 2015-10-23 The configuration method of router, the generation method of software image file and system Active CN105357289B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510697987.1A CN105357289B (en) 2015-10-23 2015-10-23 The configuration method of router, the generation method of software image file and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510697987.1A CN105357289B (en) 2015-10-23 2015-10-23 The configuration method of router, the generation method of software image file and system

Publications (2)

Publication Number Publication Date
CN105357289A CN105357289A (en) 2016-02-24
CN105357289B true CN105357289B (en) 2019-10-22

Family

ID=55333148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510697987.1A Active CN105357289B (en) 2015-10-23 2015-10-23 The configuration method of router, the generation method of software image file and system

Country Status (1)

Country Link
CN (1) CN105357289B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713004B (en) * 2016-07-12 2022-02-18 腾讯科技(深圳)有限公司 Router adaptation method and system
CN106161146A (en) * 2016-08-24 2016-11-23 上海斐讯数据通信技术有限公司 A kind of route system antitheft startup method and device, router
CN107241412B (en) * 2017-06-09 2020-11-27 台州市吉吉知识产权运营有限公司 Method and system for storing MAC address of wireless access equipment
CN108664276B (en) * 2018-05-15 2021-11-09 福建升腾资讯有限公司 Method for configuring hardware information through text

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788998A (en) * 2009-12-03 2010-07-28 福建星网锐捷网络有限公司 Processing method for mapping file, device and network equipment
CN102238140A (en) * 2010-04-27 2011-11-09 鸿富锦精密工业(深圳)有限公司 System and method for sharing server by clients
CN102571446A (en) * 2012-02-08 2012-07-11 华为技术有限公司 Method, device and system for upgrading network device
EP2814208A1 (en) * 2013-06-14 2014-12-17 Fujitsu Limited Program, apparatus, and method for creating configuration requirements

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788998A (en) * 2009-12-03 2010-07-28 福建星网锐捷网络有限公司 Processing method for mapping file, device and network equipment
CN102238140A (en) * 2010-04-27 2011-11-09 鸿富锦精密工业(深圳)有限公司 System and method for sharing server by clients
CN102571446A (en) * 2012-02-08 2012-07-11 华为技术有限公司 Method, device and system for upgrading network device
EP2814208A1 (en) * 2013-06-14 2014-12-17 Fujitsu Limited Program, apparatus, and method for creating configuration requirements

Also Published As

Publication number Publication date
CN105357289A (en) 2016-02-24

Similar Documents

Publication Publication Date Title
CN105357289B (en) The configuration method of router, the generation method of software image file and system
CN107872528B (en) Message pushing method and device
CN109347675A (en) Server configuration method, device and electronic equipment
CN103034541B (en) A kind of distributed information system and equipment therein and method
CN105653253B (en) Centralized configuration method and device
CN109683910A (en) Big data platform dispositions method and device
CN107257371B (en) Analytic method and Handle system based on Handle system
CN103176800A (en) Application program login method and device
EP2052325B1 (en) Reduction of message flow between bus-connected consumers and producers
CN106294083A (en) A kind of a plurality of memory bar collaborative flicker specially good effect lamp control system and its implementation
US8627336B2 (en) Feedback system and method for processing incoming data using a plurality of mapper modules and reducer module(s)
CN109788034B (en) Configuration method for gateway access equipment, electronic equipment and storage medium
CN106709056A (en) Nfs mounted directory exporting method and device
CN102970375A (en) Cluster configuration method and device
CN105700870B (en) A kind of methods of exhibiting and server of the flow content of multi-source
US9256700B1 (en) Public service for emulation of application load based on synthetic data generation derived from preexisting models
US9239720B2 (en) Device and method for generating application model based on layered structure
ATE511138T1 (en) FLEXRAY SYSTEM WITH EFFICIENT INSTRUCTION STORAGE
CN109471837A (en) The distributed storage method of power infrastructures data
CN109241092A (en) Data query method, system and computer equipment
US10693705B2 (en) Show command service aka CLI relay
CN106330556B (en) A kind of method and apparatus calling related information for generating service module
JP2017508335A5 (en)
CA2904244C (en) Method, apparatus and system for generating software
CN106954264B (en) A kind of downlink physical shares the method for mapping resource and system of channel PDSCH

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201123

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201218

Address after: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee after: Bengbu Lichao Information Technology Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210309

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee before: Bengbu Lichao Information Technology Co.,Ltd.

TR01 Transfer of patent right