CN113556250B - Network equipment batch configuration method and device - Google Patents

Network equipment batch configuration method and device Download PDF

Info

Publication number
CN113556250B
CN113556250B CN202110823281.0A CN202110823281A CN113556250B CN 113556250 B CN113556250 B CN 113556250B CN 202110823281 A CN202110823281 A CN 202110823281A CN 113556250 B CN113556250 B CN 113556250B
Authority
CN
China
Prior art keywords
network equipment
springboard
configuration
network
library
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
CN202110823281.0A
Other languages
Chinese (zh)
Other versions
CN113556250A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110823281.0A priority Critical patent/CN113556250B/en
Publication of CN113556250A publication Critical patent/CN113556250A/en
Application granted granted Critical
Publication of CN113556250B publication Critical patent/CN113556250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Abstract

The invention provides a method and a device for batch configuration of network equipment, which can be applied to the field of finance, and the method comprises the following steps: establishing a network equipment configuration file template library and a springboard network equipment library; matching the network equipment to be configured with the springboard network equipment in the springboard network equipment library through a template in the network equipment configuration file template library; and carrying out first configuration on the network equipment to be configured according to the connected springboard network equipment. By establishing a 'network equipment configuration file template library', network management personnel only need to prepare a 'network equipment batch configuration table', the system can automatically complete the first configuration of the network equipment in batches without manual configuration, the misoperation risk is eliminated, the level of the 'network equipment first configuration' in different areas can be quickly raised to the same level by applying the template in the whole enterprise, and the influence caused by 'short plate effect' is eliminated.

Description

