CN101572618B - System and method for configuration of combined network interface - Google Patents
System and method for configuration of combined network interface Download PDFInfo
- Publication number
- CN101572618B CN101572618B CN2008100960797A CN200810096079A CN101572618B CN 101572618 B CN101572618 B CN 101572618B CN 2008100960797 A CN2008100960797 A CN 2008100960797A CN 200810096079 A CN200810096079 A CN 200810096079A CN 101572618 B CN101572618 B CN 101572618B
- Authority
- CN
- China
- Prior art keywords
- network interface
- network
- combined
- electronic installation
- internet protocol
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention relates to a system and a method for configuration of a combined network interface, applying to an electronic device with an operating system, and the electronic device is provided with a plurality of network interfaces. The method comprises the following steps: firstly collecting all network interfaces of the electronic device; selecting at least two network interfaces from all of the network interfaces as network interfaces to be combined for the subsequent combination; combining the selected network interfaces to be combined into a group to form a combined network interface; inputting the Internet protocol address of the combined network interface; generating a combined network configuration file according to the input Internet protocol address of the combined network interface; copying the generated combined network configuration file to a corresponding directory of the operating system to cover an original network configuration file under the directory; amending a system configuration file of the directory according to the combined network configuration file and storing the amended system configuration file; and finally performing network restarting by the electronic device according to the configuration file stored in the directory.
Description
Technical field
The present invention relates to the configuring technical of combined network interface, more detailed it, relate to a kind of combined network interface configuration-system and method that combined network interface is disposed automatically.
Background technology
Because making rapid progress of the relevant scientific and technological research and development technology of electronic information, many powerful information Related products come out one after another, it just is example with the computer equipment, no matter be large-scale supercomputer, server and even personal computer and mobile computer etc., all become already people's work and life indispensable important tool.
Whether with the server is example, and server need carry out a series of test program before shipment, check this server can normal operation thus.In every test, network test is important test event.At present, the combination of network interface (Teaming) technology is widely used among the server product, and the combination technique of this network interface become in the network function test one of must the survey project.The combination technique of this network interface is a kind of technology that network interface is carried out redundant setting, by the user network interface is carried out relevant configuration, revises a lot of relevant configuration files, and a plurality of (normally two) network interface is merged into one and used.In the process of network communication, if one of them network interface transmission is congested, even interrupt, as long as another network interface is intact, then can temporarily changes and use another network interface to carry out network communication, the network communication of carrying out until institute's desire finishes.During this time, recover if transmit a congested network interface, system can also automatically restore to the state of the common transmission of initial two network interfaces, has promoted stability of network significantly by this kind combined network interface.
But, server is normally worked under (SuSE) Linux OS and is tested, so need configuration file, realize setting, and the information that the configuration file of each network interface is correlated with is quite various to combined network interface by the above-mentioned all-network interface of manual modification.So not only waste time and energy, and in carrying out manual configuration procedures, make mistakes easily, thereby influence the efficient of work; In addition, because omit step during manual operation easily, cause configuration failure, thereby influence testing progress.
Therefore, how to overcome the disappearance of above-mentioned prior art, and then provide a kind of fruitful combined network interface configuring technical, can automation ground configuration effort that combined network interface is correlated with, thereby save setup time, and improve the configuration operating efficiency and can reduce the configuration operating cost, real is present problem demanding prompt solution.
Summary of the invention
Disappearance in view of above-mentioned prior art, main purpose of the present invention is to provide a kind of configuration-system and method of combined network interface, can automation ground configuration effort that combined network interface is correlated with, thereby save setup time, improve the configuration operating efficiency and can reduce the configuration operating cost.
For reaching above-mentioned and other purpose, the present invention promptly provides a kind of configuration-system and method of combined network interface.The configuration-system of this combined network interface is applied to have in the electronic installation of operating system, this electronic installation has a plurality of network interfaces, and this operating system has to be used for the network profile that stores the overall network interface that reads these a plurality of network interfaces when network is restarted in this electronic installation execution and the catalogue of CONFIG.SYS, the configuration-system of this combined network interface comprises at least: the network interface collection module, in order to collect all network interfaces of this electronic installation, and accumulate menu, for you to choose wherein at least two network interfaces as follow-up make up treat the combinational network interface; The network interface composite module treats that in order to this that will select combinational network combination of interfaces is a group, forms combined network interface, and input window is provided, for the Internet Protocol address of this combined network interface of input; The network profile generation module, Internet Protocol address according to this combined network interface of input, generate the composite type network profile, and the composite type network profile that will generate copies under this catalogue to, and cover the network profile under this catalogue; And the CONFIG.SYS update module, in order to revising the CONFIG.SYS in this catalogue according to this composite type network profile, and stored.
The collocation method of combined network interface of the present invention is applied to have in the electronic installation of operating system, and this electronic installation has a plurality of network interfaces, this operating system has to be used for the network profile that stores the overall network interface that reads these a plurality of network interfaces when network is restarted in this electronic installation execution and the catalogue of CONFIG.SYS, the collocation method of this combined network interface comprises: collect all network interfaces of this electronic installation, for you to choose wherein at least two network interfaces as follow-up make up treat the combinational network interface; By the selected combinational network combination of interfaces for the treatment of is group, forms combined network interface, and imports the Internet Protocol address of this combined network interface; According to the Internet Protocol address of this combined network interface of input, generate the composite type network profile, and the composite type network profile that will generate copies under this catalogue to, and cover the network profile under this catalogue; Revise CONFIG.SYS in this catalogue according to this composite type network profile, and stored.
Configuration-system and method by combined network interface of the present invention effectively avoid existing configuring technical that the problem of configuration information mistake easily takes place with artificial input, thereby promote the configuration efficiency of operation.
Description of drawings
Fig. 1 is the basic framework block diagram in order to the configuration-system that shows combined network interface of the present invention;
Fig. 2 is the basic framework block diagram in order to another embodiment of the configuration-system that shows combined network interface of the present invention; And
Fig. 3 is in order to show the collocation method schematic flow sheet of combined network interface of the present invention.
Embodiment
Below by particular specific embodiment explanation embodiments of the present invention, those skilled in the art can understand other advantage of the present invention and effect easily by the content that this specification disclosed.The present invention also can be implemented or be used by other different specific embodiment, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications and change under the spirit of the present invention not deviating from.
See also Fig. 1, it shows the basic framework block diagram of the configuration-system of combined network interface of the present invention.As shown in the figure, the configuration-system 2 of this combined network interface is applied to have in the electronic installation 1 of operating system, wherein, have a plurality of network interfaces 11 in this electronic installation 1, and this operating system has the catalogue (not illustrated at this) that reads the network profile and the CONFIG.SYS of this network interface 11 when network is restarted in this electronic installation 1 execution of confession in order to store, and original separately network profile of each network interface 11 correspondences and CONFIG.SYS 110, in the present embodiment, this electronic installation is a server, and this operating system is (SuSE) Linux OS.
The configuration-system 2 of combined network interface of the present invention comprises network interface collection module 21, network interface composite module 22, network profile generation module 24 and CONFIG.SYS update module 25 at least.
This network interface collection module 21 is in order to collect all-network interface 11 in this operating system, and accumulate menu mode and offer the user that desire is carried out the network interface configuration effort, select wherein at least two network interfaces 11 for it, as follow-up make up treat the combinational network interface.Wherein, the form of menu can for example provide the selection window, in have representative to collect the title of all-network interface 11 of this electronic installation with operating system 1, and its window form is owing to be not major technique feature of the present invention, so do not limit at this.
This network interface composite module 22 is to be group in order to the combinational network combination of interfaces for the treatment of that will select, forms combined network interface, and input window is provided, for Internet Protocol (Internet Protocol, IP) address of this combined network interface of input.
This network profile generation module 24 is the Internet Protocol addresss according to this combined network interface of input, generate the composite type network profile 110 of this combined network interface, need to prove that this composite type network profile 110 comprises the above-mentioned related content for the treatment of combinational network interface 11.
Then, the composite type network profile 110 of this generation is copied under this catalogue, and cover the legacy network configuration file that is stored under this catalogue.
This CONFIG.SYS update module 25 is to be used for revising CONFIG.SYS 111 in these catalogues according to this composite type network profile 110, and stored, make operating system can discern this composite type network profile 110, reach the effect of upgrading this CONFIG.SYS, thereby restart network according to the stored configuration file execution of this catalogue at this electronic installation 1.
Fig. 2 is the basic framework block diagram of another embodiment of the configuration-system of demonstration combined network interface of the present invention, as shown in the figure, in the present embodiment, the configuration-system 2 ' of this combined network interface also comprises backup module 20 and judge module 23, wherein, this backup module 20 is before this network interface collection module 21 is collected all network interfaces of this electronic installation 1, original network profile and CONFIG.SYS 100 that this catalogue is stored back up, after this combined network interface is carried out relevant configuration, deploy content as if wanting to recover original then can recover according to the original network profile and the CONFIG.SYS 100 of this backup.And this judge module 23 is the setting rules that whether meet Internet Protocol address in order to the Internet Protocol address of judging input, then carry out subsequent job if meet, if do not meet, then point out information relevant for the Internet Protocol address that re-enters combined network interface.Moreover this judge module 23 provides the function that further limits pattern of the input for the user, and for example, this pattern of the input is defined as the address field of 192.168. * .200, and wherein " * " expression can be provided with numerical value required between 0 to 255 arbitrarily.
Thus, carry out the relevant configuration of combined network interface, will make whole configuration operation process more quick convenient, corresponding raising operating efficiency according to the configuration-system of combinations thereof formula network interface.
As shown in Figure 3, it is in order to show the collocation method schematic flow sheet of combined network interface of the present invention, the collocation method of this combined network interface is applied to have in the electronic installation of operating system, and this electronic installation has a plurality of network interfaces, and this operating system has uses the catalogue that reads the network profile and the CONFIG.SYS of this network interface when network is restarted in this electronic installation execution for storing.As shown in the figure, the collocation method of this combined network interface is execution in step S12 at first, collects all network interfaces in this electronic installation 1, for you to choose wherein at least two network interfaces as follow-up make up treat the combinational network interface.Then, proceed to step S13.
At step S13, treat that by this that select combinational network combination of interfaces is a group, form combined network interface, and import Internet Protocol (Internet Protocol, IP) address of this combined network interface.Then, proceed to step S14.
At step S14, judge whether the Internet Protocol address of this input meets the setting rule of Internet Protocol address, if meet, then proceed to step S16; If do not meet, then proceed to step S15.
At step S15, prompting is relevant for the information of the Internet Protocol address that re-enters this combined network interface.Then, return this step S13.
At step S16,, generate the composite type network profile of this combined network interface according to the Internet Protocol address of this input.Then, proceed to step S17.
At step S17, the composite type network profile of this generation is copied under this catalogue, and cover the legacy network configuration file.Then, proceed to step S18.
At step S18, revise CONFIG.SYS in this catalogue according to this composite type network profile, by this amended CONFIG.SYS, stored, this electronic installation is carried out can be discerned this composite type network profile after network is restarted operation.Then, proceed to step S19.
At step S19, restart network by this electronic installation according to the stored configuration file execution of this catalogue, can finish the configuration effort of combined network interface.
In addition, in the present embodiment, the collocation method of this combined network interface is before execution in step S12, further comprising the steps of, original network profile and CONFIG.SYS that this catalogue is stored are backed up, with when user's desire is recovered original configuration, network profile that can be by this backup and CONFIG.SYS return to configuration status last time.
In sum, configuration-system and method by combined network interface of the present invention, can finish the configuration effort of this combined network interface more easily, carry out the setting of each relevant configuration file manually than having now, quick more convenient, improve the configuration operating efficiency of network interface combination technique, and can reduce operating cost, can accelerate network test speed simultaneously.
The foregoing description only is illustrative principle of the present invention and effect thereof, but not is used to limit the present invention, and also, the present invention in fact still can do other change.Therefore, any those skilled in the art all can make amendment to the foregoing description under spirit of the present invention and category.So the scope of the present invention, claim is listed as described later.
Claims (11)
1. the configuration-system of a combined network interface, be applied to have in the electronic installation of operating system, this electronic installation has a plurality of network interfaces, and this operating system has to be used for the network profile that stores the overall network interface that reads these a plurality of network interfaces when network is restarted in this electronic installation execution and the catalogue of CONFIG.SYS, it is characterized in that the configuration-system of this combined network interface comprises at least:
The network interface collection module in order to collecting all network interfaces of this electronic installation, and accumulates menu, for you to choose wherein at least two network interfaces as follow-up make up treat the combinational network interface;
The network interface composite module treats that in order to this that will select combinational network combination of interfaces is a group, forms combined network interface, and input window is provided, for the Internet Protocol address of this combined network interface of input;
The network profile generation module, Internet Protocol address according to this combined network interface of input, generate the composite type network profile, and the composite type network profile that will generate copies under this catalogue to, and cover the network profile under this catalogue; And
The CONFIG.SYS update module in order to revising the CONFIG.SYS in this catalogue according to this composite type network profile, and is stored.
2. the configuration-system of combined network interface according to claim 1, it is characterized in that, also comprise backup module, before this network interface collection module was collected all network interfaces of this electronic installation, network profile and CONFIG.SYS that this catalogue is stored were backed up.
3. the configuration-system of combined network interface according to claim 1 is characterized in that, also comprises judge module, whether meets the setting rule of internet protocol address in order to the Internet Protocol address of judging input.
4. the configuration-system of combined network interface according to claim 1 is characterized in that, this electronic installation is a server.
5. the configuration-system of combined network interface according to claim 1 is characterized in that, this operating system is (SuSE) Linux OS.
6. the collocation method of a combined network interface, be applied to have in the electronic installation of operating system, and this electronic installation has a plurality of network interfaces, this operating system has to be used for the network profile that stores the overall network interface that reads these a plurality of network interfaces when network is restarted in this electronic installation execution and the catalogue of CONFIG.SYS, it is characterized in that the collocation method of this combined network interface comprises:
Collect all network interfaces of this electronic installation, for you to choose wherein at least two network interfaces as follow-up make up treat the combinational network interface;
By the selected combinational network combination of interfaces for the treatment of is group, forms combined network interface, and imports the Internet Protocol address of this combined network interface;
According to the Internet Protocol address of this combined network interface of input, generate the composite type network profile, and the composite type network profile that will generate copies under this catalogue to, and cover the network profile under this catalogue; And
Revise CONFIG.SYS in this catalogue according to this composite type network profile, and stored.
7. the collocation method of combined network interface according to claim 6 is characterized in that, also be included in collect all network interfaces of this electronic installation before, network profile and CONFIG.SYS that this catalogue is stored are backed up.
8. the collocation method of combined network interface according to claim 6 is characterized in that, comprises also whether the Internet Protocol address of judging input meets the setting rule of Internet Protocol address.
9. the collocation method of combined network interface according to claim 8, it is characterized in that, when the Internet Protocol address of this input does not meet the setting rule of Internet Protocol address, then point out information relevant for the Internet Protocol address that re-enters this combined network interface.
10. the collocation method of combined network interface according to claim 6 is characterized in that, this electronic installation is a server.
11. the collocation method of combined network interface according to claim 6 is characterized in that, this operating system is (SuSE) Linux OS.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100960797A CN101572618B (en) | 2008-04-30 | 2008-04-30 | System and method for configuration of combined network interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100960797A CN101572618B (en) | 2008-04-30 | 2008-04-30 | System and method for configuration of combined network interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101572618A CN101572618A (en) | 2009-11-04 |
CN101572618B true CN101572618B (en) | 2011-08-03 |
Family
ID=41231856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100960797A Expired - Fee Related CN101572618B (en) | 2008-04-30 | 2008-04-30 | System and method for configuration of combined network interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101572618B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104853368A (en) * | 2015-05-27 | 2015-08-19 | 北京汉柏科技有限公司 | Method and management system for configuring WIFI access point based on user mode |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710862A (en) * | 2004-06-19 | 2005-12-21 | 鸿富锦精密工业(深圳)有限公司 | Management system set for network interconnection apparatus and method thereof |
CN1870548A (en) * | 2006-03-20 | 2006-11-29 | 华为技术有限公司 | Exchange data testing system and method |
WO2007105777A1 (en) * | 2006-03-10 | 2007-09-20 | Matsushita Electric Industrial Co., Ltd. | Apparatus for prefix control and apparatus for prefix choice |
-
2008
- 2008-04-30 CN CN2008100960797A patent/CN101572618B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1710862A (en) * | 2004-06-19 | 2005-12-21 | 鸿富锦精密工业(深圳)有限公司 | Management system set for network interconnection apparatus and method thereof |
WO2007105777A1 (en) * | 2006-03-10 | 2007-09-20 | Matsushita Electric Industrial Co., Ltd. | Apparatus for prefix control and apparatus for prefix choice |
CN1870548A (en) * | 2006-03-20 | 2006-11-29 | 华为技术有限公司 | Exchange data testing system and method |
Also Published As
Publication number | Publication date |
---|---|
CN101572618A (en) | 2009-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100395707C (en) | Method of upgrading sequence | |
CN101876940B (en) | Automatic test method and device | |
CN101645010B (en) | System and method for automatically generating code | |
CN106055361B (en) | Integrated firmware implementation method and system for multiple different types based on BMC (baseboard management controller) | |
CN105487891A (en) | Distributed cluster deploying method and system | |
CN105786691A (en) | Automatic integration testing device, method and system of mobile terminal | |
CN105242875A (en) | Server raid batch configuration method | |
CN102368216A (en) | Process implementation method based on automatic project building | |
CN107707687A (en) | A kind of method and apparatus of virtual machine IP address configuration | |
CN105224396A (en) | A kind of business data processing method and device | |
CN103186376A (en) | Method, device and equipment for establishing or updating software development environment | |
CN110633120A (en) | Configuration software control processing method, device, server, user terminal and system | |
CN105183521A (en) | Method for installing computing operation system and USB port storage device | |
CN102902526B (en) | A kind of automation method to set up that realizes BMC and IP information by time delay | |
CN103997684A (en) | Method and device for updating operating system | |
CN101572618B (en) | System and method for configuration of combined network interface | |
CN103595742A (en) | A method and an apparatus for debugging webpage CSS | |
CN112860231A (en) | Front-end framework conversion method and device | |
CN104915288A (en) | Testing method and device | |
CN106293819A (en) | A kind of batch dispositions method based on snapshot and system | |
CN104199689A (en) | Method and device for installing comprehensive front end system | |
CN112464596B (en) | Regression testing method, system, equipment and readable storage medium | |
CN103677827A (en) | Chip configuration method and device | |
CN111090458B (en) | Gray release system and application release method based on gray release system | |
CN106980575A (en) | A kind of event-handling method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110803 Termination date: 20180430 |