CN103533069B - Method for starting automatic configuration of network equipment and network equipment - Google Patents

Method for starting automatic configuration of network equipment and network equipment Download PDF

Info

Publication number
CN103533069B
CN103533069B CN201310499133.3A CN201310499133A CN103533069B CN 103533069 B CN103533069 B CN 103533069B CN 201310499133 A CN201310499133 A CN 201310499133A CN 103533069 B CN103533069 B CN 103533069B
Authority
CN
China
Prior art keywords
network equipment
ftp
configuration file
ftp server
control port
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
CN201310499133.3A
Other languages
Chinese (zh)
Other versions
CN103533069A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201310499133.3A priority Critical patent/CN103533069B/en
Publication of CN103533069A publication Critical patent/CN103533069A/en
Application granted granted Critical
Publication of CN103533069B publication Critical patent/CN103533069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method for starting automatic configuration of network equipment and network equipment, and relates to the technical field of communication, and solves the problems that the starting of the network equipment is slow and bandwidth is wasted due to the fact that the network equipment still can enter the automatic configuration process under a nonautomatic configuration scene. The method provided by the invention specifically comprises the steps as follows: whether the network equipment is under the nonautomatic configuration scene with no need for configuration is judged according to a method of detection of the short circuit condition of a control port of the network equipment before the network equipment starts the automatic configuration, and the network equipment is confirmed to be in the nonautomatic configuration scene when the condition that the control port of the network equipment is not in short circuit is detected, so that the problems that the starting of the network equipment is slow and the bandwidth is wasted due to the fact that the network equipment still can enter the automatic configuration process under the nonautomatic configuration scene in the prior art are solved. The embodiment of the invention is mainly used for the automatic configuration process of the network equipment.

Description

