CN118041774A - Switch configuration online method, device, equipment and storage medium - Google Patents

Switch configuration online method, device, equipment and storage medium Download PDF

Info

Publication number
CN118041774A
CN118041774A CN202410257104.4A CN202410257104A CN118041774A CN 118041774 A CN118041774 A CN 118041774A CN 202410257104 A CN202410257104 A CN 202410257104A CN 118041774 A CN118041774 A CN 118041774A
Authority
CN
China
Prior art keywords
configuration
account
information
switch
target switch
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.)
Pending
Application number
CN202410257104.4A
Other languages
Chinese (zh)
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.)
Hangzhou Wulian Technology Co ltd
Original Assignee
Hangzhou Wulian 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 Hangzhou Wulian Technology Co ltd filed Critical Hangzhou Wulian Technology Co ltd
Priority to CN202410257104.4A priority Critical patent/CN118041774A/en
Publication of CN118041774A publication Critical patent/CN118041774A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for switch configuration online, which are applied to a client, and relate to the technical field of communication networks, and the method comprises the following steps: acquiring configuration authentication information aiming at a target switch and sent by a user terminal based on a preset visual interface, and checking the legitimacy of an account; if the validity of the account passes, acquiring client configuration information which is sent by a preset server and aims at the target switch; performing local environment configuration based on the client configuration information and the network card selection instruction to build a private configuration network environment of the target switch; acquiring task configuration information sent by a user and logging in the private configuration network environment; and then acquiring a configuration file of the target switch from a preset cloud based on the VPN account and the FTP account in the client configuration information so as to finish the configuration online of the target switch based on the configuration file. In this way, the automatic configuration of the switch can be completed.

Description

