CN102231680B - Method and system for restoring default configuration of equipment - Google Patents

Method and system for restoring default configuration of equipment Download PDF

Info

Publication number
CN102231680B
CN102231680B CN 201110179912 CN201110179912A CN102231680B CN 102231680 B CN102231680 B CN 102231680B CN 201110179912 CN201110179912 CN 201110179912 CN 201110179912 A CN201110179912 A CN 201110179912A CN 102231680 B CN102231680 B CN 102231680B
Authority
CN
China
Prior art keywords
network interface
pair
default configuration
equipment
short circuit
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
CN 201110179912
Other languages
Chinese (zh)
Other versions
CN102231680A (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Network Technology Shenzhen 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 Sangfor Network Technology Shenzhen Co Ltd filed Critical Sangfor Network Technology Shenzhen Co Ltd
Priority to CN 201110179912 priority Critical patent/CN102231680B/en
Publication of CN102231680A publication Critical patent/CN102231680A/en
Application granted granted Critical
Publication of CN102231680B publication Critical patent/CN102231680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and system for restoring the default configuration of equipment, wherein the method comprises the following steps: S1. detecting whether the equipment is provided with at least one pair of network ports connected with a network line and is in a working condition or not, if not, starting the working condition of the system, and if so, executing the step S2, whereinthe network line is connected when the equipment is powered off; S2. duplicating the working parameters of the at least one pair of network ports; S3. detecting whether the at least one pair of network ports have short circuit or not, if not, restoring the network port working parameters which are duplicated in the step S2 and starting the working condition of the system, and if so, executing a step S4; and S4. restoring the configuration of the equipment as the default configuration. According to the invention, the default configuration can be restored by utilizing the short circuit among the network ports on the equipment without support of specific devices or networks, thus the method and system provided by the invention have the advantage of low cost, simplicity and practicability.

Description

A kind of method and system of restorer default configuration
Technical field
The present invention relates to network communication field, relate in particular to a kind of method and system of restorer default configuration.
Background technology
The method of existing recovery network equipment default configuration roughly is divided into the hardware realization and network is realized two kinds.Hard-wired method need provide specific device to equipment, and needs the hardware supports specific device of this network equipment.This method has increased hardware cost, and does not have a versatility.The method that network is realized needs the equipment access network, realizes configuration restore by the network remote fill order.This method by the network recovery default configuration needs external control machine and network to support, and is out of order at network, network environment is relatively poor and lack under the situation of external control machine, implements the comparison difficulty.
Summary of the invention
The technical problem to be solved in the present invention is, high and do not possess versatility at the method for restorer default configuration in the prior art or cost, be subjected to network environment to influence defectives such as bigger, a kind of cheap, general, method and system of dependency network and simple restorer default configuration not is provided.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of method of restorer default configuration is provided, comprises:
Whether have at least one pair of network interface to be connected with netting twine and in running order on S1, the checkout equipment, then enter working state of system if not, if execution in step S2 then, described netting twine connects when described device powers down;
The running parameter of S2, described at least one pair of network interface of backup;
S3, detect whether short circuit of described at least one pair of network interface, then recover the network interface running parameter that backs up among the described step S2 if not and enter described working state of system, if execution in step S4 then;
S4, restart described equipment to recover the default configuration that is configured to of described equipment.
In the method for restorer default configuration of the present invention, described step S4 also is included in described default configuration and recovers and stagger the time, and recovers the network interface running parameter that backs up among the described step S2 and enters described working state of system.
In the method for restorer default configuration of the present invention, described step S4 also is included in described default configuration when recovering successfully, to the user prompt successful information, and restarts described equipment after described netting twine and described at least one pair of network interface disconnect.
In the method for restorer default configuration of the present invention, described netting twine is twisted-pair feeder, and whether short circuit comprises described at least one pair of network interface of wherein said detection:
First network interface that disposes in described at least one pair of network interface is auto-negotiation mode;
Revise the operating rate of second network interface in described at least one pair of network interface, and close the auto-negotiation mode of described second network interface;
Detect described first network interface and whether the final operating rate of described second network interface mates, if described first and second network interface short circuits then.
In the method for restorer default configuration of the present invention, described netting twine is optical cable, and whether short circuit comprises described at least one pair of network interface of wherein said detection:
Close the Wake on LAN option of described at least one pair of network interface;
First network interface of revising in described at least one pair of network interface is down state;
Whether second network interface that detects in described at least one pair of network interface exists restarting process, if described first and second network interface short circuits then.
The present invention also provides a kind of system of restorer default configuration, comprises at least one pair of network interface on the equipment, and described system also comprises:
Whether interface detection module for detection of having at least one pair of network interface to be connected with netting twine and in running order, then notifies described equipment to enter working state of system if not, and described netting twine connects when described device powers down;
Memory module is used for judged result in described interface detection module and is the running parameter of described at least one pair of network interface of backup when being;
The short circuit detection module for detection of described at least one pair of network interface short circuit whether, is then notified described at least one pair of network interface to recover the network interface running parameter that backs up in the described memory module if not and is entered described working state of system;
Default configuration is recovered module, restarts described equipment to recover the default configuration that is configured to of described equipment when being used for judged result at described short circuit detection module and being being.
In the system of restorer default configuration of the present invention, described default configuration is recovered module and also is used for recovering in described default configuration and staggers the time, and notifies described at least one pair of network interface to recover the network interface running parameter that backs up in the described memory module and enters described working state of system.
In the system of restorer default configuration of the present invention, described default configuration is recovered module and also is used for when described default configuration is recovered successfully, to the user prompt successful information, and restarts described equipment after described netting twine and described at least one pair of network interface disconnection.
In the system of restorer default configuration of the present invention, described netting twine is twisted-pair feeder, and whether short circuit comprises described at least one pair of network interface of wherein said detection:
First network interface that disposes in described at least one pair of network interface is auto-negotiation mode;
Revise the operating rate of second network interface in described at least one pair of network interface, and close the auto-negotiation mode of described second network interface;
Detect described first network interface and whether the final operating rate of described second network interface mates, if described first and second network interface short circuits then.
In the system of restorer default configuration of the present invention, described netting twine is optical cable, and whether short circuit comprises described at least one pair of network interface of wherein said detection:
Close the Wake on LAN option of described at least one pair of network interface;
First network interface of revising in described at least one pair of network interface is down state;
Whether second network interface that detects in described at least one pair of network interface exists restarting process, if described first and second network interface short circuits then.
The beneficial effect of the method and system of a kind of restorer default configuration of the present invention is: utilize on the equipment short circuit between the network interface to realize recovering default configuration, do not need specific device or network to support with low cost and simple general-purpose.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the flow chart of the method for restorer default configuration according to an embodiment of the invention;
Fig. 2 points out the flow chart that recovers the default configuration successful method according to an embodiment of the invention;
Fig. 3 is the flow chart of twisted-pair feeder short circuit detection method according to an embodiment of the invention;
Fig. 4 is the flow chart of optical cable short circuit detection method according to an embodiment of the invention;
Fig. 5 is the flow chart of the method for restorer default configuration in accordance with another embodiment of the present invention;
Fig. 6 is the structured flowchart of the system of restorer default configuration according to an embodiment of the invention;
Fig. 7 is the outside schematic diagram of the system of restorer default configuration according to an embodiment of the invention.Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
Fig. 1 is the flow chart of the method for restorer default configuration according to an embodiment of the invention.In the present embodiment, the method for restorer default configuration is from step S1.In step S1, whether there is at least one pair of network interface to be connected with netting twine and in running order on the checkout equipment, then enter working state of system if not, if execution in step S2 then.Be connected on the network interface by the user when wherein, netting twine is device powers down.Before beginning execution in step S1, power supply opening need be made device power.In addition, can whether be in Carrier State according to network interface and judge whether network interface is in running order.
In step S2, the running parameter of above-mentioned at least one pair of network interface of backup.Particularly, can back up and be connected with netting twine and running parameters of at least one pair of in running order network interface all.For example, the running parameter of network interface can comprise operating rate, Wake on LAN option, dual-mode, auto-negotiation mode etc.The back-up job parameter can also be convenient to network interface and recover former operating state so that revise the network interface running parameter test in short circuit detects.
In step S3, detect whether short circuit of above-mentioned at least one pair of network interface, if the network interface running parameter that then backs up among the recovering step S2 and enter the said system operating state if not is execution in step S4 then.Particularly, can detect above-mentioned netting twine and in running order at least one pair of network interface short circuits whether all of being connected with.In the present invention, short circuit refers to use netting twine that two network interfaces of equipment are coupled together.Netting twine can include but not limited to twisted-pair feeder or optical cable, and for different netting twines, the method for short circuit is also different to judge network interface.
For example, if netting twine is twisted-pair feeder, detect so above-mentioned at least one pair of network interface (namely be connected with netting twine and all in running order at least one pair of network interface) whether the method for short circuit can comprise: first network interface that disposes in above-mentioned at least one pair of network interface is auto-negotiation mode; Revise the operating rate of second network interface in above-mentioned at least one pair of network interface, and close the auto-negotiation mode of second network interface; Detect the final operating rate of first network interface and second network interface and whether mate, if the first and second network interface short circuits then.In the present invention, auto-negotiation mode refers to, according to 28 defineds of IEEE802.3u standard, equipment is to the working method of moving (for example operating rate, dual-mode, Flow Control etc.) of the devices advertise oneself of link far-end, and the corresponding operational mode of sensing far-end equipment, the high workload mode of selecting two equipment all to have then.
Again for example, if netting twine is optical cable, detect so above-mentioned at least one pair of network interface (namely be connected with netting twine and all in running order at least one pair of network interface) whether the method for short circuit can comprise: the Wake on LAN option of closing above-mentioned at least one pair of network interface; First network interface of revising in above-mentioned at least one pair of network interface is down state; Whether second network interface that detects in above-mentioned at least one pair of network interface exists restarting process, if the first and second network interface short circuits then.Carry out one-time detection and can only illustrate that it is short circuit that this time detects, therefore can carry out repeated detection, if the result of repeated detection is short circuit, can determine that then network interface is short circuit.
In step S4, recover the default configuration that is configured to of the said equipment.In the present invention, the operation of the default configuration of restorer occurs in the start-up course of equipment, therefore, needs restarting equipment to finish recovery to the default configuration of equipment.
The method of a kind of restorer default configuration of the present invention utilizes on the equipment short circuit between the network interface to realize recovering default configuration, does not need specific device or network to support with low cost and simple general-purpose.
In a preferred embodiment of the invention, above-mentioned steps S4 can also be included in default configuration and recover and stagger the time, and the network interface running parameter that backs up among the recovering step S2 also enters working state of system.
In another preferred embodiment of the present invention, above-mentioned steps S4 can also be included in default configuration when recovering successfully, to the user prompt successful information, and disconnects the back restarting equipment at netting twine and network interface.To the user prompt successful information, can disconnect short circuit and then the restarting equipment of netting twine and network interface so that the user determines whether the equipment default configuration recovers success, thereby thoroughly realize the default configuration of restorer.
The method of pointing out can comprise multiple, and Fig. 2 shows the flow chart that prompting according to an embodiment of the invention recovers the default configuration successful method.In the present embodiment, prompting recovers the default configuration successful method from step 210.In step 210, enter the prompting flow process.
In step 220, judge whether to surpass prompt time, prompt time can be arranged in advance by the user, and for example 20 seconds, 1 minute etc., but the present invention is not limited to this.
If surpass prompt time, execution in step 230.In step 230, automatic restarting equipment.
If do not surpass prompt time, execution in step 240.In step 240, trigger the prompting action.
After triggering the prompting action, execution in step 250.In step 250, the sleep Preset Time for example 1 second, returns step 220 then.
Prompting like this, just can circulate.For example, can realize prompting by the regular flicker of network interface data light signal, because equipment network interface short circuit, by to one of them network interface timed sending packet, just can realize two regular flickers of network interface data light signal of short circuit, reach the effect of prompting, scintillation time can continue 20 seconds.Again for example, can realize prompting by the regular flicker of equipment LED lamp, because most network port device all disposes LED light, can be by regularly lighting LED light realizes the regular flicker of LED, thereby reach the effect of prompting, scintillation time can continue 20 seconds.
It is pointed out that this only is part embodiment of the present invention, be not limited to the present invention, in other embodiments of the invention, can also point out with the additive method except the lamp of rule flicker.For example, can special-purpose indicator light can also be set point out by voice suggestion, but the hardware of these methods on may increase equipment, raise the cost, and utilize on the equipment original lamp rule to glimmer to point out, can when equipment not being increased hardware burden, realize prompting.
After the user sees information, can pull out the netting twine that connects on the network interface, waiting facilities is restarted then.Except waiting for the automatic restarting equipment in prompt time (for example 20 seconds) back, can also directly press power key power-off restarting equipment by the user.After equipment restarts, enter working state of system, at this moment, illustrate that recovering default configuration finishes.
Fig. 3 is the flow chart of twisted-pair feeder short circuit detection method according to an embodiment of the invention.In the present embodiment, a pair of network interface ETH0 by twisted-pair feeder short circuit equipment and ETH1(short circuit is many to network interface as required in actual applications).According to the twisted-pair feeder short circuit detection method of present embodiment from step 310.In step 310, it is auto-negotiation mode that ETH1 is set.In step 320, it is 10Mb/s full duplex operating state that ETH0 is set, and closes the auto-negotiation mode of ETH0.In step 330, detect ETH1 and whether consult into the 10Mb/s operating rate.If not, then execution in step 370, in step 370, determine that ETH0 and ETH1 are not short circuits.If then execution in step 340, in step 340, revising ETH0 is 100Mb/s full duplex operating state, and closes the auto-negotiation mode of ETH1.In step 350, detect ETH1 and whether consult into the 100Mb/s operating rate.If not, execution in step 370 then.If then execution in step 360, in step 360, determine ETH0 and ETH1 short circuit.
Because present not all network interface is all supported the 1000Mb/s operating rate, so only carried out the negotiation detection of 10Mb/s and 100Mb/s operating rate in the present embodiment, but this just explanation for example, and be not used in restriction the present invention.
Fig. 4 is the flow chart of optical cable short circuit detection method according to an embodiment of the invention.In the present embodiment, a pair of network interface ETH0 by optical cable short circuit equipment and ETH1(short circuit is many to network interface as required in actual applications).According to the optical cable short circuit detection method of present embodiment from step 410.In step 410, close the Wake on LAN option of ETH0 and ETH1.Whether in step 420, judge detecting number of times is preset value greater than N(N, for example 10).If then execution in step 460, in step 460, determine ETH0 and ETH1 short circuit.If not, then execution in step 430, and in step 430, revising ETH0 is can not operating state.In step 440, detect ETH1 and whether have restarting process.If not, then execution in step 450, in step 550, determine that ETH0 and ETH1 are not short circuits.If, then return step 420, enter next time and detect.
Fig. 5 is the flow chart of the method for restorer default configuration in accordance with another embodiment of the present invention.In the present embodiment, a pair of network interface ETH0 by netting twine short circuit equipment and ETH1(short circuit is many to network interface as required in actual applications).According to the method for the restorer default configuration of present embodiment from step 501.In step 501, device start.In step 502, judged whether that at least one pair of network interface is connected with netting twine and in running order.If not, then execution in step 511, and in step 511, system enters operating state.If then execution in step 503, in step 503, record is connected with two network interfaces of netting twine, is respectively ETH0 and ETH1.In step 504, parameters such as the operating rate of backup ETH0 and ETH1, Wake on LAN option, auto-negotiation mode.In step 505, judge whether short circuit of ETH0 and ETH1.If not, then execution in step 510, in step 510, recover the network interface parameter of ETH0 and ETH1.If then execution in step 506, in step 506, recover default configuration.In step 507, judge whether recover default configuration makes mistakes.If then execution in step 510, recover the network interface parameter of ETH0 and ETH1.If not, then execution in step 508, in step 508, point out and successfully recovered default configuration.In step 509, after the user sees information, can pull out the netting twine that is connected on ETH0 and the ETH1, waiting facilities is restarted then.Except waiting for the automatic restarting equipment in prompt time (for example 20 seconds) back, can also directly press power key power-off restarting equipment by the user.After equipment restarts, enter working state of system, at this moment, illustrate that recovering default configuration finishes.
More than be preferred embodiments more of the present invention, be not limited to the present invention, in other embodiments of the invention, can comprise the described arbitrary characteristics of above any embodiment or its combination in any.
Fig. 6 is the structured flowchart of the system of restorer default configuration according to an embodiment of the invention.In the present embodiment, the system of restorer default configuration comprises interface detection module 610, memory module 620, short circuit detection module 630 and default configuration recovery module 640.This system also comprises at least one pair of network interface 650 on the equipment.
Interface detection module 610, can be for detection of whether there being at least one pair of network interface 650 to be connected with netting twine and in running order on the equipment, then announcement apparatus enters working state of system if not, if then notify the running parameter of above-mentioned at least one pair of network interface 650 of memory module 620 backups.Be connected on the network interface 650 by the user when wherein, netting twine is device powers down.Before beginning detection, power supply opening need be made device power.In addition, whether interface detection module 610 can be in Carrier State according to network interface and judge whether network interface is in running order.
Memory module 620 can be used for judged result in interface detection module 610 and be the running parameter of above-mentioned at least one pair of network interface 650 of backup when being.Particularly, memory module 620 can back up and be connected with netting twine and running parameters of at least one pair of in running order network interface 650 all.For example, the running parameter of network interface can comprise operating rate, Wake on LAN option, dual-mode, auto-negotiation mode etc.The back-up job parameter can also be convenient to network interface and recover former operating state so that revise the network interface running parameter test in short circuit detects.
Short circuit detection module 630, can be for detection of above-mentioned at least one pair of network interface 650 short circuit whether, then make network interface 650 recover the network interface running parameter of backup in the memory module 620 and enter the said system operating state if not, if then notify default configuration to recover module 640.Particularly, short circuit detection module 630 can detect above-mentioned netting twine and in running order at least one pair of network interface 650 short circuits whether all of being connected with.In the present invention, short circuit refers to use netting twine that two network interfaces of equipment are coupled together.Netting twine can include but not limited to twisted-pair feeder or optical cable, and for different netting twines, the method for short circuit is also different to judge network interface.
For example, if netting twine is twisted-pair feeder, short circuit detection module 630 detects above-mentioned at least one pair of network interface 650(and namely is connected with netting twine and in running order at least one pair of network interfaces all so) whether the method for short circuit can comprise: first network interface that disposes in above-mentioned at least one pair of network interface is auto-negotiation mode; Revise the operating rate of second network interface in above-mentioned at least one pair of network interface, and close the auto-negotiation mode of second network interface; Detect the final operating rate of first network interface and second network interface and whether mate, if the first and second network interface short circuits then.In the present invention, auto-negotiation mode refers to, according to 28 defineds of IEEE802.3u standard, equipment is to the working method of moving (for example operating rate, dual-mode, Flow Control etc.) of the devices advertise oneself of link far-end, and the corresponding operational mode of sensing far-end equipment, the high workload mode of selecting two equipment all to have then.
Again for example, if netting twine is optical cable, short circuit detection module 630 detects above-mentioned at least one pair of network interface 650(and namely is connected with netting twine and in running order at least one pair of network interfaces all so) whether the method for short circuit can comprise: the Wake on LAN option of closing above-mentioned at least one pair of network interface; First network interface of revising in above-mentioned at least one pair of network interface is down state; Whether second network interface that detects in above-mentioned at least one pair of network interface exists restarting process, if the first and second network interface short circuits then.Carry out one-time detection and can only illustrate that it is short circuit that this time detects, therefore can carry out repeated detection, if the result of repeated detection is short circuit, can determine that then network interface is short circuit.
Default configuration is recovered module 640, can be used for recovering the default configuration that is configured to of the said equipment.In the present invention, the operation of the default configuration of restorer occurs in the start-up course of equipment, therefore, needs restarting equipment thoroughly to finish recovery to the default configuration of equipment.
In the course of the work, at first make equipment be in off-position, use at least one pair of network interface 650, opening power then on the netting twine connection device.Whether interface detection module 610 can have at least one pair of network interface 650 to be connected with netting twine and in running order on the checkout equipment, then announcement apparatus enters working state of system if not, if then notify the running parameter of above-mentioned at least one pair of network interface 650 of memory module 620 backups.Behind the running parameter of memory module 620 backup network interfaces 650, short circuit detection module 630 can detect whether short circuit of above-mentioned at least one pair of network interface 650, then make network interface 650 recover the network interface running parameter of backup in the memory module 620 and enter the said system operating state if not, if then notify default configuration to recover module 640.Default configuration is recovered the default configuration that is configured to that module 640 can be recovered the said equipment.In the present invention, the operation of the default configuration of restorer occurs in the start-up course of equipment, therefore, needs restarting equipment thoroughly to finish recovery to the default configuration of equipment.
The system of a kind of restorer default configuration of the present invention utilizes on the equipment short circuit between the network interface to realize recovering default configuration, does not need specific device or network to support with low cost and simple general-purpose.
In a preferred embodiment of the invention, default configuration recovery module 640 can also be staggered the time for recovering in default configuration, makes above-mentioned at least one pair of network interface 650 recover the network interface running parameter of backup in memory modules 620 and enter working state of system.
In another preferred embodiment of the present invention, default configuration is recovered module 640 and can also be used for when default configuration is recovered successfully, to the user prompt successful information, and at netting twine and network interface disconnection back restarting equipment.To the user prompt successful information, can disconnect short circuit and then the restarting equipment of netting twine and network interface so that the user determines whether the equipment default configuration recovers success, thereby thoroughly realize the default configuration of restorer.
The method of pointing out can comprise multiple, and for example, at first, default configuration is recovered module 640 and entered the prompting flow process.Then, default configuration is recovered module 640 and can be judged whether to surpass prompt time, and prompt time can be arranged in advance by the user, and for example 20 seconds, 1 minute etc., but the present invention is not limited to this.If surpass prompt time, default configuration is recovered module 640 restarting equipment automatically.If do not surpass prompt time, default configuration is recovered module 640 can trigger the prompting action.For example, can realize prompting by the regular flicker of network interface data light signal, because equipment network interface short circuit, by to one of them network interface timed sending packet, just can realize two regular flickers of network interface data light signal of short circuit, reach the effect of prompting, scintillation time can continue 20 seconds.Again for example, can realize prompting by the regular flicker of equipment LED lamp, because most network port device all disposes LED light, can be by regularly lighting LED light realizes the regular flicker of LED, thereby reach the effect of prompting, scintillation time can continue 20 seconds.But this only is to illustrate for example, and is not used in restriction the present invention, in other embodiments of the invention, can also point out with the additive method except the lamp of rule flicker.For example, can special-purpose indicator light can also be set point out by voice suggestion, but the hardware of these methods on may increase equipment, raise the cost, and utilize on the equipment original lamp rule to glimmer to point out, can when equipment not being increased hardware burden, realize prompting.After triggering the prompting action, default configuration is recovered module 640 Preset Time of can sleeping, and for example 1 second, default configuration was recovered module 640 and can be rejudged whether surpass prompt time then, enters prompting next time.
After the user sees information, can pull out the netting twine that connects on the network interface, waiting facilities is restarted then.Except waiting for the automatic restarting equipment in prompt time (for example 20 seconds) back, can also directly press power key power-off restarting equipment by the user.After equipment restarts, enter working state of system, at this moment, illustrate that recovering default configuration finishes.
Fig. 7 is the outside schematic diagram of the system of restorer default configuration according to an embodiment of the invention.In the present embodiment, the network equipment 1 is provided with 4 network interfaces 3,4,5 and 6, also is provided with LED light 2, wherein is connected with netting twine 7 between the network interface 3 and 4.Though only show a pair of network interface short circuit among Fig. 7, the present invention is not limited to this, in other embodiments of the invention, can also support many to the network interface short circuit.
More than be preferred embodiments more of the present invention, be not limited to the present invention, in other embodiments of the invention, can comprise the described arbitrary characteristics of above any embodiment or its combination in any.
In various embodiment of the present invention, the recovery by the realization of the network interface short circuit on equipment equipment default configuration does not need specific device and network support, only needs some netting twines all can.Therefore, the present invention does not need to increase extra hardware device, has reduced cost, has improved versatility.And the present invention does not need to depend on network, has advantages of high practicability.
Though the present invention describes by specific embodiment, it will be appreciated by those skilled in the art that, without departing from the present invention, can also carry out various conversion and be equal to alternative the present invention.In addition, at particular condition or material, can make various modifications to the present invention, and not depart from the scope of the present invention.Therefore, the present invention is not limited to disclosed specific embodiment, and should comprise the whole execution modes that fall in the claim scope of the present invention.

Claims (10)

1. the method for a restorer default configuration is characterized in that, comprising:
Whether have at least one pair of network interface to be connected with netting twine and in running order on S1, the checkout equipment, then enter working state of system if not, if execution in step S2 then, described netting twine connects when described device powers down;
The running parameter of S2, described at least one pair of network interface of backup;
S3, detect whether short circuit of described at least one pair of network interface, then recover the network interface running parameter that backs up among the described step S2 if not and enter described working state of system, if execution in step S4 then;
S4, restart described equipment to recover the default configuration that is configured to of described equipment.
2. the method for restorer default configuration according to claim 1 is characterized in that, described step S4 also is included in described default configuration and recovers and stagger the time, and recovers the network interface running parameter that backs up among the described step S2 and enters described working state of system.
3. the method for restorer default configuration according to claim 1, it is characterized in that, described step S4 also is included in described default configuration when recovering successfully, to the user prompt successful information, and restarts described equipment after described netting twine and described at least one pair of network interface disconnect.
4. the method for restorer default configuration according to claim 1 is characterized in that, described netting twine is twisted-pair feeder, and whether short circuit comprises described at least one pair of network interface of wherein said detection:
First network interface that disposes in described at least one pair of network interface is auto-negotiation mode;
Revise the operating rate of second network interface in described at least one pair of network interface, and close the auto-negotiation mode of described second network interface;
Detect described first network interface and whether the final operating rate of described second network interface mates, if described first and second network interface short circuits then.
5. the method for restorer default configuration according to claim 1 is characterized in that, described netting twine is optical cable, and whether short circuit comprises described at least one pair of network interface of wherein said detection:
Close the Wake on LAN option of described at least one pair of network interface;
First network interface of revising in described at least one pair of network interface is down state;
Whether second network interface that detects in described at least one pair of network interface exists restarting process, if described first and second network interface short circuits then.
6. the system of a restorer default configuration comprises at least one pair of network interface on the equipment, it is characterized in that described system also comprises:
Interface detection module, whether for detection of having at least one pair of network interface to be connected with netting twine and in running order, then announcement apparatus enters working state of system if not, and described netting twine connects when described device powers down;
Memory module is used for judged result in described interface detection module and is the running parameter of described at least one pair of network interface of backup when being;
The short circuit detection module for detection of described at least one pair of network interface short circuit whether, is then notified described at least one pair of network interface to recover the network interface running parameter that backs up in the described memory module if not and is entered described working state of system;
Default configuration is recovered module, restarts described equipment to recover the default configuration that is configured to of described equipment when being used for judged result at described short circuit detection module and being being.
7. the system of restorer default configuration according to claim 6, it is characterized in that, described default configuration is recovered module and also is used for recovering in described default configuration and staggers the time, and notifies described at least one pair of network interface to recover the network interface running parameter that backs up in the described memory module and enters described working state of system.
8. the system of restorer default configuration according to claim 6, it is characterized in that, described default configuration is recovered module and also is used for when described default configuration is recovered successfully, to the user prompt successful information, and restarts described equipment after described netting twine and described at least one pair of network interface disconnection.
9. the system of restorer default configuration according to claim 6 is characterized in that, described netting twine is twisted-pair feeder, and whether short circuit comprises described at least one pair of network interface of wherein said detection:
First network interface that disposes in described at least one pair of network interface is auto-negotiation mode;
Revise the operating rate of second network interface in described at least one pair of network interface, and close the auto-negotiation mode of described second network interface;
Detect described first network interface and whether the final operating rate of described second network interface mates, if described first and second network interface short circuits then.
10. the system of restorer default configuration according to claim 6 is characterized in that, described netting twine is optical cable, and whether short circuit comprises described at least one pair of network interface of wherein said detection:
Close the Wake on LAN option of described at least one pair of network interface;
First network interface of revising in described at least one pair of network interface is down state;
Whether second network interface that detects in described at least one pair of network interface exists restarting process, if described first and second network interface short circuits then.
CN 201110179912 2011-06-30 2011-06-30 Method and system for restoring default configuration of equipment Active CN102231680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110179912 CN102231680B (en) 2011-06-30 2011-06-30 Method and system for restoring default configuration of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110179912 CN102231680B (en) 2011-06-30 2011-06-30 Method and system for restoring default configuration of equipment

Publications (2)

Publication Number Publication Date
CN102231680A CN102231680A (en) 2011-11-02
CN102231680B true CN102231680B (en) 2013-07-17

Family

ID=44844220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110179912 Active CN102231680B (en) 2011-06-30 2011-06-30 Method and system for restoring default configuration of equipment

Country Status (1)

Country Link
CN (1) CN102231680B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445872B (en) * 2018-10-22 2021-10-15 成都安恒信息技术有限公司 Method for determining physical position of each network port by multi-network-port Linux server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6581166B1 (en) * 1999-03-02 2003-06-17 The Foxboro Company Network fault detection and recovery
CN1956387A (en) * 2005-10-24 2007-05-02 中兴通讯股份有限公司 Method for improving working stability of Ethernet port of communication equipment
CN101262375A (en) * 2008-04-21 2008-09-10 北京星网锐捷网络技术有限公司 A dynamic configuration recovery method and system for network devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6581166B1 (en) * 1999-03-02 2003-06-17 The Foxboro Company Network fault detection and recovery
CN1956387A (en) * 2005-10-24 2007-05-02 中兴通讯股份有限公司 Method for improving working stability of Ethernet port of communication equipment
CN101262375A (en) * 2008-04-21 2008-09-10 北京星网锐捷网络技术有限公司 A dynamic configuration recovery method and system for network devices

Also Published As

Publication number Publication date
CN102231680A (en) 2011-11-02

Similar Documents

Publication Publication Date Title
CN100419699C (en) Method and device remotely automatic recovering CMOS date with network
US7302352B2 (en) Method and system for providing dying gasp support for a network component
CN102882267B (en) Power supply device, electronic equipment and power supply method
CN104679347A (en) Method for solving failure of touch screen of mobile terminal and mobile terminal
CN103257514A (en) Communication device and control method for communication device
CN110908841A (en) I2C communication abnormity recovery method and device
CN101867468A (en) Hot reboot processing method for power over Ethernet switch and power over Ethernet switch
CN102833445A (en) Image forming apparatus that shifts to state where quick activation is possible, and method of controlling the same
CN102880527A (en) Data recovery method of baseboard management controller
CN101207519A (en) Version server, operation maintenance unit and method for restoring failure
CN102915265A (en) BMC (baseboard management controller) loop test method and system
CN102096646A (en) Method and device for starting wireless communication terminal
CN113630281B (en) BYPASS control method, device, terminal and storage medium
CN112114901B (en) Standby control circuit, method, device and storage medium
CN102231680B (en) Method and system for restoring default configuration of equipment
CN104394582A (en) WiFi sleeping method for Android device
CN204633817U (en) A kind of remote desktop control system
US8412146B2 (en) Mutual awakening system and method thereof between a handheld device and a wireless communication module
CN104898070A (en) Power supply test method and device
CN205071015U (en) Ethernet power supply unit
CN101930382A (en) Method, circuit and terminal for starting terminal with memory
KR20150104435A (en) Method of performing transition of operation mode for a routing processor
CN103648029B (en) The energising guard method of intelligent television and system
CN100383772C (en) Automatic power supply running system for computer hard disk
CN101739115A (en) Simplified type host computer and method for wakening same

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200612

Address after: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518000 No. 1001 Nanshan Chi Park building A1 layer

Patentee after: SANGFOR TECHNOLOGIES Inc.

Address before: 518000 Nanshan Science and Technology Pioneering service center, No. 1 Qilin Road, Guangdong, Shenzhen 418, 419,

Patentee before: Shenxin network technology (Shenzhen) Co.,Ltd.