CN117294597A - Network card binding configuration method, device, equipment and medium - Google Patents

Network card binding configuration method, device, equipment and medium Download PDF

Info

Publication number
CN117294597A
CN117294597A CN202311268512.1A CN202311268512A CN117294597A CN 117294597 A CN117294597 A CN 117294597A CN 202311268512 A CN202311268512 A CN 202311268512A CN 117294597 A CN117294597 A CN 117294597A
Authority
CN
China
Prior art keywords
network card
card binding
node
binding configuration
bound
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
CN202311268512.1A
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.)
Dawning Information Industry Beijing Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN202311268512.1A priority Critical patent/CN117294597A/en
Publication of CN117294597A publication Critical patent/CN117294597A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0883Semiautomatic configuration, e.g. proposals from system

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a network card binding configuration method, device, equipment and medium. The method comprises the following steps: acquiring network card binding configuration parameters of nodes to be bound; writing the network card binding configuration parameters into a variable file of an active tool through a flash framework; and calling an active tool through the flash framework, and configuring network card binding of different modes for each node to be bound according to the variable file batch. According to the technical scheme provided by the embodiment of the invention, the network card binding of the plurality of nodes in different modes can be configured in batches through the flash framework, and the network card binding efficiency is improved.

Description

Network card binding configuration method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for binding and configuring a network card.
Background
With more and more servers used by various private clouds and public clouds, in order to make the environment and the service operate more stably, the network contained in each server needs to configure a corresponding network card binding mode according to the requirement.
At present, network card binding is generally performed by using a Python script or shell script configuration mode, but the two modes only support network card binding of a single server, cannot operate a plurality of servers at the same time, and cannot meet network card binding service of a large-scale server in a plurality of modes.
Disclosure of Invention
The invention provides a network card binding configuration method, device, equipment and medium, which realize that an active batch configures network card binding of a plurality of nodes in different modes through a flash frame, and improve the efficiency of network card binding.
According to an aspect of the present invention, there is provided a network card binding configuration method, including:
acquiring network card binding configuration parameters of nodes to be bound;
writing the network card binding configuration parameters into a variable file of an active tool through a flash framework;
and calling an active tool through the flash framework, and configuring network card binding of different modes for each node to be bound according to the variable file batch.
Optionally, before the obtaining the network card binding configuration parameter of the node to be bound, the method further includes:
initializing the basic environment of the flash framework and the active tool to the node, so that the node becomes an active management node;
and establishing communication links between the node and other nodes to be bound.
By adopting the technical scheme, the nodes configured with the flash framework and the active tool are used as active management nodes, and other nodes to be bound are uniformly managed to bind the network card.
Optionally, the obtaining the network card binding configuration parameter of the node to be bound includes:
reading network card binding configuration parameters corresponding to each node to be bound through communication links between the node and other nodes to be bound; the network card binding configuration parameters at least comprise: host name, IP address, subnet mask, gateway address, network card name and network card binding mode of the node;
and generating a target Excel form according to the network card binding configuration parameters of the node and the network card binding configuration parameters of other nodes to be bound.
By adopting the technical scheme, different network card binding modes to be configured by each node are determined by collecting network card binding configuration parameters of all nodes; by writing the network card binding configuration parameters into the Excel table, the subsequent method can write the network card binding configuration parameters into the active variable file by using the flash framework in an Excel table importing mode, and the operation is simple and easy to realize.
Optionally, the writing, by the flash framework, the network card binding configuration parameter into a variable file of the stable tool includes:
calling a table importing tool through a flash framework, and reading network card binding configuration parameters in a target Excel table;
and converting the network card binding configuration parameters into dictionary format, and writing the dictionary format into a variable file of an active tool.
By adopting the technical scheme, the table data is quickly converted into the dictionary format which is matched with the variable file by calling the table importing tool integrated by the flash framework, and the variable file is written in, so that the efficiency and the accuracy of writing the network card binding configuration parameters into the variable file can be improved.
Optionally, after calling an active tool through the flash framework, configuring network card binding of different modes for each node to be bound according to the variable file batch, the method further includes:
and calling an active tool through the flash framework, and restarting the network service of each node to be bound in batches.
By adopting the technical scheme, network card binding work of all nodes can be completed rapidly by restarting network services in an active batch.
According to another aspect of the present invention, there is provided a network card binding configuration apparatus, including:
the parameter acquisition module is used for acquiring network card binding configuration parameters of the node to be bound;
the parameter writing module is used for writing the network card binding configuration parameters into a variable file of the active tool through a flash framework;
and the binding configuration module is used for calling an active tool through the flash framework and configuring network card binding of different modes for each node to be bound in batches according to the variable files.
Optionally, the parameter obtaining module is configured to:
reading network card binding configuration parameters corresponding to each node to be bound through communication links between the node and other nodes to be bound; the network card binding configuration parameters at least comprise: host name, IP address, subnet mask, gateway address, network card name and network card binding mode of the node;
and generating a target Excel form according to the network card binding configuration parameters of the node and the network card binding configuration parameters of other nodes to be bound.
Optionally, the parameter writing module is configured to:
calling a table importing tool through a flash framework, and reading network card binding configuration parameters in a target Excel table;
and converting the network card binding configuration parameters into dictionary format, and writing the dictionary format into a variable file of an active tool.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the network card binding configuration method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the network card binding configuration method according to any one of the embodiments of the present invention when executed.
According to the technical scheme, network card binding configuration parameters of the nodes to be bound are obtained; writing the network card binding configuration parameters into a variable file of an active tool through a flash framework; and calling an active tool through the flash framework, configuring network card binding of different modes for each node to be bound according to the variable file in batches, solving the problem that the related technology cannot meet the network card binding service of a large-scale server in multiple modes, realizing the network card binding of the active nodes in batches under different modes, and improving the network card binding efficiency.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a network card binding configuration method according to a first embodiment of the present invention;
fig. 2 is a flowchart of another network card binding configuration method according to the second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a network card binding configuration device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a network card binding configuration method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the term "object" and the like in the description of the present invention and the claims and the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a network card binding configuration method according to an embodiment of the present invention, where the embodiment is applicable to a case where network card binding of different modes is implemented in batches for a plurality of nodes, and the method may be performed by a network card binding configuration device, where the network card binding configuration device may be implemented in a form of hardware and/or software, and the device may be configured in an electronic device, for example, an existing management node device configured with a flash framework and an existing tool. As shown in fig. 1, the method includes:
s110, acquiring network card binding configuration parameters of the node to be bound.
The nodes to be bound comprise the node and other nodes to be bound by the network card. The node is an active management node. The active management node is also a node waiting for network card binding. Of course, the active management node may not need to bind the network card.
Optionally, before the obtaining the network card binding configuration parameter of the node to be bound, the method further includes: initializing the basic environment of the flash framework and the active tool to the node, so that the node becomes an active management node; and establishing communication links between the node and other nodes to be bound.
The flash framework is a lightweight Web application framework written by using Python, and the conventional framework is a batch automation operation and maintenance tool developed based on Python, and functions such as batch system configuration, batch program deployment, batch operation commands and the like can be realized only by connecting clients through SSH to execute tasks.
In this embodiment, the basic environments of the flash framework and the active tool are initialized to the node, so that the node becomes an active management node, and communication links are established with other nodes to be bound, so that the node can uniformly manage other nodes to be bound to perform network card binding in batches.
Optionally, the obtaining the network card binding configuration parameter of the node to be bound includes: reading network card binding configuration parameters corresponding to each node to be bound through communication links between the node and other nodes to be bound; the network card binding configuration parameters at least comprise: host name, IP address, subnet mask, gateway address, network card name and network card binding mode of the node; and generating a target Excel form according to the network card binding configuration parameters of the node and the network card binding configuration parameters of other nodes to be bound.
The network card binding is a technology for binding a plurality of physical network cards into one logic network card in the system, and can improve network throughput and realize functions of network redundancy, load and the like. The network card binding is divided into seven working modes in total, namely: balance polling policy, primary-backup policy, balance policy, broadcast policy, dynamic link aggregation, adapter transmission load balancing, and adapter adaptive load balancing.
In this embodiment, through communication links between the present node and other nodes to be bound, network card binding configuration parameters of each node to be bound, for example, a host name, an IP address, a subnet mask, a gateway address, a network card name, a network card binding mode, and the like of the node are respectively read, and a network card binding mode and other configuration information to be configured of each node to be bound are determined. And then when the network card binding is needed by the node, the network card binding configuration parameters of all nodes to be bound including the node are written into the Excel table, so that the network card binding configuration parameters in the Excel table can be written into the variable file of the active tool by using the flash framework, and the operation is simple and easy to realize.
S120, writing the network card binding configuration parameters into a variable file of an active tool through a flash framework.
In this embodiment, the flashframe supports the table import and file modification functions, so after the target Excel table containing the network card binding configuration parameters is obtained, the network card binding configuration parameters in the Excel table can be written into the variable file of the secure tool by using the table import and file modification functions, and a foundation is provided for the secure tool to implement batch network card binding.
Optionally, the writing, by the flash framework, the network card binding configuration parameter into a variable file of the stable tool includes: calling a table importing tool through a flash framework, and reading network card binding configuration parameters in a target Excel table; and converting the network card binding configuration parameters into dictionary format, and writing the dictionary format into a variable file of an active tool.
In this embodiment, the flash framework may be called through an API, and a table import tool integrated by the flash framework is used to read the network card binding configuration parameters in the target Excel table, convert the data format of the network card binding configuration parameters into a dictionary format adapted to the variable file of the stable tool, and write the data of the dictionary format into the corresponding position in the variable file of the stable tool.
By adopting the technical scheme, the table data can be converted into the dictionary format and written into the variable file by calling the table importing tool integrated by the flash framework, so that the efficiency and the accuracy of writing the network card binding configuration parameters into the variable file are improved.
S130, calling an active tool through the flash framework, and configuring network card binding of different modes for each node to be bound in batches according to the variable files.
In this embodiment, an active tool integrated by a flash framework may be called through an API interface, and through a communication link between the active node and other nodes to be bound, the active tool may efficiently and conveniently configure, in batches, network card binding in a corresponding mode for each node to be bound according to a variable file, thereby improving efficiency of configuring network card binding in different modes of multiple nodes.
Optionally, after calling an active tool through the flash framework, configuring network card binding of different modes for each node to be bound according to the variable file batch, the method further includes: and calling an active tool through the flash framework, and restarting the network service of each node to be bound in batches. According to the embodiment, network card binding work of all nodes to be bound can be completed rapidly by calling an active tool to restart network services in batches.
According to the technical scheme, network card binding configuration parameters of the nodes to be bound are obtained; writing the network card binding configuration parameters into a variable file of an active tool through a flash framework; and calling an active tool through the flash framework, configuring network card binding of different modes for each node to be bound according to the variable file in batches, solving the problem that the related technology cannot meet the network card binding service of a large-scale server in multiple modes, realizing the network card binding of the active nodes in batches under different modes, and improving the network card binding efficiency.
Example two
Fig. 2 is a flowchart of another network card binding configuration method according to the second embodiment of the present invention. The present embodiment further describes the process of batch configuration of network card bindings. As shown in fig. 2, the method includes:
s210, initializing the basic environment of the flash framework and the stable tool to the node, and establishing communication links between the node and other nodes to be bound.
S220, reading network card binding configuration parameters corresponding to each node to be bound through communication links between the node and other nodes to be bound, and generating a target Excel table.
The network card binding configuration parameters at least comprise: host name, IP address, subnet mask, gateway address, network card name, and network card binding mode of the node.
S230, calling a table importing tool through a flash framework, reading network card binding configuration parameters in the target Excel table, converting the network card binding configuration parameters into a dictionary format, and writing the network card binding configuration parameters into a variable file of the stable tool.
S240, calling an active tool through the flash framework, configuring network card binding of different modes for each node to be bound in batches according to the variable files, and restarting the network service of each node to be bound in batches.
According to the technical scheme, network card binding configuration parameters of the nodes to be bound are obtained; writing the network card binding configuration parameters into a variable file of an active tool through a flash framework; and calling an active tool through the flash framework, configuring network card binding of different modes for each node to be bound according to the variable file in batches, solving the problem that the related technology cannot meet the network card binding service of a large-scale server in multiple modes, realizing the network card binding of the active nodes in batches under different modes, and improving the network card binding efficiency.
Example III
Fig. 3 is a schematic structural diagram of a network card binding configuration device according to a second embodiment of the present invention. As shown in fig. 3, the apparatus includes:
the parameter obtaining module 310 is configured to obtain network card binding configuration parameters of the node to be bound;
the parameter writing module 320 is configured to write the network card binding configuration parameter into a variable file of the stable tool through a flash framework;
and the binding configuration module 330 is configured to call an active tool through the flash framework, and configure network card binding of different modes for each node to be bound in batch according to the variable file.
According to the technical scheme, network card binding configuration parameters of the nodes to be bound are obtained; writing the network card binding configuration parameters into a variable file of an active tool through a flash framework; and calling an active tool through the flash framework, configuring network card binding of different modes for each node to be bound according to the variable file in batches, solving the problem that the related technology cannot meet the network card binding service of a large-scale server in multiple modes, realizing the network card binding of the active nodes in batches under different modes, and improving the network card binding efficiency.
Optionally, the method further comprises: a communication module, configured to, before the acquiring the network card binding configuration parameter of the node to be bound,
initializing the basic environment of the flash framework and the active tool to the node, so that the node becomes an active management node;
and establishing communication links between the node and other nodes to be bound.
Optionally, the parameter obtaining module 310 is configured to:
reading network card binding configuration parameters corresponding to each node to be bound through communication links between the node and other nodes to be bound; the network card binding configuration parameters at least comprise: host name, IP address, subnet mask, gateway address, network card name and network card binding mode of the node;
and generating a target Excel form according to the network card binding configuration parameters of the node and the network card binding configuration parameters of other nodes to be bound.
Optionally, the parameter writing module 320 is configured to:
calling a table importing tool through a flash framework, and reading network card binding configuration parameters in a target Excel table;
and converting the network card binding configuration parameters into dictionary format, and writing the dictionary format into a variable file of an active tool.
Optionally, the binding configuration module 330 is further configured to: and after calling an active tool through the flash framework, configuring network card binding of different modes for each node to be bound in batches according to the variable file, calling the active tool through the flash framework, and restarting the network service of each node to be bound in batches.
The network card binding configuration device provided by the embodiment of the invention can execute the network card binding configuration method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the network card binding configuration method.
In some embodiments, the network card binding configuration method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the network card binding configuration method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the network card binding configuration method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. The network card binding configuration method is characterized by comprising the following steps of:
acquiring network card binding configuration parameters of nodes to be bound;
writing the network card binding configuration parameters into a variable file of an active tool through a flash framework;
and calling an active tool through the flash framework, and configuring network card binding of different modes for each node to be bound according to the variable file batch.
2. The method of claim 1, further comprising, prior to the obtaining the network card binding configuration parameters of the node to be bound:
initializing the basic environment of the flash framework and the active tool to the node, so that the node becomes an active management node;
and establishing communication links between the node and other nodes to be bound.
3. The method according to claim 2, wherein the obtaining the network card binding configuration parameter of the node to be bound includes:
reading network card binding configuration parameters corresponding to each node to be bound through communication links between the node and other nodes to be bound; the network card binding configuration parameters at least comprise: host name, IP address, subnet mask, gateway address, network card name and network card binding mode of the node;
and generating a target Excel form according to the network card binding configuration parameters of the node and the network card binding configuration parameters of other nodes to be bound.
4. The method of claim 3, wherein writing the network card binding configuration parameters into the variable file of the stable tool through the flash framework comprises:
calling a table importing tool through a flash framework, and reading network card binding configuration parameters in a target Excel table;
and converting the network card binding configuration parameters into dictionary format, and writing the dictionary format into a variable file of an active tool.
5. The method of claim 1, further comprising, after invoking an secure tool through the flash framework and configuring network card binding of different modes for each node to be bound according to the variable file batch:
and calling an active tool through the flash framework, and restarting the network service of each node to be bound in batches.
6. A network card binding configuration apparatus, comprising:
the parameter acquisition module is used for acquiring network card binding configuration parameters of the node to be bound;
the parameter writing module is used for writing the network card binding configuration parameters into a variable file of the active tool through a flash framework;
and the binding configuration module is used for calling an active tool through the flash framework and configuring network card binding of different modes for each node to be bound in batches according to the variable files.
7. The apparatus of claim 6, wherein the parameter acquisition module is configured to:
reading network card binding configuration parameters corresponding to each node to be bound through communication links between the node and other nodes to be bound; the network card binding configuration parameters at least comprise: host name, IP address, subnet mask, gateway address, network card name and network card binding mode of the node;
and generating a target Excel form according to the network card binding configuration parameters of the node and the network card binding configuration parameters of other nodes to be bound.
8. The apparatus of claim 7, wherein the parameter writing module is configured to:
calling a table importing tool through a flash framework, and reading network card binding configuration parameters in a target Excel table;
and converting the network card binding configuration parameters into dictionary format, and writing the dictionary format into a variable file of an active tool.
9. An electronic device, the electronic device comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the network card binding configuration method of any of claims 1-5.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the network card binding configuration method of any one of claims 1-5 when executed.
CN202311268512.1A 2023-09-27 2023-09-27 Network card binding configuration method, device, equipment and medium Pending CN117294597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311268512.1A CN117294597A (en) 2023-09-27 2023-09-27 Network card binding configuration method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311268512.1A CN117294597A (en) 2023-09-27 2023-09-27 Network card binding configuration method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117294597A true CN117294597A (en) 2023-12-26