Switch configuration online method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications networks, and in particular, to a method, an apparatus, a device, and a storage medium for configuring and online a switch.
Background
The switch is a network communication device, which is used for connecting a plurality of network devices in the network communication field, and enables the functions of device data exchange and the like through personalized configuration, so that data packets can be forwarded to realize communication between the devices. Conventionally, the switch configuration opening needs to be performed manually, and planning setting of network parameters is involved, so that professional personnel are required to intervene in cooperation to complete the device debugging opening. However, with the continuous expansion of user services and network scale, the network equipment configuration opening demand is also continuously increased, and the bottleneck of manual station-by-station configuration opening is also gradually exposed; and simultaneously, the flexibility, timeliness and service quality of the equipment opening are provided with new challenges. The manual opening mode has the problems of lower efficiency, technical threshold, inconvenient remote adjustment and measurement, higher point-to-point opening cost and the like; while ZTP (Zero Touch Provisioning, zero configuration automatic provisioning) provisioning provides a batch configuration approach, it also creates related issues such as compatibility, environmental dependencies, and customization costs. Therefore, how to solve the comprehensive problems of deployment efficiency, usability, compatibility, flexibility, running cost and the like existing in the current running mode is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, an apparatus, a device and a storage medium for configuring and online of a switch, which can realize automatic configuration and online of the switch. The specific scheme is as follows:
In a first aspect, the present application discloses a method for configuring and online a switch, which is applied to a client, and includes:
acquiring configuration authentication information aiming at a target switch and sent by a user terminal based on a preset visual interface, and checking the validity of an account based on the configuration authentication information;
If the validity of the account passes, acquiring client configuration information which is sent by a preset server and aims at the target switch;
Configuring a local environment of the target switch based on the client configuration information and the network card selection instruction so as to build a private configuration network environment of the target switch;
Acquiring task configuration information sent by a user, and logging in the private configuration network environment based on the task configuration information;
and under the private configuration network environment, acquiring a configuration file of the target switch from a preset cloud based on the VPN account and the FTP account in the client configuration information so as to finish the configuration online of the target switch based on the configuration file.
Optionally, the acquiring the configuration authentication information for the target switch sent by the user terminal based on the preset visual interface, and performing the account validity check based on the configuration authentication information includes:
Acquiring authentication account information and equipment information which are sent by a user terminal and are aimed at a target switch, and generating an account authentication request based on the authentication account information and the equipment information;
And sending the account authentication request to an authentication server so that the authentication server can check the validity of the account.
Optionally, if the validity check of the account passes, obtaining client configuration information sent by a preset server and aiming at the target switch includes:
If the account validity check is passed, judging whether a VPN account exists or not by presetting a VPN server, authentication account information and equipment information;
if the client configuration information does not exist, creating a corresponding VPN account, FTP account and VPN configuration information to obtain the client configuration information;
And acquiring client configuration information which is sent by the preset VPN server and aims at the target switch.
Optionally, after determining whether the VPN account exists by presetting the VPN server, the authentication account information and the device information, the method further includes:
If so, acquiring the FTP account corresponding to the VPN account and VPN configuration information to obtain client configuration information.
Optionally, the configuring the local environment of the target switch based on the client configuration information and the network card selection instruction to build a private configuration network environment of the target switch includes:
installing a VPN to a local environment based on the client configuration information;
and acquiring a network card selection instruction based on the preset visual interface and performing local environment deployment based on the network card selection instruction so as to build a private configuration network environment of the target switch.
Optionally, the logging in the private configuration network environment based on the task configuration information includes:
after local initialization setting and target switch initialization setting are carried out based on the task configuration information, a VPN login main interface is generated on the preset visual interface;
and acquiring a login instruction through the VPN login main interface so as to log in the private configuration network environment.
Optionally, the obtaining, based on the VPN account and the FTP account in the client configuration information, a configuration file of the target switch from a preset cloud, so as to complete configuration online of the target switch based on the configuration file includes:
performing login verification of the target switch based on the VPN account in the client configuration information;
And if the login verification is passed, acquiring a configuration file of the target switch from a preset FTP server through an FTP account, so as to finish the configuration online of the target switch based on the configuration file.
In a second aspect, the present application discloses a switch configuration online device, applied to a client, including:
The account verification module is used for acquiring configuration authentication information aiming at a target switch and sent by a user terminal based on a preset visual interface, and verifying the validity of the account based on the configuration authentication information;
the configuration information acquisition module is used for acquiring client configuration information which is sent by a preset server and aims at the target switch if the validity check of the account passes;
The network environment construction module is used for configuring the local environment of the target switch based on the client configuration information and the network card selection instruction so as to construct a private configuration network environment of the target switch;
the network environment login module is used for acquiring task configuration information sent by a user and logging in the private configuration network environment based on the task configuration information;
And the switch configuration module is used for acquiring the configuration file of the target switch from a preset cloud based on the VPN account and the FTP account in the client configuration information under the private configuration network environment so as to finish the configuration online of the target switch based on the configuration file.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
And the processor is used for executing the computer program to realize the switch configuration online method.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program, which when executed by a processor implements the aforementioned switch configuration online method.
In the application, configuration authentication information sent by a user side and aiming at a target switch is obtained based on a preset visual interface, and account validity verification is carried out based on the configuration authentication information; if the validity of the account passes, acquiring client configuration information which is sent by a preset server and aims at the target switch; configuring a local environment of the target switch based on the client configuration information and the network card selection instruction so as to build a private configuration network environment of the target switch; acquiring task configuration information sent by a user, and logging in the private configuration network environment based on the task configuration information; and under the private configuration network environment, acquiring a configuration file of the target switch from a preset cloud based on the VPN account and the FTP account in the client configuration information so as to finish the configuration online of the target switch based on the configuration file. Namely, by acquiring a series of configuration instructions, the configuration of the switch is sequentially executed, a private configuration network environment is generated, and the configuration of the target switch is brought on line. Therefore, only the switch is required to support the access of a basic control port and a management port, and the ordinary user can finish the personalized opening configuration of the switch by one key; meanwhile, multi-user concurrent self-service deployment is supported, and the problem of single-point opening is solved; the cloud deployment of the server side has the characteristics of high reliability, strong universality, high expandability, agility and the like, and the user side can use a self-service opening tool to rapidly deploy and open at any time and any place by accessing the Internet; therefore, the deployment and configuration process of the switch becomes simpler and more efficient, and the communication and configuration opening cost is more cost-effective than that of the switch.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for configuring and connecting a switch in accordance with the present application;
FIG. 2 is a flow chart of a specific switch environment configuration disclosed in the present application;
FIG. 3 is a flow chart illustrating task execution of a particular switch according to the present disclosure;
FIG. 4 is a flowchart of a specific switch configuration on-line method disclosed in the present application;
fig. 5 is a schematic structural diagram of a switch configuration on-line device according to the present disclosure;
fig. 6 is a block diagram of an electronic device according to the present disclosure.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The existing switch configuration mode has the problems of lower efficiency, technical threshold, inconvenient remote adjustment and measurement, higher point-to-point opening cost and the like; while the ZTP approach provides a batch configuration approach, it also creates related issues such as compatibility, environmental dependencies, and customization costs. Therefore, the application specifically introduces a method for configuring and online of the switch, and the configuration and online of the switch can be automatically realized only by acquiring the configuration instruction issued by the user.
Referring to fig. 1, an embodiment of the present application discloses a method for configuring and accessing a switch, which is applied to a client, and includes:
step S11: and acquiring configuration authentication information aiming at a target switch and sent by a user terminal based on a preset visual interface, and checking the validity of the account based on the configuration authentication information.
In this embodiment, it should be first described that there are two main ways of configuring the switching operation of the current switch: the first way is to log in the CLI (command-LINE INTERFACE, i.e. command line interface) configuration interface of the switch system through the switch Console port (a typical configuration interface), gradually write the command into the switch startup configuration file and save the command into effect; the second mode is to access the switch through the switch Console port and the management port, upload the pre-configuration file to the switch through the management port, send the command through the Console port, replace or cover the switch to start the configuration file and restart to take effect. The application is realized based on a second mode: firstly, opening is carried out based on the access of a Console port and a management port, so that a manufacturer of a main stream exchange can be compatible and adapted, and hardware and customization of specific opening requirements are not involved; the configuration file is replaced, so that configuration efficient import and export can be completed quickly, and meanwhile, security risks of configuration information leakage such as personalized configuration or security reinforcement and the like caused by gradual configuration writing are avoided; in the operation implementation process, a user opens a common and universal Windows personal computer in the environment, and a file transmission server is required to be provided based on a second mode and is used for storing and transmitting configuration files; therefore, the tool running environment is compatible with Windows environment and can be used for carrying out safe network file transmission with the server.
In this embodiment, the obtaining, based on a preset visual interface, configuration authentication information for a target switch sent by a user side, and verifying the validity of an account based on the configuration authentication information includes: acquiring authentication account information and equipment information which are sent by a user terminal and are aimed at a target switch, and generating an account authentication request based on the authentication account information and the equipment information; and sending the account authentication request to an authentication server so that the authentication server can check the validity of the account. Namely, after the user submits the equipment switching requirement and the key information of the equipment to be switched (equipment role/equipment model/uplink equipment/interconnection mode/interconnection interface/interconnection address information/interconnection route information), the self-service switching requirement configuration flow is triggered, and the management platform performs validity verification on the key information.
Step S12: and if the validity check of the account passes, acquiring client configuration information which is sent by a preset server and aims at the target switch.
In this embodiment, if the validity check of the account passes, obtaining client configuration information sent by a preset server and directed at the target switch includes: if the account validity check is passed, judging whether a VPN account exists or not by presetting a VPN server, authentication account information and equipment information; if the client configuration information does not exist, creating a corresponding VPN account, FTP account and VPN configuration information to obtain the client configuration information; and acquiring client configuration information which is sent by the preset VPN server and aims at the target switch. If so, acquiring the FTP account corresponding to the VPN account and VPN configuration information to obtain client configuration information. Because VPN (Virtual Private Network ) server and client configuration generation are based on the developed VPN deployment script, deployment application is completed; the configuration of user account information, file storage catalogs and the like on the VPN server side is achieved through VPN deployment scripts; secondly, VPN needs to be configured with VPN sub-network functions, and after VPN deployment and operation are completed; and the VPN function is started, and the service is restarted to take effect. In addition, the public service based on the standard FTP (FILE TRANSFER Protocol, i.e. file transfer Protocol) transmission Protocol completes the Secure transmission of the switch configuration file generated by the management platform, after completing the configuration operation of the cloud server VSFTP (Very Secure FTP, i.e. FTP server software), the corresponding security group and iptables policy are configured to allow access to 6000-7000 (FTP passive transmission port) and other ports, and the FTP client can be connected through a VPN tunnel, so that the intercommunication of the client and the subnet network of the server can be realized and the file transfer operation can be performed. Therefore, whether the VPN account is registered or not needs to be judged, and if not, the explanation is the first environment deployment; creating a corresponding VPN account, FTP account and VPN configuration information to obtain client configuration information; if the corresponding VPN account exists, the corresponding FTP account and VPN configuration information can be determined directly according to the VPN account so as to obtain the client configuration information. In this way, the VPN account number may be stored in a preset user whitelist. Only a specific user is allowed to connect vsftp with the server for downloading configuration files in a user white list mode, so that the user is limited to access the user directory only; meanwhile, the method can be used for solving the problem that only files under the current user directory can be downloaded when multiple users are connected concurrently, so that configuration downloading errors are avoided, and reliability and controllability of an opening process are improved.
Step S13: and configuring the local environment of the target switch based on the client configuration information and the network card selection instruction so as to build a private configuration network environment of the target switch.
In this embodiment, the configuring the local environment of the target switch based on the client configuration information and the network card selection instruction to build a private configuration network environment of the target switch includes: installing a VPN to a local environment based on the client configuration information; and acquiring a network card selection instruction based on the preset visual interface and performing local environment deployment based on the network card selection instruction so as to build a private configuration network environment of the target switch. The client guides the user to complete VPN client deployment and VPN automatic call path setting after the VPN client is installed through the visualization page, and completes user validity verification used for the first time and initialization configuration of the network environment of the user's opening personal notebook computer. Firstly, obtaining by a downloading client, and generating deployAssistant executable programs in decompression; the client program judges whether the VPN client installation is completed or not according to the specific flag bit.
Step S14: and acquiring task configuration information sent by a user, and logging in the private configuration network environment based on the task configuration information.
In this embodiment, the logging in the private configuration network environment based on the task configuration information includes: after local initialization setting and target switch initialization setting are carried out based on the task configuration information, a VPN login main interface is generated on the preset visual interface; and acquiring a login instruction through the VPN login main interface so as to log in the private configuration network environment. That is, as shown in fig. 2, checking whether the user account is legal, checking whether the connection state of the VPN client and the server is normal, and checking whether a VPN binary installation file exists in the installation path; when a user inputs a pass account number and selects openvpn installation paths, performing configuration operation; firstly, a client program takes an account number as an authentication parameter, performs authentication verification with account number data of a server user, and after the verification is passed, the client executes a VPN client through local call and configures a route forwarding function of a user configuration terminal, so that the route forwarding function between a VPN network card and a configuration terminal network card in a Windows environment is realized, and network intercommunication with a cloud VPN is opened. Thus, when the sharing function of the network card is started through the configuration script, the three-layer intercommunication of the sub-network of the VPN service can be realized.
Step S15: and under the private configuration network environment, acquiring a configuration file of the target switch from a preset cloud based on the VPN account and the FTP account in the client configuration information so as to finish the configuration online of the target switch based on the configuration file.
In this embodiment, the obtaining, based on the VPN account and the FTP account in the client configuration information, the configuration file of the target switch from the preset cloud, so as to complete the configuration online of the target switch based on the configuration file includes: performing login verification of the target switch based on the VPN account in the client configuration information; and if the login verification is passed, acquiring a configuration file of the target switch from a preset FTP server through an FTP account, so as to finish the configuration online of the target switch based on the configuration file. After the configuration task is executed, as shown in fig. 3, after the VPN connection is successful, the switch interconnection and the FTP server end routing are performed to the office equipment, and the cloud FTP server is connected to obtain the configuration file under the storage directory of the user, after the file downloading operation is finished, the file information of the equipment flash:/directory downloading is returned, the configuration file is started for the next time by the equipment, finally, the downloaded configuration file is checked, and if the check passes, the next configuration link is transferred, otherwise, the attempt is performed again or the feedback is abnormal.
In this embodiment, the configuration authentication information sent by the user side and aimed at the target switch is obtained based on the preset visual interface, and the validity check of the account is performed based on the configuration authentication information; if the validity of the account passes, acquiring client configuration information which is sent by a preset server and aims at the target switch; configuring a local environment of the target switch based on the client configuration information and the network card selection instruction so as to build a private configuration network environment of the target switch; acquiring task configuration information sent by a user, and logging in the private configuration network environment based on the task configuration information; and under the private configuration network environment, acquiring a configuration file of the target switch from a preset cloud based on the VPN account and the FTP account in the client configuration information so as to finish the configuration online of the target switch based on the configuration file. Namely, by acquiring a series of configuration instructions, the configuration of the switch is sequentially executed, a private configuration network environment is generated, and the configuration of the target switch is brought on line. In other words, the network sharing and routing forwarding functions of the Windows personal computer commonly used in the user opening environment are combined based on VPN supporting client subnet characteristics, so that automatic construction of the self-service opening network environment and equipment configuration opening requirements are realized by automatic operation. Therefore, only the switch is required to support the access of a basic control port and a management port, and the ordinary user can finish the personalized opening configuration of the switch by one key; meanwhile, multi-user concurrent self-service deployment is supported, and the problem of single-point opening is solved; the cloud deployment of the server side has the characteristics of high reliability, strong universality, high expandability, agility and the like, and the user side can use a self-service opening tool to rapidly deploy and open at any time and any place by accessing the Internet; therefore, the deployment and configuration process of the switch becomes simpler and more efficient, and the communication and configuration opening cost is more cost-effective than that of the switch.
Referring to fig. 4, an embodiment of the present application discloses a specific switch configuration online method, which is applied to a client, and includes: 1. after submitting the equipment switching requirement and the key information of the equipment to be switched (equipment role/equipment model/uplink equipment/interconnection mode/interconnection interface/interconnection address information/interconnection route information), triggering a self-service switching requirement configuration flow, and entering the next configuration link after the legitimacy check of the key information by the management platform. 2. Entering key information of equipment to be opened of a user through a management platform, automatically generating a unique exchanger ID, automatically calling a management platform configuration generating module interface, matching corresponding default configuration templates according to equipment roles and equipment models, sequentially matching parameters of the interconnection equipment/interconnection mode/interconnection interfaces/interconnection address information/interconnection route information, defining variable configuration, and completing template configuration replacement updating one by one through matching corresponding key field identifiers in the default configuration templates; finally, according to naming constraint, using an authorization code and a switch ID (Identity document, namely an identity) as a unique identifier of the configuration file, and automatically uploading the configuration file to a cloud storage catalog; after the automatic generation and uploading of the configuration file are completed, entering the next configuration link. 3. After a user applies for self-service opening for the first time, obtaining a depth Assistant.zip self-service opening tool compression package (an exe file of an adaptive windows system); after the tool is obtained and operated, the configuration operation needs to be executed firstly when the configuration operation is executed for the first time; after entering the switch opening main interface, selecting an opening equipment manufacturer, inputting a pass account number/machine room authorization code/switch, executing configuration operation, and automatically checking whether input parameters are empty and legal by a configuration tool; and after the verification is passed, entering the next configuration link. 4. After the configuration task is executed, after the VPN connection is successful, the switch interconnection and the FTP server end routing are carried out to the running equipment, the cloud FTP server is connected to obtain the configuration file downloaded by the storage directory of the user, after the file downloading action is finished, the file information downloaded by the flash/directory of the equipment is returned, the configuration file is started for the next time by the equipment, finally, the downloaded configuration file is checked, and the next configuration link is transferred after the check passes, otherwise, the attempt is carried out again or the feedback is abnormal. 5. And the file downloading verification is successful, a device restarting command is automatically issued, the restarting loading of the configuration file of the switch is completed, and the self-service configuration opening is completed.
Therefore, the configuration of user account information, file storage catalogs and the like at the VPN server can be achieved through VPN deployment scripts; secondly, VPN needs to be configured with VPN sub-network functions, and after VPN deployment and operation are completed; the VPN function is started, and the service is restarted to take effect; a network transmission environment providing interworking of VPN client subnetworks with service subnetworks may be implemented. The client tool provided by the application is used for realizing the function of acquiring the IP subnet network segment and the FTP file downloading command of the switch before the user side is constructed and deployed, and realizing that the FTP connection request can be forwarded to the cloud server side in a routing way after the user accesses the Internet through the personal Windows computer of the user, so that the automatic downloading and the effectiveness of the switch configuration are completed, and the switch configuration opening is completed. Therefore, the cost of the switch opening deployment communication implementation process can be reduced, the deployment efficiency, usability, compatibility, flexibility and safety of the equipment opening configuration can be improved, and the user opening process is simplified and facilitated. The place, time and resources of the equipment opening demand realization process are more flexible and autonomous and are easy to operate; the technical threshold of the opening is reduced, the dependence of the user on manual opening and the elbow pulling are reduced, and the security risks such as configuration information leakage in the opening process are reduced.
As described with reference to fig. 5, the embodiment of the present application further correspondingly discloses a switch configuration online device, which is applied to a client, and includes:
The account verification module 11 is used for acquiring configuration authentication information aiming at a target switch and sent by a user terminal based on a preset visual interface, and verifying the validity of an account based on the configuration authentication information;
The configuration information obtaining module 12 is configured to obtain client configuration information sent by a preset server and directed at the target switch if the validity check of the account passes;
The network environment construction module 13 is configured to configure a local environment of the target switch based on the client configuration information and the network card selection instruction, so as to construct a private configuration network environment of the target switch;
a network environment login module 14, configured to obtain task configuration information sent by a user, and login the private configuration network environment based on the task configuration information;
And the switch configuration module 15 is configured to obtain, in the private configuration network environment, a configuration file of the target switch from a preset cloud based on the VPN account and the FTP account in the client configuration information, so as to complete configuration online of the target switch based on the configuration file.
In this embodiment, by acquiring a series of configuration instructions, the configuration of the switch is sequentially executed, and a private configuration network environment is generated, so as to implement the configuration online of the target switch. Therefore, only the switch is required to support the access of a basic control port and a management port, and the ordinary user can finish the personalized opening configuration of the switch by one key; meanwhile, multi-user concurrent self-service deployment is supported, and the problem of single-point opening is solved; the cloud deployment of the server side has the characteristics of high reliability, strong universality, high expandability, agility and the like, and the user side can use a self-service opening tool to rapidly deploy and open at any time and any place by accessing the Internet; therefore, the deployment and configuration process of the switch becomes simpler and more efficient, and the communication and configuration opening cost is more cost-effective than that of the switch.
In some specific embodiments, the account checking module 11 may specifically include:
The request generation unit is used for acquiring the authentication account information and the equipment information which are sent by the user terminal and are aiming at the target switch, and generating an account authentication request based on the authentication account information and the equipment information;
and the request sending unit is used for sending the account authentication request to an authentication server so that the authentication server can check the validity of the account.
In some specific embodiments, the configuration information obtaining module 12 may specifically include:
The VPN account judgment unit is used for judging whether a VPN account exists or not through presetting a VPN server, authentication account information and equipment information if the account validity check passes;
The account creation unit is used for creating corresponding VPN account, FTP account and VPN configuration information to obtain client configuration information if the VPN account, the FTP account and the VPN configuration information do not exist;
The information acquisition unit is used for acquiring the client configuration information which is sent by the preset VPN server and aims at the target switch.
In some specific embodiments, the switch configuration online device may further include:
and the information matching module is used for acquiring the FTP account corresponding to the VPN account and VPN configuration information if the VPN account exists so as to obtain client configuration information.
In some specific embodiments, the network environment building module 13 may specifically include:
A VPN installation unit for installing a VPN to a local environment based on the client configuration information;
the environment deployment unit is used for acquiring a network card selection instruction based on the preset visual interface and carrying out local environment deployment based on the network card selection instruction so as to build a private configuration network environment of the target switch.
In some specific embodiments, the network environment login module 14 may specifically include:
the main interface login unit is used for generating a VPN login main interface on the preset visual interface after carrying out local initialization setting and target switch initialization setting based on the task configuration information;
and the login instruction acquisition unit is used for acquiring a login instruction through the VPN login main interface so as to log in the private configuration network environment.
In some specific embodiments, the switch configuration module 15 may specifically include:
the login verification unit is used for performing login verification of the target switch based on the VPN account in the client configuration information;
And the switch configuration online unit is used for acquiring the configuration file of the target switch from a preset FTP server through an FTP account if the login verification is passed, so that the configuration online of the target switch is completed based on the configuration file.
Further, the embodiment of the present application further discloses an electronic device, and fig. 6 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 6 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, which is loaded and executed by the processor 21 to implement relevant steps in the switch configuration online method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the switch configuration on-line method performed by the electronic device 20 disclosed in any of the previous embodiments.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by the processor, implements the switch configuration online method disclosed previously. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has outlined rather broadly the more detailed description of the application in order that the detailed description of the application that follows may be better understood, and in order that the present principles and embodiments may be better understood; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A switch configuration online method, applied to a client, comprising:
acquiring configuration authentication information aiming at a target switch and sent by a user terminal based on a preset visual interface, and checking the validity of an account based on the configuration authentication information;
If the validity of the account passes, acquiring client configuration information which is sent by a preset server and aims at the target switch;
Configuring a local environment of the target switch based on the client configuration information and the network card selection instruction so as to build a private configuration network environment of the target switch;
Acquiring task configuration information sent by a user, and logging in the private configuration network environment based on the task configuration information;
and under the private configuration network environment, acquiring a configuration file of the target switch from a preset cloud based on the VPN account and the FTP account in the client configuration information so as to finish the configuration online of the target switch based on the configuration file.
2. The method for online switch configuration according to claim 1, wherein the obtaining configuration authentication information for a target switch sent by a user terminal based on a preset visual interface and performing account validity verification based on the configuration authentication information includes:
Acquiring authentication account information and equipment information which are sent by a user terminal and are aimed at a target switch, and generating an account authentication request based on the authentication account information and the equipment information;
And sending the account authentication request to an authentication server so that the authentication server can check the validity of the account.
3. The method for configuring switch online according to claim 2, wherein if the account validity check passes, obtaining client configuration information for the target switch sent by a preset server includes:
If the account validity check is passed, judging whether a VPN account exists or not by presetting a VPN server, authentication account information and equipment information;
if the client configuration information does not exist, creating a corresponding VPN account, FTP account and VPN configuration information to obtain the client configuration information;
And acquiring client configuration information which is sent by the preset VPN server and aims at the target switch.
4. The switch configuration online method according to claim 3, wherein after the determining whether the VPN account exists by presetting the VPN server, the authentication account information, and the device information, the method further comprises:
If so, acquiring the FTP account corresponding to the VPN account and VPN configuration information to obtain client configuration information.
5. The switch configuration online method according to claim 1, wherein configuring the local environment of the target switch based on the client configuration information and the network card selection instruction to build a private configuration network environment of the target switch comprises:
installing a VPN to a local environment based on the client configuration information;
and acquiring a network card selection instruction based on the preset visual interface and performing local environment deployment based on the network card selection instruction so as to build a private configuration network environment of the target switch.
6. The switch configuration online method according to claim 2, wherein the logging in the private configuration network environment based on the task configuration information comprises:
after local initialization setting and target switch initialization setting are carried out based on the task configuration information, a VPN login main interface is generated on the preset visual interface;
and acquiring a login instruction through the VPN login main interface so as to log in the private configuration network environment.
7. The switch configuration online method according to any one of claims 1 to 6, wherein the obtaining, based on the VPN account number and the FTP account number in the client configuration information, the configuration file of the target switch from a preset cloud, so as to complete the configuration online of the target switch based on the configuration file, includes:
performing login verification of the target switch based on the VPN account in the client configuration information;
And if the login verification is passed, acquiring a configuration file of the target switch from a preset FTP server through an FTP account, so as to finish the configuration online of the target switch based on the configuration file.
8. A switch configuration online device, applied to a client, comprising:
The account verification module is used for acquiring configuration authentication information aiming at a target switch and sent by a user terminal based on a preset visual interface, and verifying the validity of the account based on the configuration authentication information;
the configuration information acquisition module is used for acquiring client configuration information which is sent by a preset server and aims at the target switch if the validity check of the account passes;
The network environment construction module is used for configuring the local environment of the target switch based on the client configuration information and the network card selection instruction so as to construct a private configuration network environment of the target switch;
the network environment login module is used for acquiring task configuration information sent by a user and logging in the private configuration network environment based on the task configuration information;
And the switch configuration module is used for acquiring the configuration file of the target switch from a preset cloud based on the VPN account and the FTP account in the client configuration information under the private configuration network environment so as to finish the configuration online of the target switch based on the configuration file.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the switch configuration on-line method of any of claims 1 to 7.
10. A computer readable storage medium for storing a computer program which when executed by a processor implements the switch configuration on-line method of any of claims 1 to 7.
CN202410257104.4A 2024-03-06 2024-03-06 Switch configuration online method, device, equipment and storage medium Pending CN118041774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410257104.4A CN118041774A (en) 2024-03-06 2024-03-06 Switch configuration online method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410257104.4A CN118041774A (en) 2024-03-06 2024-03-06 Switch configuration online method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118041774A true CN118041774A (en) 2024-05-14