A kind of network equipment starts the method and the network equipment for automatically configuring
Technical field
The present invention relates to communication technical field, more particularly to a kind of network equipment starts the method that automatically configures and network sets It is standby.
Background technology
With the application and popularization of enterprise network, network equipment distribution is wide, quantity is more, by attendant's human configuration equipment Cost rapidly improve.For solving this problem, prior art proposes the technical scheme for automatically configuring the network equipment, it is intended to subtract Few artificial participation, simplifies equipment installation flow process.
The technical scheme flow process that this automatically configures the network equipment is specific as follows, including:
The network equipment first determines whether configuration startup of dispatching from the factory after starting, if yes then enter flow process is automatically configured, otherwise Terminate the flow process and do not perform the operation for automatically configuring.After startup automatically configures flow process, first by DHCP(Dynamic Host Configuration Protocol, DHCP)Mode obtains the parameter of automatic configuration flow, is then turned on TFTP(Trivial File Transfer Protocol, TFTP)Request is according to acquired DHCP parameters Go to obtain configuration file, then delete this equipment provisional configuration file and the configuration file that dispatches from the factory, finally perform the configuration text of acquisition Part, automatically configures flow process so as to complete this.
When said method flow process is performed, inventor has found that prior art at least has following technical problem:
1)If by judging whether the network equipment is to dispatch from the factory to determine whether to enter by way of configuration starts to automatically configure flow process, The network equipment can be made under the scene of non-automatic configuration, the flow process for automatically configuring can be still entered, so as to cause the network equipment to open It is dynamic slow, and due to the problem for being broadcasting packet, also causing bandwidth waste for sending;To avoid this situation from occurring, then again Need attendant manually to participate in the configuration flow of the network equipment, thus run counter to the purpose for automatically configuring.
2)As on equipment, line is more, if user's misconnection cable, can cause network loop;To avoid this situation from sending out It is raw, then need attendant manually to participate in the configuration flow of the network equipment again, thus run counter to the purpose for automatically configuring.
The content of the invention
Embodiments of the invention provide a kind of network equipment and start the method and the network equipment for automatically configuring, for solving net Network equipment can still enter the network equipment for automatically configuring flow process and causing under the scene of non-automatic configuration and start slow and wave Take bandwidth and the network equipment is solved the problems, such as in automatic configuration process it is possible that loop.
For reaching above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
The embodiment provides a kind of network equipment starts the method for automatically configuring, including:
After the network equipment starts, judge whether control port is shorted, when judging that control port is shorted and system is When empty configuration starts, the network equipment starts and automatically configures, and the otherwise described network equipment does not start and automatically configures.
For preventing user's misconnection cable from causing equipment to occur network loop in automatic configuration process, on starting device Open port isolation function.
The embodiment of the present invention additionally provides a kind of network equipment, including:
Whether detection module, for judging whether the control port of the place network equipment is shorted and being that empty configuration is opened It is dynamic, when the control port for judging the place network equipment is shorted and starts for empty configuration, notifies that starting module starts and match somebody with somebody automatically Put;
Starting module, for the notice according to detection module, enters the place network equipment and automatically configures flow process.
Method and the network equipment that a kind of startup network equipment provided in an embodiment of the present invention is automatically configured, by network Equipment starts the method for automatically configuring that the control port of the front detection network equipment is shorted situation, judges whether this network equipment is located Under the non-automatic configuration scene that need not be configured, compared in prior art only starting before the network equipment automatically configures Whether detecting system is that empty configuration starts to determine the need for carrying out the mode that the network equipment is automatically configured, and increased judgement control The step of whether port processed is shorted, during so as to not being shorted in the control port for detecting the network equipment, determines that the network sets It is standby to be in non-automatic configuration scene, therefore do not start the network equipment and automatically configure, solve in prior art in non-automatic configuration Scene under can still enter the network equipment that automatically configures flow process and cause and start the slow, problem of bandwidth waste.
The embodiment of the present invention additionally provide it is a kind of for preventing from automatically configuring the device of flow network loop, including:
Port isolation equipment, by opening port isolation function on network devices, prevents user's misconnection cable and draws Play the possibility sex chromosome mosaicism that loop occurs in network.
A kind of method of network equipment starting device configuration provided in an embodiment of the present invention and the network equipment, by starting The method that the control port of the network equipment is shorted situation is detected before device configuration, is judged whether this network equipment is in and is not needed Under the non-automatic configuration scene for being configured, compared in prior art, only before starting device configuration, whether detecting system is empty Configuration starts to determine the need for carrying out the mode of device configuration, increased and the step of whether control port is shorted judged, During so as to not being shorted in the control port for detecting the network equipment, determine that the network equipment is in non-automatic configuration scene, because This not starting device configuration, solve in prior art can still enter under the scene of non-automatic configuration automatically configure flow process and The network equipment for causing starts slow problem.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is that a kind of network equipment provided in an embodiment of the present invention starts the method flow diagram for automatically configuring;
Fig. 2 is that a kind of network equipment provided in an embodiment of the present invention starts the specific implementation method procedure Procedure for automatically configuring Figure;
Fig. 3 is that another kind of network equipment provided in an embodiment of the present invention starts the method flow diagram for automatically configuring;
Fig. 4 is that another kind of network equipment provided in an embodiment of the present invention starts the method flow diagram for automatically configuring;
Fig. 5 is that another kind of network equipment provided in an embodiment of the present invention starts the method flow diagram for automatically configuring;
Fig. 6 is that another kind of network equipment provided in an embodiment of the present invention starts the method flow diagram for automatically configuring;
Fig. 7 is a kind of schematic device of network equipment provided in an embodiment of the present invention;
Fig. 8 is the schematic device of another kind of network equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Embodiments provide a kind of network equipment and start the method for automatically configuring, be applied to the automatic of the network equipment During configuration, automatically configure and refer to and referring to that the network equipment no longer needs artificial participation after power, the network equipment is just A kind of collocation method of device configuration can be completed, its flow chart is as shown in figure 1, specifically include:
101st, after network equipment startup, judge whether control port is shorted and system starts for empty configuration, if judging As a result for being then to enter step 102, if judged result is for otherwise into step 103.
102nd, the network equipment starts and automatically configures.
Wherein, be shorted when judging control port, and system be when starting for empty configuration, illustrate the network equipment by Configured, it is not necessary to enter and automatically configure flow process, then, the network equipment directly initiates the configuration mode being currently configured In.
103rd, the network equipment does not start and automatically configures.
A kind of network equipment provided in an embodiment of the present invention starts the method for automatically configuring, by before starting device is configured The method that the control port of the detection network equipment is shorted situation, judges whether this network equipment is in what is need not configured Under non-automatic configuration scene, compared in prior art, only before starting device configuration, whether detecting system is that empty configuration starts Determine the need for carrying out the mode of device configuration, increased and the step of whether control port is shorted judged, so as in detection When going out the control port of the network equipment and not being shorted, the network equipment is determined in non-automatic configuration scene, therefore do not start and set Standby configuration, can still enter the network for automatically configuring flow process and causing under the scene of non-automatic configuration in solving prior art Equipment starts slow problem.
In order to judge described in implementation steps 101 whether control port is shorted, the invention provides specific method stream Journey, it is concrete as shown in Fig. 2 including:
201st, the level signal of previously selected at least two pin of the network equipment detection control port.
The previously selected control port pin mentioned in the step, is not used because current in the typically optional network equipment And idle control port pin.
202nd, adjust the level signal of any one in previously selected at least two pin.
The adjustment action is used for making level signal produce change to be different from current level signal, for example, if level Signal only has the timesharing of high level and low level, if then the level signal of control port pin is currently high level, adjusts it It is just low level afterwards, on the contrary it is similar.If level signal has two or more quantification gradations, adjustment when need to only be adjusted to Current different level.
203rd, detect again the level signal of previously selected at least two pin.
In the present embodiment, above-mentioned steps 201 to 203 are intended to determine that previously selected at least two control ports pin is It is no in short circuit state, therefore, step 203 require ensure to confirm controlled control port pin in execution step 202 Level signal has enough time perform after having influence on be possible to other control port pins being affected.Thus may be used See, may need to wait for a period of time to be further continued for execution step 203 after execution step 202, this period can be according to reality Measurement or empirical value are set, and can also be not provided with this period certainly for the network equipment of level signal sensitive.
204th, when adjustment before control port each previously selected pin level signal it is identical, and adjustment after each When the level signal of previously selected pin is identical, determine that the control port of the network equipment is shorted.
Wherein, it is described when the level signal of each previously selected pin of control port before adjustment is identical, and adjust When the level signal of each previously selected pin is identical afterwards, the pin of control port must be shorted, it is thus determined that should The network equipment needs to be automatically configured.It should be noted that in the present invention is example, selection is control when the network equipment When the pin of port processed is shorted, it is believed that the network equipment needs to be automatically configured.Other similar sides can certainly be adopted Formula assert whether the network equipment needs to be automatically configured, and such as when the pin of the control port of the network equipment is shorted, recognizes Need not carry out the similar fashion such as automatically configuring for the network equipment, will not be described here.
205th, when the level signal of each previously selected pin of control port before adjustment is different, or, control after adjustment When the level signal of each previously selected pin of port processed is different, determine that the control port of the network equipment is not short Connect.
Wherein, when the level signal of each previously selected pin of control port before adjustment is different, or, control after adjustment When the level signal of each previously selected pin of port processed is different, the pin of control port must not be shorted, because This determines that the network equipment need not be configured, can directly according to existing configuration operation.
In embodiments of the present invention, by, after the network equipment in non-automatic configuration scene is predefined, not locating The mode of short circuit is carried out at least two idle control port pins of the network equipment of non-automatic configuration scene, so as to become After one of pin level of the control port of the dynamic network equipment, detect whether other pin level signals are identical, so as to sentence Break and the control port of the network equipment and whether be shorted so that the network equipment can know whether which needs to be matched somebody with somebody automatically Put, the probability implemented is provided for starting the judgement for automatically configuring.
In order to obtain configuration file necessary to automatic Configuration network equipment, and the network equipment is automatically configured, this How inventive embodiments start the network equipment in being also directed to step 204 automatically configures three kinds of implementations of offer, specific as follows:
The first implementation:
Its flow chart is as shown in figure 3, specifically include:
301st, all FPDP enable ports are isolated by the network equipment, receive first obtained needed for configuration file Required parameter information, the first required parameter information include FTP(File Transfer Protocol, file transfer protocol (FTP)) Authentication information, configuration file mark needed for the address information of server, the access ftp server.
In the present embodiment, the isolation of all FPDP enable ports is to prevent because of construction by the network equipment FPDP connection error is caused network loop occur by personnel, hence in so that the phenomenon that whole net normally can not be used occurs.Institute Request method that the first required parameter information can be specified by DHCP is stated to Dynamic Host Configuration Protocol server acquisition request.Its concrete request flow process For general DHCP modes in the industry, the embodiment of the present invention does not do excessive description to this.
In addition, the authentication information accessed needed for the ftp server generally comprised the user name of ftp server and The information such as password, the configuration file mark can be represented by configuration filename.
302nd, the address information according to ftp server, the network equipment sends a FTP to the ftp server please Ask, a FTP is asked to obtain for the network equipment and started required configuration file when automatically configuring, and described the One FTP requests are carried and access authentication information needed for the ftp server, configuration file mark.
303rd, the network equipment receive that the ftp server asks in response to a FTP and send with it is described Configuration file identifies corresponding configuration file.
Ftp server, can be first right according to the FTP authentication informations of network equipment transmission when the FTP requests are responded The identity of the network equipment is authenticated, and after certification passes through, can just search and the configuration file corresponding configuration file of mark.
304th, the network equipment carries out device configuration according to the configuration file for receiving.
In embodiments of the present invention, configuration file is asked to ftp server after getting configuration information, and receiving The method that the network equipment is automatically configured is carried out to after configuration file, completes the flow process that the network equipment is automatically configured.With prior art Compare, this method embodiment using by FTP by the way of obtain the mode of configuration file, adopted with prior art The mode of TFTP is compared, and when configuration file is obtained, needs to be authenticated with the authentication information of FTP, so with higher peace Quan Xing.
Second implementation:
Its purpose of design is in order that the network equipment can be obtained and be matched somebody with somebody in the case where getting configuration file mark Put the configuration file needed for the network equipment.
Its flow chart is as shown in figure 4, specifically include:
401st, all FPDP enable ports are isolated by the network equipment, receive second obtained needed for configuration file Required parameter information, the second required parameter information include the address information of ftp server, access the ftp server institute The authentication information for needing.
402nd, the address information according to ftp server, the network equipment sends the 2nd FTP to the ftp server please Ask, when the 2nd FTP asks to automatically configure for network equipment acquisition startup, required configuration file is corresponding configures text Part is identified, and the 2nd FTP requests carry the authentication information accessed needed for the ftp server.
403rd, the network equipment receive startup that the ftp server ask in response to the 2nd FTP and send oneself Required configuration file corresponding configuration file mark during dynamic configuration.
In this step, ftp server is sent out to the network equipment after the 2nd FTP requests for receiving network equipment transmission Intermediate file is sent, configuration file corresponding with the network equipment is searched and obtained to the network equipment after this intermediate file is received Mark.Wherein, the intermediate file is used for providing configuration file mark corresponding with the MAC Address of the network equipment.
404th, the address information according to ftp server, the network equipment sends the 3rd FTP to the ftp server please Ask, the 3rd FTP is asked to obtain for the network equipment and started required configuration file when automatically configuring, and described the Three FTP requests are carried and access authentication information needed for the ftp server, configuration file mark.
405th, the network equipment receive that the ftp server asks in response to the 3rd FTP and send with it is described Configuration file identifies corresponding configuration file.
406th, the network equipment carries out device configuration according to the configuration file for receiving.
In embodiments of the present invention, obtained from ftp server after getting the configuration information for lacking configuration file mark Configuration file mark is taken, and then configuration file is asked to ftp server again, and is carried out device configuration after configuration file is received Method, complete the flow process of device configuration so that the network equipment get lack configuration file mark configuration information after, still The configuration file needed for Configuration network equipment can be so obtained, and then completes device configuration.
The third implementation:
Its purpose of design obtains asking when identifying less than configuration file in order to make up by above-mentioned first two implementation Topic.Can also use under the configuration file identical scene of a large amount of network equipments.
Its flow chart is as shown in figure 5, specifically include:
501st, all FPDP enable ports are isolated by the network equipment, receive the 3rd obtained needed for configuration file Required parameter information, the 3rd required parameter information include the address information of ftp server, access the ftp server institute The authentication information for needing.
502nd, the address information according to ftp server, the network equipment sends the 4th FTP to the ftp server please Ask, the 4th FTP asks to obtain public configuration file, and the described 4th when starting and automatically configure for the network equipment FTP requests carry the authentication information accessed needed for the ftp server.
Wherein, the public configuration file is used for being configured for all network equipments to be configured, is only used for as net Basic configuration information necessary to the operation of network device configuration, or, for when the configuration needed for all network equipments to be configured When file is identical, it is that the network equipment is configured.
What the 503rd, the network equipment received that the ftp server asks in response to the 4th FTP and send public matches somebody with somebody Put file.
504th, the network equipment carries out device configuration according to the public configuration file for receiving.
In embodiments of the present invention, if the network equipment cannot get configuration file mark, or, all nets to be configured Configuration file needed for network equipment is identical, after getting link information necessary to connection ftp server, directly from FTP Server obtains the mode of public configuration file, completes the flow process of device configuration so that the network equipment is in several cases, complete Forming apparatus are automatically configured.
301,401 and 501 middle port isolation action of above step is completing by the port isolation equipment in the network equipment 's.
Implementation above mode in addition to it independently can realize the network equipment and automatically configure, the embodiment of the present invention also here The method flow that another kind of network equipment startup is automatically configured, idiographic flow such as Fig. 6 institutes are provided with reference to three of the above implementation Show, specifically include:
601st, all FPDP enable ports are isolated by the network equipment.
602nd, the network equipment receives the 4th required parameter information obtained needed for configuration file, judges that the described 4th please Whether identify including configuration file in seeking parameter information, it is such as no, into step 603, otherwise into step 604.
603rd, the network equipment is according to the address information of the ftp server in the 4th required parameter information and described Authentication information needed for ftp server, sends the 5th FTP requests to the ftp server, and the 5th FTP is asked for institute State the network equipment and obtain startup required configuration file corresponding configuration file mark when automatically configuring, if the network equipment from The ftp server receives the corresponding configuration file mark of required configuration file when startup is automatically configured, then into step 604, otherwise into step 605.
604th, the network equipment sends the 6th FTP requests to the ftp server, and the 6th FTP is asked for institute State the network equipment and obtain and start configuration file required when automatically configuring, and the 6th FTP requests are carried described in access Authentication information needed for ftp server, configuration file mark;If the network equipment is received from the ftp server Required configuration file when automatically configuring to startup, into step 606;Step 605 is entered otherwise.
605th, the network equipment is according to the address information of the ftp server in the 4th required parameter information and described Authentication information needed for ftp server, sends the 7th FTP requests to the ftp server, and the 7th FTP is asked for institute State and when the network equipment starts configuration, obtain public configuration file, and the 7th FTP requests carry the access FTP service Authentication information needed for device;If the network equipment receives public configuration file from the ftp server, into step 606。
606th, the network equipment carries out device configuration according to the configuration file for receiving.
607th, terminate to automatically configure flow process.
In addition, especially, it should be noted that, start in the network equipment and automatically configure and configuration file loading is completed Afterwards, the network management system being connected with the network equipment starts detection of connectivity, and such as detection passes through, then the network equipment is matched somebody with somebody automatically Put flow process to terminate, otherwise send a warning message.
Wherein, detection of connectivity is preferably using by the corresponding network equipment in the logical configuration files of network guard system ping The mode of IP address, and the result that the network equipment is automatically configured is shown upon completion of the assays.And pass-through mode three completes network and sets In the standby configuration file for automatically configuring, the IP address of the corresponding network equipment is identified not comprising configuration file, so, it is impossible to carry out The inspection of connectivity, after the completion of the network equipment is automatically configured, directly terminates to automatically configure flow process.Wherein, the network management system For managing and monitoring the terminal unit in the network.
The method that a kind of startup network equipment provided in an embodiment of the present invention is automatically configured, by starting certainly in the network equipment The method that the control port of the detection network equipment is shorted situation before dynamic configuration, judges whether this network equipment is in enter Under the non-automatic configuration scene of row configuration, compared in prior art, only before starting the network equipment and automatically configuring, detecting system is It is no to start to determine the need for carrying out the mode that the network equipment is automatically configured for empty configuration, increased and whether judge control port The step of being shorted, during so as to not being shorted in the control port for detecting the network equipment, determine the network equipment in it is non-from Dynamic configuration scene, therefore do not start the network equipment and automatically configure, solve in prior art under the scene of non-automatic configuration according to The network equipment for automatically configuring flow process and causing can so be entered and start the slow, problem of bandwidth waste.
A kind of network equipment provided in an embodiment of the present invention, as shown in fig. 7, to realize as shown in arbitrary in Fig. 1 to Fig. 6 Method flow, the network equipment includes:
Whether detection module 71, for judging whether the control port of the place network equipment is shorted and being that empty configuration is opened It is dynamic, when the control port for judging the place network equipment is shorted and starts for empty configuration, notifies that starting module starts and match somebody with somebody automatically Put;
Starting module 72, for the notice according to detection module 71, enters the place network equipment and automatically configures flow process.
In addition, the detection module 71 is additionally operable to the level letter of previously selected at least two pin for detecting control port Number;Adjust the level signal of any one in previously selected at least two pin;Again detect described Yu Xianxuanding At least two pins level signal;Before adjusting, the level signal of each previously selected pin of control port is identical, And when the level signal of each previously selected pin is identical after adjusting, determine that the control port of the network equipment is short Connect;When the level signal difference of each previously selected pin of control port before adjustment, or, after adjustment, control port is each When the level signal of individual previously selected pin is different, determine that the control port of the network equipment is not shorted.;
The starting module 72, is additionally operable to the place network equipment into after automatically configuring flow process, first by all data terminals The isolation of mouth enable port.
In addition, as shown in figure 8, the starting module 72 includes:
Acquiring unit 81, for obtain obtain when the place network equipment starts and automatically configures needed for configuration file first please Parameter information, the first required parameter information is asked to include the address information of ftp server, access needed for the ftp server Authentication information;
Transmitting element 82, for when the first required parameter information for obtaining includes that configuration file is identified, according to FTP The address information of server, sends FTP requests to the ftp server, and a FTP is asked for obtaining place net Network equipment starts configuration file required when automatically configuring, and FTP requests carry the access ftp server Required authentication information, configuration file mark;And/or be additionally operable to not include when the first required parameter information for obtaining When configuration file is identified, according to the address information of ftp server, the 2nd FTP requests are sent to the ftp server, described the Two FTP ask for obtain the place network equipment start automatically configure when the corresponding configuration file of required configuration file, and institute State the 2nd FTP requests and carry the authentication information accessed needed for the ftp server;And/or be additionally operable to when described for obtaining When one required parameter information does not include that configuration file is identified, according to the address information of ftp server, send out to the ftp server The 3rd FTP is sent to ask, the 3rd FTP asks to obtain public configuration file when starting and automatically configure for the network equipment, And the 3rd FTP requests carry the authentication information accessed needed for the ftp server;
Receiving unit 83, is matched somebody with somebody with described for receive that the ftp server asks in response to a FTP and send Put the corresponding configuration file of file identification;With or, asking in response to the 2nd FTP and sending out for receiving the ftp server Send with the configuration file corresponding configuration file of mark;With or, for receiving the ftp server in response to the described 3rd The public configuration file that FTP is asked and sent;
Dispensing unit 84, carries out device configuration according to the configuration file for receiving.
A kind of network equipment provided in an embodiment of the present invention, by detecting that network sets before the network equipment starts and automatically configures The method that standby control port is shorted situation, judges whether this network equipment is in the non-automatic configuration that need not be configured Under scene, compared in prior art, only before starting the network equipment and automatically configuring, whether detecting system is that empty configuration startup comes true It is fixed whether to need to carry out the mode that the network equipment is automatically configured, increased and the step of whether control port is shorted judged, so as to When the control port for detecting the network equipment is not shorted, the network equipment is determined in non-automatic configuration scene, therefore not Start the network equipment to automatically configure, can still enter under the scene of non-automatic configuration in solving prior art and automatically configure stream Journey and the network equipment that causes starts the slow, problem of bandwidth waste.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be borrowed Software is helped to add the mode of required common hardware to realize, naturally it is also possible to which by hardware, but the former is more preferably in many cases Embodiment.Based on such understanding, the portion that technical scheme is substantially contributed to prior art in other words Divide and can be embodied in the form of software product, the computer software product is stored in the storage medium that can read, such as count The floppy disk of calculation machine, hard disk or CD etc., use so that a computer equipment including some instructions(Can be personal computer, Server, or the network equipment etc.)Perform the method described in each embodiment of the invention.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by the scope of the claims.

Claims (9)

1. a kind of network equipment starts the method for automatically configuring, it is characterised in that methods described includes:
After the network equipment starts, judge whether control port is shorted, when judging that control port is shorted and system is matched somebody with somebody for sky When putting startup, the network equipment starts and automatically configures, and the otherwise described network equipment does not start and automatically configures;
The method for judging whether control port is shorted, including:
The level signal of previously selected at least two pin of the network equipment detection control port;
Adjust the level signal of any one in previously selected at least two pin;
Again detect the level signal of previously selected at least two pin;
Before adjusting, the level signal of each previously selected pin of control port is identical, and each preselects after adjusting Pin level signal it is identical when, determine that the control port of the network equipment is shorted;
When the level signal difference of each previously selected pin of control port before adjustment, or, control port after adjustment When the level signal of each previously selected pin is different, determine that the control port of the network equipment is not shorted.
2. method according to claim 1, it is characterised in that the network equipment start automatically configure including:
All FPDPs are started port isolation function by the network equipment, receive the first request obtained needed for configuration file Parameter information, the first required parameter information include the address information of file transfer protocol (FTP) ftp server, access the FTP Authentication information needed for server, configuration file mark;
Address information of the network equipment according to ftp server, sends FTP requests to the ftp server, and described the One FTP is asked to obtain for the network equipment and is started configuration file required when automatically configuring, and FTP requests Carry the authentication information needed for the access ftp server, the configuration file to identify;
The network equipment receives the ftp server and asks in response to a FTP and sending with the configuration file Identify corresponding configuration file;
The network equipment carries out device configuration according to the configuration file for receiving.
3. method according to claim 1, it is characterised in that the network equipment start automatically configure including:
All FPDPs are started port isolation function by the network equipment, receive the second request obtained needed for configuration file Parameter information, the second required parameter information include the address information of ftp server, access needed for the ftp server Authentication information;
According to the address information of ftp server, the network equipment sends the 2nd FTP requests to the ftp server, and described the Two FTP ask to obtain the corresponding configuration file mark of required configuration file when startup is automatically configured for the network equipment, and And the 2nd FTP requests carry the authentication information accessed needed for the ftp server;
When the network equipment receives the startup that the ftp server asks in response to the 2nd FTP and send and automatically configures The corresponding configuration file mark of required configuration file;
According to the address information of ftp server, the network equipment sends the 3rd FTP requests to the ftp server, and described the Three FTP are asked to obtain for the network equipment and are started configuration file required when automatically configuring, and the 3rd FTP requests Carry the authentication information needed for the access ftp server, the configuration file to identify;
The network equipment receives the ftp server and asks in response to the 3rd FTP and sending with the configuration file Identify corresponding configuration file;
The network equipment carries out device configuration according to the configuration file for receiving.
4. method according to claim 1, it is characterised in that the network equipment start automatically configure including:
All FPDPs are started port isolation function by the network equipment, receive the 3rd request obtained needed for configuration file Parameter information, the 3rd required parameter information include the address information of ftp server, access needed for the ftp server Authentication information;
According to the address information of ftp server, the network equipment sends the 4th FTP requests to the ftp server, and described the Four FTP ask to obtain public configuration file when starting and automatically configure for the network equipment, and the 4th FTP requests are taken With the authentication information accessed needed for the ftp server;
The network equipment receives the public configuration file that the ftp server is asked in response to the 4th FTP and sent;
The network equipment carries out device configuration according to the public configuration file for receiving.
5. method according to claim 1, it is characterised in that the network equipment automatically configure including:
All FPDPs are started port isolation function by A, the network equipment;
B, the network equipment receive the 4th required parameter information obtained needed for configuration file, judge the 4th required parameter Whether identify including configuration file in information, it is such as no, into step C, otherwise into step D;
C, the network equipment address information and FTP clothes according to the ftp server in the 4th required parameter information Authentication information needed for business device, sends the 5th FTP requests to the ftp server, and the 5th FTP is asked for the network Equipment obtains startup required configuration file corresponding configuration file mark when automatically configuring, if the network equipment is from described Ftp server receives the corresponding configuration file mark of required configuration file when startup is automatically configured, then into step D, otherwise Into step E;
D, the network equipment send the 6th FTP requests to the ftp server, and the 6th FTP is asked for the network Equipment is obtained and starts configuration file required when automatically configuring, and the 6th FTP requests carry the access FTP service Authentication information needed for device, configuration file mark;If the network equipment receives startup certainly from the ftp server Required configuration file during dynamic configuration, into step F, otherwise into step E;
E, the network equipment address information and FTP clothes according to the ftp server in the 4th required parameter information Authentication information needed for business device, sends the 7th FTP requests to the ftp server, and the 7th FTP is asked for the network Equipment obtains public configuration file when starting configuration, and the 7th FTP requests are carried needed for the access ftp server Authentication information;If the network equipment receives public configuration file from the ftp server, into step F;
F, the network equipment carry out device configuration according to the configuration file for receiving;
G, end automatically configure flow process.
6. the method according to any one of claim 2 to 5, it is characterised in that methods described also includes:Set in the network After the completion of standby startup is automatically configured and loads configuration file, the network management system being connected with the network equipment starts connective inspection Survey, such as detection passes through, then the network equipment automatically configures flow process and terminates, and otherwise sends a warning message.
7. a kind of network equipment, it is characterised in that include:
Detection module, for judging whether the control port of the place network equipment is shorted and being whether that empty configuration starts, when When judging that the control port of the place network equipment is shorted and starts for empty configuration, notify that starting module starts and automatically configure;
Starting module, for the notice according to detection module, enters the place network equipment and automatically configures flow process;
The detection module is additionally operable to:
The level signal of previously selected at least two pin of detection control port;Adjust described previously selected at least two The level signal of any one in pin;Again detect the level signal of previously selected at least two pin;Work as tune The level signal of each previously selected pin of whole front control port is identical, and each previously selected pin after adjusting When level signal is identical, determine that the control port of the network equipment is shorted;When each advance choosing of control port before adjustment The level signal of fixed pin is different, or, after adjustment, the level signal of each previously selected pin of control port is different When, determine that the control port of the network equipment is not shorted.
8. the network equipment according to claim 7, it is characterised in that the starting module, is additionally operable to the place network equipment Into automatically configuring after flow process, all FPDPs are started into port isolation function first.
9. the network equipment according to claim 7 or 8, it is characterised in that the starting module includes:
Acquiring unit, it is for obtaining the first required parameter information during to be launched automatically configuring needed for acquisition configuration file, described First required parameter information includes the authentication information needed for the address information of ftp server, the access ftp server;
Transmitting element, for when the first required parameter information for obtaining includes that configuration file is identified, according to ftp server Address information, send FTP requests to the ftp server, a FTP asked for obtaining the place network equipment Start configuration file required when automatically configuring, and FTP requests are carried needed for the access ftp server Authentication information, configuration file mark;Or, being additionally operable to not include configuration file when the first required parameter information for obtaining During mark, according to the address information of ftp server, the 2nd FTP requests, the 2nd FTP requests is sent to the ftp server For obtain the place network equipment start automatically configure when the corresponding configuration file mark of required configuration file, and described second FTP requests carry the authentication information accessed needed for the ftp server;Or, being additionally operable to when the first request ginseng for obtaining When number information does not include that configuration file is identified, according to the address information of ftp server, the 3rd FTP is sent to the ftp server Request, the 3rd FTP ask to obtain public configuration file when starting and automatically configure for the network equipment, and described the Three FTP requests carry the authentication information accessed needed for the ftp server;
Receiving unit, asks in response to a FTP and sending with the configuration file for receiving the ftp server Identify corresponding configuration file;Or, be additionally operable to receive the ftp server asks in response to the 2nd FTP and sends with The configuration file identifies corresponding configuration file;Or, be additionally operable to receive the ftp server please in response to the 3rd FTP The public configuration file asked and send;
Dispensing unit, carries out device configuration according to the configuration file for receiving.
CN201310499133.3A 2013-10-22 2013-10-22 Method for starting automatic configuration of network equipment and network equipment Active CN103533069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310499133.3A CN103533069B (en) 2013-10-22 2013-10-22 Method for starting automatic configuration of network equipment and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310499133.3A CN103533069B (en) 2013-10-22 2013-10-22 Method for starting automatic configuration of network equipment and network equipment

Publications (2)

Publication Number Publication Date
CN103533069A CN103533069A (en) 2014-01-22
CN103533069B true CN103533069B (en) 2017-03-22

Family

ID=49934733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310499133.3A Active CN103533069B (en) 2013-10-22 2013-10-22 Method for starting automatic configuration of network equipment and network equipment

Country Status (1)

Country Link
CN (1) CN103533069B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106712991A (en) * 2015-11-16 2017-05-24 上海易杵行智能科技有限公司 Method and system of terminal device to automatically configure network essential data
CN107124293B (en) * 2017-03-13 2020-07-03 广州华多网络科技有限公司 Protocol management method and system of distributed network system
CN109460189B (en) * 2018-11-14 2022-12-09 郑州云海信息技术有限公司 Initialization method and device of storage system
CN110213274B (en) * 2019-05-31 2022-06-21 深信服科技股份有限公司 File transmission method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791029A (en) * 2005-12-23 2006-06-21 杭州华为三康技术有限公司 Method and system for automatically gaining configuration management server initial allocation
CN101136769A (en) * 2006-09-01 2008-03-05 中兴通讯股份有限公司 Method and system to automatically configure ADSL terminal equipment
CN102594944A (en) * 2012-03-19 2012-07-18 杭州华三通信技术有限公司 Automatic configuration method and network device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4466245B2 (en) * 2004-07-16 2010-05-26 日本電気株式会社 Redundant packet network standby system switching system and method
US20090183161A1 (en) * 2008-01-16 2009-07-16 Pasi Kolinummi Co-processor for stream data processing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791029A (en) * 2005-12-23 2006-06-21 杭州华为三康技术有限公司 Method and system for automatically gaining configuration management server initial allocation
CN101136769A (en) * 2006-09-01 2008-03-05 中兴通讯股份有限公司 Method and system to automatically configure ADSL terminal equipment
CN102594944A (en) * 2012-03-19 2012-07-18 杭州华三通信技术有限公司 Automatic configuration method and network device

Also Published As

Publication number Publication date
CN103533069A (en) 2014-01-22

Similar Documents

Publication Publication Date Title
US11507450B2 (en) Systems and methods to reprogram mobile devices via a cross-matrix controller to port connection
US20210176355A1 (en) Using automatically collected device problem information to route and guide users' requests
WO2016082417A1 (en) Device configuration method, configuration apparatus and management device
US10096951B1 (en) Contraband detection through smart power components
CN103944869B (en) Access the method and high in the clouds connector of remote resource
US10405361B2 (en) Switching-on method, base station, base station controller, switching-on system and storage medium
CN109768871A (en) Configure method, host and the storage medium of multiple Microsoft Loopback Adapters
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN103533069B (en) Method for starting automatic configuration of network equipment and network equipment
CN101795449B (en) Wireless network terminal access control method and device thereof
CN103648094A (en) Method, device and system for detecting illegal wireless access point
CN104247484B (en) Terminal installation, communication means, computer-readable recording medium and communication system
CN110381489A (en) Bluetooth connecting method, display terminal and television set
CN107645789A (en) The method, apparatus and system of networking
EP3804371A1 (en) Device for wireless communication with other devices
CN107426755B (en) Base station problem troubleshooting method and device, computer readable storage medium and computer equipment
CN112817248A (en) Shared device management method and device, storage medium and electronic device
CN103823702A (en) Application installation method and electronic equipment
EP3570495A1 (en) Device management method and related device
US9294865B2 (en) Enhanced system and method for custom programming of large groups of phones without requiring additional equipment
CN105472481B (en) Intercommunication system and method
CN111343193B (en) Cloud network port security protection method and device, electronic equipment and storage medium
CN103516739B (en) The elimination method and device of STA
CN114866265A (en) Network connection method, router, administrator terminal device, and communication device
US12034607B2 (en) LED display screen controller and display control system

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 16 Hing Hing Road, Chengdu high tech Development Zone, Sichuan, China 16

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.