CN115001959B - Network target range network equipment initialization method, system and storage medium - Google Patents

Network target range network equipment initialization method, system and storage medium Download PDF

Info

Publication number
CN115001959B
CN115001959B CN202210941624.8A CN202210941624A CN115001959B CN 115001959 B CN115001959 B CN 115001959B CN 202210941624 A CN202210941624 A CN 202210941624A CN 115001959 B CN115001959 B CN 115001959B
Authority
CN
China
Prior art keywords
network equipment
network
information
configuration
virtual machine
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
CN202210941624.8A
Other languages
Chinese (zh)
Other versions
CN115001959A (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.)
Nanjing Cyber Peace Technology Co Ltd
Original Assignee
Nanjing Cyber Peace 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 Nanjing Cyber Peace Technology Co Ltd filed Critical Nanjing Cyber Peace Technology Co Ltd
Priority to CN202210941624.8A priority Critical patent/CN115001959B/en
Publication of CN115001959A publication Critical patent/CN115001959A/en
Application granted granted Critical
Publication of CN115001959B publication Critical patent/CN115001959B/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/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/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a network shooting range network equipment initialization method, a system and a storage medium, which can add virtual network equipment or actual network equipment created by network equipment mirror images in scene topology and configure initialization information thereof; when a scene is started, adding a management network card and a serial port device into a configuration file of the virtual network device; connecting a serial port of the actual network equipment and an interface of a serial server by using a serial port line in advance; after the ports are communicated, analyzing the initial configuration information of the network equipment, converting the initial configuration information into a configuration command, loading a corresponding driving program, connecting the driving program to a virtual machine management address of the network equipment through a telnet protocol, or connecting the driving program to a serial port of the actual network equipment through a serial server in a transfer mode, and sending the configuration command to the network equipment through the telnet protocol. The invention can support the network target range simulation of the network equipment or the actual network equipment containing the virtual machine image, and reduce the complexity of the configuration of the network equipment.

Description

Network target range network equipment initialization method, system and storage medium
Technical Field
The invention relates to a network shooting range network equipment initialization method, a system and a storage medium, belonging to the technical field of networks.
Background
In a network target range, in order to realize more real network simulation, a virtual image of some network devices is often used to establish a scene network topology. The virtual machine images of the network equipment are generally provided by network equipment manufacturers, are closed-source systems, cannot open custom modification authority, cannot install cloudinit initialization software like a common operating system virtual machine, are generally in null configuration, cannot start dhcp to automatically acquire an IP address by default, cannot start remote access services such as ssh by default, and cannot perform initialization work by using cloudinit by requiring a user to log in the network equipment virtual machine for manual configuration after each scene is started.
A part of network device manufacturers do not provide a virtualized image file, and for the part of network devices, the part of network devices can only be accessed into a scene in a virtual-real combination manner, and a system inside the same network device is also a closed-source system generally, and initialization software cannot be installed.
Because the scene of the network shooting range is dynamically created each time, the network equipment needs to be manually logged in for corresponding configuration according to the configuration of the scene after the scene creation is completed each time. This can greatly reduce the usability of the scenario and increase the complexity of the scenario usage, and a very specialized network engineer is required to dynamically configure the network devices or their virtual machines in the scenario.
In summary, the network device or the network device image cannot install the initialization software or the agent as a common operating system image, and the initialization software cannot be installed, so that the configuration information cannot be issued by the initialization software or the agent when the scene is started, and the network device needs to be manually logged in to perform configuration after each scene is started. And the commands of all network equipment manufacturers are inconsistent, and the configuration can be carried out only by professional network engineers, so that the complexity of the configuration of the scene network equipment or the virtual machine of the network equipment is improved.
Disclosure of Invention
The purpose of the invention is as follows: in view of the problems in the prior art, an object of the present invention is to provide a method, a system, and a storage medium for initializing a network shooting range network device, so as to support network shooting range simulation of a network device or a real-world network device including a virtual machine image, reduce the complexity of network device configuration, and improve configuration efficiency.
The technical scheme is as follows: in order to realize the purpose of the invention, the invention adopts the following technical scheme:
a network shooting range network equipment initialization method comprises the following steps:
when editing a network target range scene, adding network equipment into the topology, and adding initial configuration information of the network equipment into scene configuration; the network equipment is virtual network equipment created by a network equipment mirror image or actual network equipment;
when a network shooting range scene is started, adding a management network card and a tcp type console device to a configuration file of a network device virtual machine for a virtual network device created by a network device mirror image, and pointing a target to a serial device of the network device virtual machine; for the actual network equipment, a serial port line is used for connecting a serial port of the actual network equipment and an interface of a serial server in advance, and the serial server maps the interface into a tcp type network port;
for the network equipment virtual machine, after the network equipment virtual machine is successfully started and the fact that a console equipment port can be communicated is detected, the network equipment virtual machine is connected to a serial equipment of the network equipment virtual machine through a telnet protocol, and a management address of the network equipment virtual machine is configured; for the actual network equipment, detecting that a tcp port corresponding to the actual network equipment can be communicated; analyzing the initialized configuration information of the network equipment, and converting the initialized configuration information into a configuration command according to manufacturer information;
loading a corresponding driving program according to the manufacturer information of the network equipment, connecting to a management address of a virtual machine of the network equipment through a telnet protocol, or connecting to a serial port of the actual network equipment through a transfer of a serial port server, sending a configuration command to the network equipment through the telnet protocol, acquiring echoing information of the configuration command, and judging whether the configuration is successful according to the echoing information.
Preferably, the initialization configuration information of the network device includes vlan information, interface information and ssh access information, and the network devices of different manufacturers use the same configuration template to store the initialization configuration information of the network device configured by the user and the echoed information for the user to view in json format.
Preferably, before editing the network shooting range scene, the user configures information of the virtual network device or the installation network device in advance, the information of the virtual network device includes a virtual machine image file of the virtual network device, and the information of the installation network device includes an interface of a serial server connected with the installation network device.
Preferably, before loading the corresponding driver according to the manufacturer information of the network equipment, confirming and identifying the manufacturer information, preferably recording the driver according to the manufacturer information configured by the user and executing information query, confirming whether the manufacturer information is correct according to a query command execution result, and sequentially calling the drivers of different manufacturers to execute the information query until finding out the real manufacturer information of the network equipment when the manufacturer information is not configured or the configured manufacturer information is wrong.
In a specific embodiment, the network shooting range scene topology includes at least one virtual network device created by a network device image, or at least one actual network device, or both a virtual network device and an actual network device.
In a specific embodiment, the network device is a switch or a router.
A network shooting range network equipment initialization system comprises a network shooting range management platform, a configuration analysis module and a driving and accessing module;
the network target range management platform is used for adding network equipment into the topology and adding initialization configuration information of the network equipment into scene configuration when editing a network target range scene; the network equipment is virtual network equipment created by a network equipment mirror image or actual network equipment; when a network target range scene is started, adding a management network card and a tcp type console device to a configuration file of a network device virtual machine for a virtual network device created by a network device mirror image, and pointing a target to a serial device of the network device virtual machine; for the actual network equipment, a serial port line is used for connecting a serial port of the actual network equipment and an interface of a serial server in advance, and the serial server maps the interface into a tcp type network port; after the network equipment virtual machine is successfully started and the connection of the console equipment port is detected, the management address of the network equipment virtual machine is configured by connecting the server equipment to the network equipment virtual machine through a telnet protocol, after the configuration of the management address of the network equipment virtual machine is successful or the connection of the tcp port corresponding to the actual network equipment is detected, a configuration analysis module is called to initialize the network equipment, and whether the configuration is successful or not is judged according to the echoed information;
the configuration analysis module is used for analyzing the initial configuration information of the network equipment, converting the initial configuration information into a configuration command according to manufacturer information, and sending the configuration command to the driving and access module;
the driving and accessing module is used for loading a corresponding driving program according to the manufacturer information of the network equipment, connecting the driving program to a management address of a virtual machine of the network equipment through a telnet protocol, or connecting the driving program to a serial port of the actual network equipment through a serial server in a transfer manner, sending the configuration command to the network equipment through the telnet protocol, acquiring the echoing information of the configuration command and returning the echoing information to the configuration analysis module.
Preferably, the initialization configuration information of the network device includes vlan information, interface information and ssh access information; the network shooting range management platform provides a configuration template for a user to fill in, and stores the initialization configuration information of the network equipment configured by the user in a json format; and the configuration analysis module analyzes the json format configuration information into a configuration instruction, analyzes the echoed information, then stores the analyzed information into a json format, and returns the json format to the network shooting range management platform.
Preferably, the configuration analysis module is further configured to confirm and identify vendor information, preferentially record a driver according to vendor information configured by a user and execute information query, confirm whether the vendor information is correct according to a query command execution result, and sequentially invoke drivers of different vendors to execute information query until real vendor information of the network device is found out when the vendor information is not configured or the configured vendor information is wrong.
A computer system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, said computer program, when loaded into the processor, implementing the steps of the network range network device initialization method.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the network firing ground network device initialization method.
Has the advantages that: compared with the prior art, the invention has the following advantages: 1. for the virtual network equipment, the invention is connected to the virtual machine of the network equipment through the serial equipment, configures the management address through the serial equipment, and then issues the configuration command through the management address, thereby accelerating the configuration efficiency without installing initialization software such as cloudinit in advance for the virtual machine of the network equipment. 2. For the actual network equipment, the invention connects the shooting range management platform and the physical network equipment through the serial server, realizes that the physical network equipment can be automatically configured after each scene starting, and does not need manual operation of a user. 3. According to the method, the scene configuration personnel directly configure the network equipment initialization configuration information without knowing specific configuration instructions of different manufacturers, and the automatic configuration of the virtual machines of the network equipment of different manufacturers is realized by analyzing the configuration and dynamically loading different driving programs, so that the configuration work of a user is effectively simplified, and the scene construction efficiency is improved. 4. The invention can obtain real manufacturer information, prevent the user from manually filling wrong manufacturer information and improve the success rate of configuration. 5. The method and the system can be suitable for virtual network equipment and actual network equipment created by network equipment mirror images, and scenes using the virtual network equipment and the actual network equipment simultaneously, thereby expanding the simulation scenes of a network target range and reducing the complexity of network equipment configuration in the scenes.
Drawings
Fig. 1 is a flowchart of a network device initialization method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a system architecture according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of converting a serial device interface to a TCP port in the embodiment of the present invention.
Detailed Description
The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, in the method for initializing network shooting range network devices disclosed in the embodiment of the present invention, when a network shooting range scene is edited, a network device is added to a topology, and initialization configuration information of the network device is added to scene configuration; when a scene is started, adding a management network card and a tcp type console device to a configuration file of a virtual machine of a network device for the virtual network device, and pointing a target to a serial device of the virtual machine of the network device; for the actual network equipment, a serial port line is used for connecting a serial port of the actual network equipment and an interface of a serial server in advance; after the network equipment virtual machine is successfully started and the connection of a console equipment port is detected, a management address of the network equipment virtual machine is configured through the serial equipment, and after the configuration is successful or the connection of a tcp port corresponding to the actual network equipment is detected, the initial configuration information of the network equipment is analyzed and converted into a configuration command according to manufacturer information; loading a corresponding driving program according to the manufacturer information of the network equipment, connecting to a management address of a virtual machine of the network equipment through a telnet protocol, or connecting to a serial port of the actual network equipment through a transfer of a serial port server, sending a configuration command to the network equipment through the telnet protocol, acquiring echoing information of the configuration command, and judging whether the configuration is successful according to the echoing information.
As shown in fig. 2, a network drone field network device initialization system disclosed in the embodiments of the present invention includes a network drone field management platform, a configuration analysis module, and a driving and accessing module; the network target range management platform is used for adding network equipment into the topology when editing the network target range scene and adding initial configuration information of the network equipment into scene configuration; when the scene is started, adding a management network card and a tcp type console device to a configuration file of a network device virtual machine for a virtual network device created by a network device mirror image, and pointing a target to a serial device of the network device virtual machine; for the actual network equipment, a serial port line is used for connecting a serial port of the actual network equipment and an interface of a serial server in advance; and after the network equipment virtual machine is successfully started and the connection of the console equipment port is detected, connecting the console equipment port to the serial equipment of the network equipment virtual machine through a telnet protocol, configuring the management address of the network equipment virtual machine, calling a configuration analysis module to initialize the network equipment after the configuration of the management address of the network equipment virtual machine is successful or after the connection of the tcp port corresponding to the actual network equipment is detected, and judging whether the configuration is successful or not according to the echoed information. The configuration analysis module is used for analyzing the initial configuration information of the network equipment, converting the initial configuration information into a configuration command according to manufacturer information and sending the configuration command to the driving and access module; and the driving and access module is used for loading a corresponding driving program according to the manufacturer information of the network equipment, connecting the driving program to a management address of a virtual machine of the network equipment through a telnet protocol, or connecting the driving program to a serial port of the actual network equipment through a serial server in a transfer manner, sending the configuration command to the network equipment through the telnet protocol, acquiring the echoing information of the configuration command and returning the echoing information to the configuration analysis module.
In the embodiment of the invention, the configuration of the network target field management platform on the network equipment comprises an analysis unit and a template unit, wherein the analysis unit is mainly used for analyzing the output content of the network equipment during configuration and converting the output content into a code-friendly json format, so that the platform can conveniently carry out automatic detection on the configuration of the network equipment. The template unit mainly abstracts some common configuration operations, such as vlan creation, interface configuration, ssh access configuration and the like, so that a user can conveniently and quickly generate the configuration of the network equipment. The configuration analysis module is mainly used for analyzing the initial configuration of the network equipment generated by the platform into a configuration command of a corresponding manufacturer according to the scene information, issuing the configuration to a virtual machine or a real network equipment of the network equipment through the driving and accessing module, and returning the configuration output information to the platform, so that the configuration can be conveniently checked in the follow-up process. The driving and access module is mainly used for loading a driving program and is connected to a virtual machine of the network equipment or the actual network equipment through a telnet protocol. The serial server device is mainly used for connecting to a serial port of the actual network device by using a serial port line, and mapping an interface into a tcp type network port for connecting a driver and an access module.
The network target range simulation scenario supported by the embodiment of the present invention may include one or more virtual network devices created by a network device image, or one or more real network devices, or both a virtual network device and a real network device. The following describes in detail specific initialization methods for the virtual network device and the real network device, and initialization may be performed for a plurality of scenes or a mixed scene.
The virtual network device configuration and initialization process created by the network device image is as follows:
1. the user adds the virtual network equipment target created by the mirror image in the target management module of the platform in advance. The configuration information of the target includes a name, an image file, vendor information, a model number, and the like.
2. And adding the mirror image type virtual network equipment when the user edits the scene, and establishing a scene topology.
3. And editing scene configuration by a user, adding a configuration command into the mirror image type virtual network equipment configuration, and storing the scene after the configuration is finished.
4. And when the user clicks a starting scene, the network shooting range management platform can analyze the target of the mirror image type virtual network equipment according to the scene topology information.
5. The network target range management platform generates a virtual machine configuration file, adds an additional management network card for the virtual machine configuration file, adds tcp type contole equipment for the network equipment virtual machine, and points the target to the serial equipment of the virtual machine.
Configuration example of serial device:
<console type='tcp'>
<source mode='bind' host='0.0.0.0' service='15906' tls='no'/>
<protocol type='telnet'/>
<log file='/var/lib/vm/ca9307a8-dd84-4a51-976a-6b21f1e7be81/console.log' append='off'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
6. and the network shooting range management platform starts the network equipment virtual machine according to the virtual machine configuration file.
7. After the network equipment virtual machine is successfully started, the network shooting range management platform detects whether the ports of the newly-added console equipment can be communicated or not through the socket.
8. After the Console is communicated, the configuration analysis module calls a manufacturer identification unit to identify the virtual machine of the network equipment, the manufacturer identification unit sequentially calls drivers of different manufacturers (manufacturer information configured by a user is tried preferentially), a manufacturer specific command is executed to inquire the information of the network equipment, the command is output and analyzed through the configuration analysis module, the real manufacturer and model information of the virtual machine of the network equipment is identified, and the virtual machine of the network equipment is prevented from being initialized and failed due to the fact that the user fills in errors.
9. The configuration analysis module forms a management IP address configuration command according to the manufacturer information and sends the configuration command to the drive and access module.
10. And the drive and access module loads a corresponding drive according to the manufacturer information and then sends the drive to the network equipment virtual machine through a telnet protocol.
11. And the configuration analysis module judges whether the management address is successfully configured according to the returned information, and after the management address is successfully configured, the network equipment virtual machine can be directly accessed through the management address.
12. The configuration analysis module combines and sorts the configuration information according to the commonly used configuration sequence.
13. The configuration analysis module converts the configuration information into a configuration command of a corresponding manufacturer according to the manufacturer information of the network equipment virtual machine, and then sends the configuration command to the driving and access module.
14. And the driving and access module loads a corresponding driving program according to the manufacturer information of the network equipment.
15. The driving and accessing module is connected to the management address of the virtual machine of the network equipment through a telnet protocol.
16. And the driving and access module sends the configuration command to the network equipment virtual machine through a telnet protocol.
17. The echoing information of the configuration command is sent to the configuration analysis module through the drive and access module and analyzed into a program-friendly json format, and the platform can judge whether the configuration is successful according to the echoing information.
The configuration and initialization mode of the actual network equipment is as follows:
1. the user uses the serial port line in advance to connect the serial port of the actual network equipment and the interface of the serial server.
2. The user adds the target of the actual network device in the target management in advance, configures the interface of the corresponding serial server, and the serial server maps the corresponding interface into the tcp-type network port, as shown in fig. 3.
3. And adding the actual network equipment by the user during scene editing, and establishing a scene topology.
4. And editing the scene configuration by a user, and adding an initialization configuration command into the scene real-installation network equipment configuration.
5. And when the user clicks a starting scene, the network shooting range management platform can analyze the actual network equipment according to the scene topology information.
6. And the network target range management platform calls an API (application program interface) provided by the serial server to inquire out a tcp port number corresponding to an interface for realizing the connection of the network equipment.
7. And the network shooting range management platform detects whether the tcp port can be communicated or not through the socket.
8. After the tcp ports can be connected, the configuration analysis module combines and sorts the configuration information according to a common configuration sequence.
9. The configuration analysis module converts the configuration information into a configuration command of a corresponding manufacturer according to the manufacturer information of the network equipment virtual machine, and then sends the configuration command to the driving and access module.
10. And the driving and access module loads a corresponding driving program according to the manufacturer information of the network equipment.
11. The driving and access module is connected to the serial port of the network equipment through a telnet protocol by a serial port server in a transfer mode.
12. And the driving and access module sends the configuration command to the network equipment through a telnet protocol.
13. The echoing information of the configuration command is sent to the configuration analysis module through the drive and access module and analyzed into a program-friendly json format, and the platform can judge whether the configuration is successful according to the echoing information.
Based on the same inventive concept, the embodiment of the present invention discloses a computer system, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the steps of the network range network device initialization method when being loaded to the processor.
Based on the same inventive concept, the embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the network shooting range network device initialization method.

Claims (10)

1. A network shooting range network equipment initialization method is characterized by comprising the following steps:
when editing a network target range scene, adding network equipment into the topology, and adding initialization configuration information of the network equipment into scene configuration; the network equipment is virtual network equipment created by a network equipment mirror image or actual network equipment;
when a network target range scene is started, adding a management network card and a tcp type console device to a configuration file of a network device virtual machine for a virtual network device created by a network device mirror image, and pointing a target to a serial device of the network device virtual machine; for the actual network equipment, a serial port line is used for connecting a serial port of the actual network equipment and an interface of a serial server in advance, and the serial server maps the interface into a tcp type network port;
for the network equipment virtual machine, after the network equipment virtual machine is successfully started and the fact that a console equipment port can be communicated is detected, the network equipment virtual machine is connected to a serial equipment of the network equipment virtual machine through a telnet protocol, and a management address of the network equipment virtual machine is configured; for the actual network equipment, detecting that a tcp port corresponding to the actual network equipment can be communicated; analyzing the initialized configuration information of the network equipment, and converting the initialized configuration information into a configuration command according to manufacturer information;
loading a corresponding driving program according to the manufacturer information of the network equipment, connecting to a management address of a virtual machine of the network equipment through a telnet protocol, or connecting to a serial port of the actual network equipment through a transfer of a serial port server, sending a configuration command to the network equipment through the telnet protocol, acquiring echoing information of the configuration command, and judging whether the configuration is successful according to the echoing information.
2. The method of claim 1, wherein the initialization configuration information of the network devices includes vlan information, interface information, and ssh access information, and the same configuration template is used by the network devices of different vendors to store the initialization configuration information of the network devices configured by the user and the echoed information for the user to view in json format.
3. The method for initializing network shooting range network equipment according to claim 1, wherein before editing the network shooting range scene, a user configures information of virtual network equipment or a real-installation network equipment in advance, the information of the virtual network equipment comprises a virtual machine image file and manufacturer information of the virtual network equipment, and the information of the real-installation network equipment comprises an interface of a serial server connected with the real-installation network equipment and the manufacturer information.
4. The method of claim 1, wherein the network shooting range scenario topology comprises at least one virtual network device created from a network device image, or at least one real-world network device, or both a virtual network device and a real-world network device.
5. The initialization method of network shooting range network equipment according to claim 1, wherein before loading the corresponding driver according to the manufacturer information of the network equipment, the manufacturer information is confirmed and identified, the driver is recorded and information inquiry is executed according to the manufacturer information configured by the user, whether the manufacturer information is correct or not is confirmed according to the inquiry command execution result, and when the manufacturer information is not configured or the configured manufacturer information is wrong, the drivers of different manufacturers are sequentially called to execute the information inquiry until the real manufacturer information of the network equipment is found out.
6. A network shooting range network equipment initialization system is characterized by comprising a network shooting range management platform, a configuration analysis module and a driving and accessing module;
the network target range management platform is used for adding network equipment into the topology when editing the network target range scene and adding initialization configuration information of the network equipment into the scene configuration; the network equipment is virtual network equipment created by a network equipment mirror image or actual network equipment; when the network target range scene is started, adding a management network card and a tcp type console device to a configuration file of a network device virtual machine for a virtual network device created by a network device mirror image, and pointing a target to a serial device of the network device virtual machine; for the actual network equipment, a serial port line is used for connecting a serial port of the actual network equipment and an interface of a serial server in advance, and the serial server maps the interface into a tcp type network port; after the network equipment virtual machine is successfully started and the connection of the console equipment port is detected, the management address of the network equipment virtual machine is configured by connecting the server equipment to the network equipment virtual machine through a telnet protocol, after the configuration of the management address of the network equipment virtual machine is successful or the connection of the tcp port corresponding to the actual network equipment is detected, a configuration analysis module is called to initialize the network equipment, and whether the configuration is successful or not is judged according to the echoed information;
the configuration analysis module is used for analyzing the initial configuration information of the network equipment, converting the initial configuration information into a configuration command according to the manufacturer information and sending the configuration command to the drive and access module;
the driving and accessing module is used for loading a corresponding driving program according to the manufacturer information of the network equipment, connecting the driving program to the management address of the virtual machine of the network equipment through a telnet protocol, or connecting the driving program to the serial port of the actual installed network equipment through a serial server in a transfer manner, sending the configuration command to the network equipment through the telnet protocol, acquiring the echoing information of the configuration command and returning the echoing information to the configuration analysis module.
7. The network range network device initialization system of claim 6, wherein the initialization configuration information for the network device includes vlan information, interface information, and ssh access information; the network shooting range management platform provides a configuration template for a user to fill in, and stores initialization configuration information of network equipment configured by the user in a json format; and the configuration analysis module analyzes the json format configuration information into a configuration instruction, analyzes the echoed information, then stores the analyzed information into a json format, and returns the json format to the network shooting range management platform.
8. The initialization system of network firing ground network equipment according to claim 6, wherein the configuration parsing module is further configured to confirm and identify vendor information, record a driver and perform information query according to vendor information configured by a user, confirm whether the vendor information is correct according to the query command execution result, and sequentially invoke drivers of different vendors to perform information query when the vendor information is not configured or the configured vendor information is incorrect until the real vendor information of the network equipment is found out.
9. A computer system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program, when loaded into the processor, implements the steps of the network range network device initialization method according to any one of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for initializing a network range network device according to any one of claims 1 to 5.
CN202210941624.8A 2022-08-08 2022-08-08 Network target range network equipment initialization method, system and storage medium Active CN115001959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210941624.8A CN115001959B (en) 2022-08-08 2022-08-08 Network target range network equipment initialization method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210941624.8A CN115001959B (en) 2022-08-08 2022-08-08 Network target range network equipment initialization method, system and storage medium

Publications (2)

Publication Number Publication Date
CN115001959A CN115001959A (en) 2022-09-02
CN115001959B true CN115001959B (en) 2022-11-22

Family

ID=83023172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210941624.8A Active CN115001959B (en) 2022-08-08 2022-08-08 Network target range network equipment initialization method, system and storage medium

Country Status (1)

Country Link
CN (1) CN115001959B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115296925B (en) * 2022-09-26 2023-02-10 南京赛宁信息技术有限公司 Data transmission control method and system in network target range

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10021196B1 (en) * 2015-06-22 2018-07-10 Amazon Technologies, Inc. Private service endpoints in isolated virtual networks
CN112055026A (en) * 2020-09-11 2020-12-08 湖南泛联新安信息科技有限公司 Network target range physical environment construction method and system
CN112416469A (en) * 2020-12-30 2021-02-26 博智安全科技股份有限公司 Initialization method and reset method of virtualized network target range environment
WO2021042845A1 (en) * 2019-09-06 2021-03-11 南京中兴软件有限责任公司 Virtual local area network service management method, and virtual local area network global management device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750334B (en) * 2019-10-25 2024-02-02 北京计算机技术及应用研究所 Ceph-based network target range rear end storage system design method
CN111478820B (en) * 2020-06-24 2020-10-09 南京赛宁信息技术有限公司 Network equipment configuration system and method for large-scale network environment of network target range
CN112968798B (en) * 2021-02-04 2023-02-07 西安热工研究院有限公司 Virtual and real network environment automatic generation method suitable for electric power industrial control target range platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10021196B1 (en) * 2015-06-22 2018-07-10 Amazon Technologies, Inc. Private service endpoints in isolated virtual networks
WO2021042845A1 (en) * 2019-09-06 2021-03-11 南京中兴软件有限责任公司 Virtual local area network service management method, and virtual local area network global management device
CN112055026A (en) * 2020-09-11 2020-12-08 湖南泛联新安信息科技有限公司 Network target range physical environment construction method and system
CN112416469A (en) * 2020-12-30 2021-02-26 博智安全科技股份有限公司 Initialization method and reset method of virtualized network target range environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于网络功能虚拟化的网络试验平台的设计与实现;陈鸣等;《计算机学报》;20171020(第09期);全文 *

Also Published As

Publication number Publication date
CN115001959A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
EP3471375A1 (en) Method and apparatus for managing field device based on cloud server
EP1669858A2 (en) Method and system for providing a common operating system
CN115001959B (en) Network target range network equipment initialization method, system and storage medium
US7293168B2 (en) System and method for initially configuring and booting a device using a device identifier
CN110012082A (en) Embedded device and its upgrade method, controlling terminal
CN108234174B (en) Management method and device of virtual network function
JP2000244567A (en) Router network managing method
US7016800B1 (en) Centralized console API testing architecture
CN112636973A (en) NETCONF protocol-based automatic cloud network fusion method
CN107659621B (en) RAID control card configuration method and device
CN113590271A (en) Database deployment method and device, electronic equipment and storage medium
CN112860294A (en) Server upgrading method and system
CN112363743A (en) User program updating method based on internet access transmission
CN111726422A (en) Tool and method for controlling windows rapid deployment in batches
EP3671444A1 (en) Method, device, and system for live migration of virtual machine
CN109831330B (en) Stack configuration method and device
CN116149689B (en) Software installation method and device, storage medium and computer equipment
CN116032755B (en) Router terminal batch upgrading method and device
CN113132168B (en) Network transmission configuration method and device based on PCIe
CN117170572A (en) Method, device, equipment and storage medium for configuring disk array
CN106325117B (en) Method, device and system for automatically controlling instrument
US20050114640A1 (en) Method and system for efficiently binding a customer order with a processing system assembly in a manufacturing environment
CN117687926A (en) Test method, test device, electronic equipment and computer storage medium
CN117687639A (en) Method, system, device, storage medium and program product for installing operating system
CN117992127A (en) Operating system switching method, network card and processor

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