Network equipment batch configuration method and device
Technical Field
The present application belongs to the technical field of network device initialization configuration, and in particular, to a method and an apparatus for batch configuration of network devices.
Background
In the network management of an enterprise, a new working scene of network equipment in batch exists. After the network manager gets the new device, it needs to make specific command configuration for each network device according to the actual purpose of the device. The conventional method has some defects that the time required for the first configuration of the network equipment is related to the knowledge level and the proficiency level of the network management personnel, particularly in large enterprises, branch equipment is replaced due every year, and the initial configuration of a large number of network equipment occupies a large amount of working time of the network management personnel. Secondly, the complexity of the first configuration of the network equipment is related to the actual use of the equipment. Taking a large enterprise as an example, in the first configuration of the network device, besides the functional configurations such as VLAN, route, NTP, SNMP, and the like, the security configurations such as AAA, ACL, MAC binding, and the like are also included. If all the configurations are manually completed by a person, it is difficult to ensure that no misoperation occurs. Thirdly, if the levels of network managers in different areas inside the enterprise are uneven, short boards in the areas with the poor levels cannot be quickly filled, and therefore the overall informatization level of the enterprise is lowered.
Disclosure of Invention
The application provides a network equipment batch configuration method and device, which are used for at least solving the problem that the initial configuration difference of network equipment is large due to the fact that the levels of technicians are inconsistent at present.
According to a first aspect of the present application, a method for batch configuration of network devices is provided, which includes:
establishing a network equipment configuration file template library and a springboard network equipment library;
matching the network equipment to be configured with the springboard network equipment in the springboard network equipment library through a template in the network equipment configuration file template library;
and carrying out first configuration on the network equipment to be configured according to the connected springboard network equipment.
In one embodiment, establishing a network device profile template library and a springboard network device library includes:
storing the name of the network equipment, the loopback address, the vlan address, the internetwork interconnection address and the port distribution condition in a parameter mode to obtain a network equipment configuration file template;
storing the name and the management IP address of the springboard network equipment to generate a springboard network equipment library;
and accessing the springboard network equipment into a local area network.
In an embodiment, matching a network device to be configured with a springboard network device in a springboard network device library through a template in a network device configuration file template library includes:
carrying out communication connection on the network equipment to be configured and the springboard network equipment;
and carrying out login pairing on the springboard network equipment and the factory IP address of the network equipment to be configured.
In an embodiment, the first configuring, according to the connected springboard network device, the network device to be configured includes:
modifying the port configuration on the springboard network equipment to a specific port;
accessing a factory IP address through a specific port to log in network equipment to be configured;
reading a file template in a network equipment configuration file template library and filling corresponding configuration information into the file template to generate a complete configuration file;
and writing the configuration file into the network equipment to be configured and restarting the network equipment.
In an embodiment, the network device batch configuration method further includes:
and the network equipment is restarted and then returns to the springboard network equipment, and the specific port is closed.
According to a second aspect of the present application, there is also provided a network device batch configuration apparatus, including:
the initial establishing unit is used for establishing a network equipment configuration file template library and a springboard network equipment library;
the matching unit is used for matching the network equipment to be configured with the springboard network equipment in the springboard network equipment library through the template in the network equipment configuration file template library;
and the first configuration unit is used for carrying out first configuration on the network equipment to be configured according to the connected springboard network equipment.
In one embodiment, the primary establishing unit includes:
the configuration file template acquisition module is used for storing the network equipment name, the loopback address, the vlan address, the internetwork interconnection address and the port distribution condition in a parameter mode to acquire a network equipment configuration file template;
the springboard network equipment library generating module is used for storing the name of the springboard network equipment and the management IP address to generate a springboard network equipment library;
and the network access module is used for accessing the springboard network equipment into the local area network.
In one embodiment, the matching unit includes:
the communication connection module is used for carrying out communication connection on the network equipment to be configured and the springboard network equipment;
and the login pairing module is used for performing login pairing on the springboard network equipment and the factory IP address of the network equipment to be configured.
In one embodiment, the first configuration unit includes:
the port modification module is used for modifying the port configuration on the springboard network equipment to a specific port;
the access module is used for accessing the factory IP address through a specific port to log in the network equipment to be configured;
the configuration information filling module is used for reading a file template in a network equipment configuration file template library and filling corresponding configuration information into the file template to generate a complete configuration file;
and the initial setting module is used for writing the configuration file into the network equipment to be configured and restarting the network equipment.
According to a third aspect of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the network device batch configuration method when executing the program.
According to a fourth aspect of the present application, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the network device batch configuration method.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a network device batch configuration method provided in the present application.
Fig. 2 is a flowchart of establishing a network device configuration file template library and a springboard network device library in the embodiment of the present application.
Fig. 3 is a flowchart of matching a network device with a springboard network device in the embodiment of the present application.
Fig. 4 is a flowchart illustrating a first configuration of a network device to be configured according to a connected springboard network device in the embodiment of the present application.
Fig. 5 is a network topology structure diagram in the embodiment of the present application.
Fig. 6 is a block diagram of a network device batch configuration apparatus provided in the present application.
Fig. 7 is a block diagram of a structure of a primary building unit in the embodiment of the present application.
Fig. 8 is a block diagram of a matching unit in the embodiment of the present application.
Fig. 9 is a block diagram of a first configuration unit in the embodiment of the present application.
Fig. 10 is a specific implementation of an electronic device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the method and apparatus for implementing batch configuration of network devices disclosed in the present application may be used in the field of financial technology, and may also be used in any field other than the field of financial technology.
In the network management of an enterprise, a new working scene of network equipment in batch exists. After the network manager gets the new device, it needs to make specific command configuration for each network device according to the actual purpose of the device. The conventional method has some defects that the time required for the first configuration of the network equipment is related to the knowledge level and the proficiency level of the network management personnel, particularly in large enterprises, branch equipment is replaced due every year, and the initial configuration of a large number of network equipment occupies a large amount of working time of the network management personnel. Secondly, the complexity of the first configuration of the network equipment is related to the actual use of the equipment. Taking a large enterprise as an example, in the first configuration of the network device, besides the functional configurations such as VLAN, route, NTP, SNMP, and the like, the security configurations such as AAA, ACL, MAC binding, and the like are also included. If all the configurations are manually completed by a human, it is difficult to ensure that no misoperation occurs. Thirdly, if the levels of network managers in different areas inside the enterprise are uneven, short boards in the areas with the insufficient levels cannot be quickly filled, and therefore the overall informatization level of the enterprise is lowered.
Based on this, a method for batch configuration of network devices needs to be established through a machine learning technology, and technical effects of improving working efficiency, optimizing human resource configuration of enterprises and quickly raising the level of' first configuration of network devices in different areas to the same level can be achieved.
The application provides a network equipment batch configuration method, a network equipment batch configuration device, electronic equipment and a computer readable medium, wherein a network equipment configuration file template library is established, network management personnel only need to prepare a network equipment batch configuration table, the system can automatically complete the first configuration of the network equipment in batch without manual configuration, misoperation risks are eliminated, the template is applied in the whole enterprise, the network equipment first configuration levels in different areas can be quickly raised to the same level, and the influence caused by short plate effect is eliminated.
According to the foregoing, the present application further provides a network device batch configuration apparatus for implementing the network device batch configuration method provided in one or more embodiments of the present application, where the network device batch configuration apparatus may communicate with a client device by itself or through a third-party server or the like, and return an execution result to the client.
It is understood that the client devices may include smart phones, tablet electronic devices, network set-top boxes, portable computers, desktop computers, personal Digital Assistants (PDAs), in-vehicle devices, smart wearable devices, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In another practical application scenario, the aforementioned portion of the network device batch configuration performed by the network device batch configuration apparatus may be executed in the server as described above, or all operations may be completed in the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. If all the operations are completed in the client device, the client device may further include a processor for performing specific processing of batch configuration of the network device.
The client device may have a communication module (i.e., a communication unit), and may be communicatively connected to a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
The server and the client device may communicate using any suitable network protocol, including network protocols not yet developed at the filing date of this application. The network protocol may include, for example, a TCP/IP protocol, a UDP/IP protocol, an HTTP protocol, an HTTPS protocol, or the like. Of course, the network Protocol may also include, for example, an RPC Protocol (Remote Procedure Call Protocol), a REST Protocol (Representational State Transfer Protocol), and the like used above the above Protocol.
The following embodiments and application examples are specifically and individually described in detail.
As shown in fig. 1, the present application provides a method for batch configuration of network devices, including:
s101: and establishing a network equipment configuration file template library and a springboard network equipment library.
S102: and matching the network equipment to be configured with the springboard network equipment in the springboard network equipment library through the template in the network equipment configuration file template library.
S103: and carrying out first configuration on the network equipment to be configured according to the connected springboard network equipment.
In an embodiment, establishing a network device profile template library and a springboard network device library, as shown in fig. 2, includes:
s201: and storing the name of the network equipment, the loopback address, the vlan address, the internetwork interconnection address and the port distribution condition in a parameter mode to obtain a network equipment configuration file template.
S202: and storing the name of the springboard network equipment and the management IP address to generate a springboard network equipment library.
S203: and accessing the springboard network equipment into the local area network.
In an embodiment, matching the network device to be configured with the springboard network device in the springboard network device library through the template in the network device configuration file template library, as shown in fig. 3, includes:
s301: and performing communication connection on the network equipment to be configured and the springboard network equipment.
S302: and carrying out login pairing on the springboard network equipment and the factory IP address of the network equipment to be configured.
In an embodiment, the first configuring, according to the connected springboard network device, the network device to be configured, as shown in fig. 4, includes:
s401: modifying the port configuration on the springboard network device to a particular port.
S402: and accessing the factory IP address through a specific port to log in the network equipment to be configured.
S403: and reading a template file in a network equipment configuration file template library and filling corresponding configuration information into the template file to generate a complete configuration file.
S404: and writing the configuration file into the network equipment to be configured and restarting the network equipment.
In an embodiment, the network device batch configuration method further includes:
and the network equipment is restarted and then returns to the springboard network equipment, and the specific port is closed.
In one embodiment, the present application includes the following apparatus and system:
the network equipment to be configured and the network equipment in a factory state need to be configured for the first time, so that the functions of the equipment are improved.
The springboard network equipment is arranged between the network equipment to be configured and the automatic configuration system, and plays a role of a springboard, so that the automatic configuration system can access the network equipment to be configured.
The system can access the network equipment to be configured through the springboard network equipment, and automatically complete the first configuration of the network equipment to be configured according to a preset template. The network topology is shown in fig. 5.
And establishing a template library of the network equipment configuration files in the automatic configuration system, and storing configuration templates of all types of network equipment in the enterprise. The template carries out personalized configuration such as equipment name, loopback address, vlan address, internetwork address, port distribution and the like, and records the personalized configuration in a parameter mode; other common types are configured and recorded in a constant manner.
And establishing an equipment library of the springboard network equipment in the automatic configuration system, and storing the names, the management IP addresses and other information of all the springboard network equipment in the enterprise. And the springboard network equipment is accessed to the enterprise local area network, so that the automatic configuration system can log in the springboard network equipment.
And connecting the network equipment to be configured with the springboard network equipment, so that the springboard network equipment can log in the network equipment to be configured by accessing the factory IP address of the network equipment to be configured.
The network manager prepares a network equipment batch configuration table, and each line of the table represents the equipment name, the loopback address, the vlan address, the internet address, the port distribution and other personalized configurations of a certain network equipment to be configured.
And a network manager logs in the automatic configuration system through the operation terminal. And uploading the network equipment batch configuration table in the process 4 in the system, and initiating automatic configuration through the system. After traversing each row of records in the reading table, the automatic configuration system circularly executes the following processes:
s1, logging in a certain row of recorded springboard network equipment, closing all ports on the springboard network equipment, modifying port configuration on the springboard network equipment to enable the springboard network equipment to access to the network equipment to be configured, and then opening a specific port of the row of records;
s2, logging in the network equipment to be configured by accessing the factory IP address;
s3, reading the template file, filling the personalized configuration of the row record after the personalized configuration is in one-to-one correspondence with the parameters of the template file, generating a complete configuration file and storing and backing up the complete configuration file;
s4, writing the configuration file into the network equipment to be configured, and restarting the network equipment to be configured;
s5, returning to the springboard network equipment, and closing the specific port of the row record;
and S6, exiting the springboard network equipment.
And after the automatic configuration system completes the configuration of all the network equipment in the batch, logging in the network equipment one by one again, and verifying whether the configuration such as the user password is accurate or not. And finally, recording and outputting configuration and verification results.
Based on the same inventive concept, the embodiment of the present application further provides a device for batch configuration of network devices, which can be used to implement the method described in the above embodiment, as described in the following embodiments. The principle of the device for batch configuration of network equipment for solving the problems is similar to that of a method for batch configuration of network equipment. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
According to the second aspect of the present application, there is also provided a network device batch configuration apparatus, as shown in fig. 6, including:
a primary establishing unit 601, configured to establish a network device configuration file template library and a springboard network device library;
a matching unit 602, configured to match the network device to be configured with the springboard network device in the springboard network device library through the template in the network device configuration file template library;
a first configuration unit 603, configured to perform first configuration on the network device to be configured according to the connected springboard network device.
In one embodiment, as shown in fig. 7, the primary establishing unit 601 includes:
a configuration file template obtaining module 701, configured to store a network device name, a loopback address, a vlan address, an internetwork address, and a port distribution condition in a parameter manner, so as to obtain a network device configuration file template;
a springboard network device library generating module 702, configured to store the name of the springboard network device and the management IP address to generate a springboard network device library;
the network access module 703 is configured to access the springboard network device to a local area network.
In one embodiment, as shown in fig. 8, the matching unit 602 includes:
a communication connection module 801, configured to perform communication connection between a network device to be configured and a springboard network device;
the login pairing module 802 is configured to perform login pairing on the springboard network device and the factory IP address of the network device to be configured.
In one embodiment, as shown in fig. 9, the first configuration unit 603 includes:
a port modification module 901, configured to modify a port configuration on the springboard network device to a specific port;
an access module 902, configured to access a factory IP address through a specific port to log in a network device to be configured;
a configuration information filling module 903, configured to read a template file in a network device configuration file template library and fill corresponding configuration information into the template file to generate a complete configuration file;
and a first setting module 904, configured to write the configuration file into the network device to be configured and restart the network device.
In one embodiment, the present application includes the following apparatus and system:
the network equipment to be configured and the network equipment in a factory state need to be configured for the first time, so that the functions of the equipment are improved.
The springboard network equipment is arranged between the network equipment to be configured and the automatic configuration system, and plays a role of a springboard, so that the automatic configuration system can access the network equipment to be configured.
The system can access the network equipment to be configured through the springboard network equipment, and automatically complete the first configuration of the network equipment to be configured according to a preset template. The network topology is shown in fig. 5.
And establishing a template library of the network equipment configuration files in the automatic configuration system, and storing configuration templates of all types of network equipment in the enterprise. The template carries out personalized configuration such as equipment name, loopback address, vlan address, internetwork address, port distribution and the like, and records the personalized configuration in a parameter mode; other common types are configured and recorded in a constant manner.
And establishing an equipment library of the springboard network equipment in the automatic configuration system, and storing the names, the management IP addresses and other information of all the springboard network equipment in the enterprise. And the springboard network equipment is accessed to the enterprise local area network, so that the automatic configuration system can log in the springboard network equipment.
And connecting the network equipment to be configured with the springboard network equipment, so that the springboard network equipment can log in the network equipment to be configured by accessing the factory IP address of the network equipment to be configured.
The network manager prepares a network equipment batch configuration table, and each line of the table represents the equipment name, the loopback address, the vlan address, the internet address, the port distribution and other personalized configurations of a certain network equipment to be configured.
And a network manager logs in the automatic configuration system through the operation terminal. And uploading the network equipment batch configuration table in the process 4 in the system, and initiating automatic configuration through the system. After traversing each row of records in the reading table, the automatic configuration system circularly executes the following processes:
s1, logging in a certain row of recorded springboard network equipment, closing all ports on the springboard network equipment, modifying port configuration on the springboard network equipment to enable the springboard network equipment to access to the network equipment to be configured, and then opening a specific port of the row of records;
s2, logging in the network equipment to be configured by accessing the factory IP address;
s3, reading the template file, filling the personalized configuration of the row record after the personalized configuration is in one-to-one correspondence with the parameters of the template file, generating a complete configuration file and storing and backing up the complete configuration file;
s4, writing the configuration file into the network equipment to be configured, and restarting the network equipment to be configured;
s5, returning to the springboard network equipment, and closing the specific port of the row record;
and S6, exiting the springboard network equipment.
And after the automatic configuration system completes the configuration of all the network equipment in the batch, logging in the network equipment one by one again, and verifying whether the configuration such as the user password is accurate or not. And finally, recording and outputting configuration and verification results.
According to the method, the template base of the configuration file of the network equipment is established, network management personnel only need to prepare one batch configuration table of the network equipment, the system can automatically complete the first configuration of the network equipment in batches, manual configuration is not needed, misoperation risks are eliminated, the templates are applied in the whole enterprise, the first configuration of the network equipment in different areas can be quickly pulled up to the same level, and the influence caused by the short plate effect is eliminated.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention. An embodiment of the present application further provides a specific implementation manner of an electronic device capable of implementing all steps in the method in the foregoing embodiment, and referring to fig. 10, the electronic device specifically includes the following contents:
a processor (processor) 1001, a memory 1002, a communication Interface (Communications Interface) 1003, a bus 1004, and a nonvolatile memory 1005;
the processor 1001, the memory 1002, and the communication interface 1003 complete mutual communication through the bus 1004;
the processor 1001 is configured to call the computer programs in the memory 1002 and the nonvolatile memory 1005, and when the processor executes the computer programs, the processor implements all the steps in the method in the foregoing embodiments, for example, when the processor executes the computer programs, the processor implements the following steps:
s101: and establishing a network equipment configuration file template library and a springboard network equipment library.
S102: and matching the network equipment to be configured with the springboard network equipment in the springboard network equipment library through the template in the network equipment configuration file template library.
S103: and carrying out first configuration on the network equipment to be configured according to the connected springboard network equipment.
Embodiments of the present application further provide a computer-readable storage medium capable of implementing all the steps of the method in the foregoing embodiments, where the computer-readable storage medium stores a computer program, and the computer program implements all the steps of the method in the foregoing embodiments when executed by a processor, for example, the processor implements the following steps when executing the computer program:
s101: and establishing a network equipment configuration file template library and a springboard network equipment library.
S102: and matching the network equipment to be configured with the springboard network equipment in the springboard network equipment library through the template in the network equipment configuration file template library.
S103: and carrying out first configuration on the network equipment to be configured according to the connected springboard network equipment.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the hardware + program class embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment. Although embodiments of the present description provide method steps as described in embodiments or flowcharts, more or fewer steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When implemented in an actual device or end product, can be executed sequentially or in parallel according to the methods shown in the embodiments or figures (e.g., parallel processor or multi-thread processing environments, even distributed data processing environments). The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, in implementing the embodiments of the present description, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units, and the like. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein. The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the embodiments of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction. The above description is only an example of the embodiments of the present disclosure, and is not intended to limit the embodiments of the present disclosure. Various modifications and variations to the embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present specification should be included in the scope of the claims of the embodiments of the present specification.