Family

ID=90983985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410257104.4A Pending CN118041774A (en) 2024-03-06 2024-03-06 Switch configuration online method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118041774A (en)

Similar Documents

Publication Publication Date Title
JP3946700B2 (en) Method and apparatus for automatic establishment of network device addressability for a target network environment
US11178049B2 (en) Device deployment and net work management using a self-service portal
EP2156610B1 (en) Managing network components using usb keys
JP4714111B2 (en) Management computer, computer system and switch
US20090259759A1 (en) Terminal device, network connection method, and computer readable medium having program stored therein
CN105704226A (en) Intelligent terminal and network configuration method thereof
JP2005515549A (en) Network configuration management
CN111800399B (en) Information transmission method, device, equipment and storage medium
US20170329739A1 (en) Methods and systems for loading a boot agent on a router network device
WO2021061419A1 (en) Template-based onboarding of internet-connectible devices
JP2006023819A (en) Storage device
CN114285697A (en) Multi-network single-inlet VPN system based on WireGuard and OpenVPN
CN105847321A (en) Intelligent terminal and system permission-free network configuration method thereof
US9928082B1 (en) Methods and systems for remote device configuration
JP2006129184A (en) Network electric appliance control system
CN114270785B (en) Setting device, communication system, setting method, and program
CN118041774A (en) Switch configuration online method, device, equipment and storage medium
Cisco Configuring Devices with Cisco UGM
EP2887577B1 (en) Method for establishing and/or configuring an internet protocol network connection between a customer premises equipment and a telecommunications network
Cisco Use Case Provisioning
Cisco Configuring Devices with Cisco UGM
CN115277422B (en) SDN networking generation method, device, equipment and medium
TWI241797B (en) Method for establishing addressability, deploying, installing and delivering a network device, network device provisioning system, network device, and machine-readable medium
US11856117B1 (en) Autonomous distributed wide area network having control plane and order management on a blockchain
WO2021064873A1 (en) Setting device, communication system, setting method, and program

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