Family

ID=89258293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311268512.1A Pending CN117294597A (en) 2023-09-27 2023-09-27 Network card binding configuration method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117294597A (en)

Similar Documents

Publication Publication Date Title
CN111125057A (en) Service request processing method and device and computer system
CN113572833B (en) Cloud mobile phone maintenance method and device, electronic equipment and storage medium
CN114374703B (en) Cloud mobile phone information acquisition method, device, equipment and storage medium
CN117294597A (en) Network card binding configuration method, device, equipment and medium
CN112925623B (en) Task processing method, device, electronic equipment and medium
CN115599571A (en) Data processing method and device, electronic equipment and storage medium
CN115529186A (en) SSL certificate unloading method, device and system based on soft load balancing
CN113691403A (en) Topological node configuration method, related device and computer program product
CN113326192A (en) Application testing method, device, equipment and storage medium for mobile terminal
CN114553894B (en) Data synchronization method, device, system and storage medium
CN116468824B (en) Animation redirection method, device, electronic equipment and storage medium
CN114996557B (en) Service stability determination method, device, equipment and storage medium
CN113741937B (en) Application updating method and device for cloud terminal and computer program product
CN113032040B (en) Method, apparatus, device, medium, and article for processing tasks
CN117271667A (en) Data reading method and device, electronic equipment and storage medium
CN117806702A (en) Target software acquisition method and device, electronic equipment and storage medium
CN115061664A (en) Object conversion method and device, electronic equipment and storage medium
CN115967638A (en) Equipment simulation system, method, equipment and storage medium
CN117278648A (en) Protocol dynamic adaptation method, device, electronic equipment and storage medium
CN117914819A (en) Chat robot menu display method, device and system
CN117651078A (en) Data transmission method and device, electronic equipment and storage medium
CN117873452A (en) Static variable management method, device, electronic equipment and storage medium
CN117081939A (en) Traffic data processing method, device, equipment and storage medium
CN116708362A (en) Communication address processing method, device, equipment and storage medium
CN115776489A (en) Information acquisition method and device, electronic equipment and computer readable storage medium

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