Claims (9)

1. A network device batch configuration method is characterized by comprising the following steps:
establishing a network equipment configuration file template library and a springboard network equipment library;
matching the network equipment to be configured with the springboard network equipment in the springboard network equipment library through the file template in the network equipment configuration file template library, wherein the matching comprises the following steps:
accessing the springboard network equipment to a local area network;
performing communication connection on the network equipment to be configured and the springboard network equipment;
carrying out login pairing on the springboard network equipment and the factory IP address of the network equipment to be configured in the file template;
and configuring the network equipment to be configured according to the matched springboard network equipment.
2. The method of claim 1, wherein the creating a network device configuration file template library and a springboard network device library comprises:
storing the name of the network equipment, the loopback address, the vlan address, the internetwork interconnection address and the port distribution condition in a parameter mode, and acquiring a network equipment configuration file template to generate a network configuration file template library;
and storing the name of the springboard network equipment and the management IP address to generate a springboard network equipment library.
3. The method of claim 2, wherein configuring the network device to be configured according to the matched springboard network device comprises:
modifying the port configuration on the springboard network device to a specific port;
accessing the factory IP address through the specific port to log in the network equipment to be configured;
reading a file template in the network equipment configuration file template library and filling corresponding configuration information into the file template to generate a complete configuration file;
and writing the configuration file into the network equipment to be configured.
4. The method for batch configuration of network devices according to claim 3, further comprising:
and the network equipment is restarted and then returns to the springboard network equipment, and the specific port is closed.
5. A network device batch configuration device is characterized by comprising:
the initial establishing unit is used for establishing a network equipment configuration file template library and a springboard network equipment library;
the matching unit is used for matching the network equipment to be configured with the springboard network equipment in the springboard network equipment library through the file template in the network equipment configuration file template library; the matching unit includes:
the network access module is used for accessing the springboard network equipment to a local area network;
the communication connection module is used for carrying out communication connection on the network equipment to be configured and the springboard network equipment;
the login pairing module is used for performing login pairing on the springboard network equipment and the factory IP address of the network equipment to be configured in the file template;
and the first configuration unit is used for configuring the network equipment to be configured according to the matched springboard network equipment.
6. The apparatus of claim 5, wherein the primary establishing unit comprises:
the configuration file template acquisition module is used for storing the network equipment name, the loopback address, the vlan address, the internetwork interconnection address and the port distribution condition in a parameter mode, acquiring a network equipment configuration file template and generating a network configuration file template library;
and the springboard network equipment library generating module is used for storing the name of the springboard network equipment and the management IP address to generate a springboard network equipment library.
7. The apparatus of claim 6, wherein the first configuration unit comprises:
the port modification module is used for modifying the port configuration on the springboard network equipment into a specific port;
the access module is used for accessing the factory IP address through the specific port to log in the network equipment to be configured;
the configuration information filling module is used for reading a file template in the network equipment configuration file template library and filling corresponding configuration information into the file template to generate a complete configuration file;
and the primary setting module is used for writing the configuration file into the network equipment to be configured.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the batch configuration method of network devices according to any one of claims 1 to 4 when executing the program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for bulk configuration of network devices of any of claims 1 to 4.
CN202110823281.0A 2021-07-21 2021-07-21 Network equipment batch configuration method and device Active CN113556250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110823281.0A CN113556250B (en) 2021-07-21 2021-07-21 Network equipment batch configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110823281.0A CN113556250B (en) 2021-07-21 2021-07-21 Network equipment batch configuration method and device

Publications (2)

Publication Number Publication Date
CN113556250A CN113556250A (en) 2021-10-26
CN113556250B true CN113556250B (en) 2022-12-20

Family

ID=78103667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110823281.0A Active CN113556250B (en) 2021-07-21 2021-07-21 Network equipment batch configuration method and device

Country Status (1)

Country Link
CN (1) CN113556250B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262376A (en) * 2008-04-21 2008-09-10 北京星网锐捷网络技术有限公司 A method and system for modifying configuration of network device in batch mode
US9253034B1 (en) * 2009-06-01 2016-02-02 Juniper Networks, Inc. Mass activation of network devices
CN109947494A (en) * 2017-12-20 2019-06-28 北京神州泰岳软件股份有限公司 A kind of management method and device of configuration file
CN110300017A (en) * 2019-05-22 2019-10-01 北京百度网讯科技有限公司 Standard configuration generating means and method and network equipments configuration error correction device and method
CN110474792A (en) * 2018-05-11 2019-11-19 华为技术有限公司 Network collocating method, equipment and system
CN111181758A (en) * 2019-08-01 2020-05-19 腾讯科技(深圳)有限公司 Configuration file generation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262376A (en) * 2008-04-21 2008-09-10 北京星网锐捷网络技术有限公司 A method and system for modifying configuration of network device in batch mode
US9253034B1 (en) * 2009-06-01 2016-02-02 Juniper Networks, Inc. Mass activation of network devices
CN109947494A (en) * 2017-12-20 2019-06-28 北京神州泰岳软件股份有限公司 A kind of management method and device of configuration file
CN110474792A (en) * 2018-05-11 2019-11-19 华为技术有限公司 Network collocating method, equipment and system
CN110300017A (en) * 2019-05-22 2019-10-01 北京百度网讯科技有限公司 Standard configuration generating means and method and network equipments configuration error correction device and method
CN111181758A (en) * 2019-08-01 2020-05-19 腾讯科技(深圳)有限公司 Configuration file generation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"部署堡垒机保障运维安全";艾奇昆;《网络安全技术与应用》;20170215;全文 *

Also Published As

Publication number Publication date
CN113556250A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
US10754631B2 (en) Tenant upgrade analytics
EP3758297B1 (en) Network-based resource configuration discovery service
CN105005532B (en) A kind of system and method for automatic test application programming interfaces stability
US20160224460A1 (en) Software-defined network application deployment
CN109120444B (en) Cloud resource management method, processor and storage medium
Collier et al. Microsoft azure essentials-fundamentals of azure
CN109246201B (en) Cloud resource delivery method, processor and storage medium
US20160139945A1 (en) Techniques for constructing virtual images for interdependent applications
CN111654399B (en) Networking method, device, equipment and storage medium based on SD-WAN
CN110833693A (en) Game running method and device, storage medium and electronic device
CN111897623A (en) Cluster management method, device, equipment and storage medium
US10180900B2 (en) Recordation of user interface events for script generation
Khedher et al. Mastering OpenStack
CN113556250B (en) Network equipment batch configuration method and device
Shahan Microsoft Azure Essentials-Fundamentals of Azure
CN110880990B (en) Configuration checking method and device for big data cluster component and computing equipment
CN112350879B (en) Data communication equipment test management method, device, system and storage medium
Gavanda et al. Mastering VMware vSphere 6.7: effectively deploy, manage, and monitor your virtual datacenter with VMware vSphere 6.7
CN114462003A (en) Server user permission control method and device under multi-type test environment
CN113014416A (en) Method, system, device and storage medium for automatically configuring and managing network device
US9760459B2 (en) Synchronization policies among nodes
US11736525B1 (en) Generating access control policies using static analysis
CN116614323B (en) Cloud storage enterprise network management method and system based on Rclone
Hirway Hybrid Cloud for Developers: Develop and deploy cost-effective applications on the AWS and OpenStack platforms with ease
Muñoz Exam Ref AZ-204 Developing Solutions for Microsoft Azure

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant