CN112448839A - Network card configuration method and device and computer storage medium - Google Patents

Network card configuration method and device and computer storage medium Download PDF

Info

Publication number
CN112448839A
CN112448839A CN201910839246.0A CN201910839246A CN112448839A CN 112448839 A CN112448839 A CN 112448839A CN 201910839246 A CN201910839246 A CN 201910839246A CN 112448839 A CN112448839 A CN 112448839A
Authority
CN
China
Prior art keywords
network card
card configuration
bond network
configuration information
bare metal
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.)
Granted
Application number
CN201910839246.0A
Other languages
Chinese (zh)
Other versions
CN112448839B (en
Inventor
姚军
顾志峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910839246.0A priority Critical patent/CN112448839B/en
Publication of CN112448839A publication Critical patent/CN112448839A/en
Application granted granted Critical
Publication of CN112448839B publication Critical patent/CN112448839B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/78Architectures of resource allocation
    • H04L47/783Distributed allocation of resources, e.g. bandwidth brokers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/827Aggregation of resource allocation or reservation requests
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a network card configuration method, a network card configuration device and a computer storage medium, wherein the method comprises the following steps: acquiring configuration information of the binding bond network card; acquiring link aggregation group configuration information of a target bare metal server; determining whether the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information; and if the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, generating a bond network card configuration file according to the bond network card configuration information, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work. The method comprises the steps of obtaining an accurate bond network card configuration file by matching link aggregation group configuration information and bond network card configuration information of a target bare metal server, and automatically configuring a bond network card for the bare metal server through a bond network card configuration agent so as to avoid the problems of non-uniform names of subsequently configured physical network cards, errors in created bond modes and the like.

Description

Network card configuration method and device and computer storage medium
Technical Field
The invention relates to the technical field of cloud computing, in particular to a network card configuration method and device and a computer storage medium.
Background
The cloud computing technology is a technology for computing in a cloud based on a virtual machine shared by physical resources. The cloud computing technology needs a high-performance computing platform, the bare metal server serves as the high-performance computing platform and has the characteristics of low time delay, high performance and the like, and the bare metal server is suitable for the field of cloud computing.
After the bare metal server deploys the operating system, the operating system needs to have High Availability (HA), which is to improve the Availability of the operating system or application by reducing down time caused by daily maintenance operations and sudden system breakdown as much as possible.
At present, high availability of a system can be realized by adopting a binding (bond or roaming) technology, the bond technology is a network card binding technology, a plurality of physical network cards can be bound into one logical network card, the logical network card is called a bond network card, an Internet Protocol (IP) address is configured for the bond network card, and when any physical network card fails, other network cards cannot be influenced, so that normal communication of a network can be ensured, the redundancy of the local network card, the capacity expansion of bandwidth and the load balance are realized, and the reliability is improved.
However, at present, the manual configuration of the bond network card is inefficient and is not suitable for a cloud computing scenario. Under the circumstance, how to automatically configure the bond network card for the bare metal server becomes an urgent problem to be solved.
Disclosure of Invention
In view of this, embodiments of the present invention provide a network card configuration method, apparatus, and computer storage medium for solving at least one problem in the prior art, and automatically configure a bond network card for a bare metal server.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a network card configuration method, where the method includes:
acquiring configuration information of the binding bond network card;
acquiring link aggregation group configuration information of a target bare metal server;
determining whether the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information;
if the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, generating a bond network card configuration file according to the bond network card configuration information, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work;
and sending a bond network card configuration file to the target bare metal server.
In the above technical solution, the obtaining of the link aggregation group configuration information of the target bare metal server includes:
acquiring a target bare metal server according to a set scheduling strategy;
acquiring physical network card information of the target bare metal server according to the target bare metal server identification and the corresponding relation between the bare metal server identification and the physical network card information of the bare metal server;
and acquiring the link aggregation group configuration information of the switch of the target bare metal server according to the physical network card information of the target bare metal server.
In the above technical solution, after determining whether the link aggregation group configuration information of the target bare metal server matches with the bond network card configuration information, the method further includes:
and if the link aggregation group configuration information of the target bare metal server is not matched with the bond network card configuration information, generating prompt information, wherein the prompt information is used for prompting that the bond network card configuration information is not matched with the link aggregation group configuration information and the bond network card configuration information needs to be modified.
In a second aspect, an embodiment of the present invention provides a network card configuration method, where the method includes:
the target bare metal server acquires a bound bond network card configuration file, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work;
loading a bond network card configuration agent;
and loading the bond network card configuration file by the bond network card configuration agent, and configuring the bond network card configuration information of the target bare metal server according to the bond network card configuration file.
In the above technical solution, the loading of the bond network card configuration agent into the bond network card configuration file, and configuring the bond network card configuration information of the target bare metal server according to the bond network card configuration file includes:
the bond network card configuration agent determines whether a bond network card configuration file needs to be loaded according to the bond network card configuration identifier;
and if the bond network card configuration file is determined to be loaded according to the bond network card configuration identifier, loading the bond network card configuration file by the bond network card configuration agent, and configuring the bond network card configuration information of the target bare metal server according to the bond network card configuration file.
In the above technical solution, after the bond network card configuration agent loads a bond network card configuration file and performs the bond network card configuration operation of the target bare metal server according to the bond network card configuration file, the method further includes:
constructing link aggregation group configuration information of the switch according to the link layer discovery protocol message;
determining whether the constructed link aggregation group configuration information of the switch is matched with the bond network card configuration information of the target bare metal server;
and if the constructed link aggregation group configuration information of the switch is not matched with the bond network card configuration information of the target bare metal server, modifying the bond network card configuration information according to the constructed link aggregation group configuration information of the switch.
In a third aspect, an embodiment of the present invention provides a network card configuration device, where the device includes:
the first acquisition unit is used for acquiring the configuration information of the binding bond network card;
the second acquisition unit is used for acquiring the link aggregation group configuration information of the target bare metal server;
a determining unit, configured to determine whether the link aggregation group configuration information of the target bare metal server matches the bond network card configuration information;
if the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, generating a bond network card configuration file according to the bond network card configuration information, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work;
and the sending unit is used for sending the bond network card configuration file to the target bare metal server.
In a fourth aspect, an embodiment of the present invention provides a network card configuration device, where the device includes:
the device comprises an acquisition unit, a binding unit and a management unit, wherein the acquisition unit is used for acquiring a binding network card configuration file which is used for indicating a binding network card configuration agent to carry out binding network card configuration work;
the loading unit is used for loading the bond network card configuration agent;
and the first processing unit is used for loading the bond network card configuration file and configuring the bond network card configuration information of the target bare metal server according to the bond network card configuration file.
In a fifth aspect, an embodiment of the present invention provides a network card configuration device, where the device includes a network interface, a memory, and a processor; wherein,
the network interface is configured to realize connection communication between the components;
the memory configured to store a computer program operable on the processor;
the processor is configured to perform the method of the first aspect when running the computer program.
In a sixth aspect, an embodiment of the present invention provides a network card configuration device, where the device includes a network interface, a memory, and a processor; wherein,
the network interface is configured to realize connection communication between the components;
the memory configured to store a computer program operable on the processor;
the processor, when executing the computer program, is configured to perform the method of the second aspect.
In a seventh aspect, an embodiment of the present invention provides a computer storage medium, where a computer program is stored, and when the computer program is executed by at least one processor, the computer storage medium implements any one of the methods in the first aspect or the second aspect.
According to the network card configuration method, the network card configuration device and the computer storage medium provided by the embodiment of the invention, the network card configuration information of the binding bond is acquired; acquiring link aggregation group configuration information of a target bare metal server; determining whether the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information; and if the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, generating a bond network card configuration file according to the bond network card configuration information, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work, namely obtaining an accurate bond network card configuration file by matching the link aggregation group configuration information of the target bare metal server with the bond network card configuration information, and automatically configuring a bond network card for the bare metal server through the bond network card configuration agent so as to avoid the problems of non-uniform names of subsequently configured physical network cards, wrong created bond modes and the like.
Drawings
Fig. 1 is a schematic diagram of a configuration bond network card according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a physical network card of a bare metal server according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a switch connection according to an embodiment of the present invention;
fig. 4 is a first schematic flow chart illustrating an implementation process of a network card configuration method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an implementation flow of a network card configuration method according to an embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating an implementation process of a network card configuration method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a network card configuring apparatus 700 according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a network card configuring apparatus 800 according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a specific hardware structure of a network card configuration device 900 according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a specific hardware structure of a network card configuration device 1000 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following describes specific technical solutions of the present invention in further detail with reference to the accompanying drawings in the embodiments of the present invention. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Currently, there are seven modes (modes) of operation for bond technology, as follows:
(1) balance-rr mode, mode 0: the system has the functions of high availability and load balance, and a switch needs to be configured;
(2) active-backup mode, mode 1: the system has a high availability function, a switch is not required to be configured, only one physical network card works in the mode, only one Media Access Control (MAC) address exists externally, and the utilization rate of a port is low;
(3) balance-xor mode, mode 2: a switch does not need to be configured;
(4) broadcast mode, mode 3: a switch does not need to be configured;
(5)802.3ad mode, mode 4: the method comprises the steps that a switch is required to be configured, a port on the switch is added into a link aggregation group, and the link aggregation group is a set of logic links formed by aggregating a plurality of physical links connected with a network card;
(6) balance-tlb mode, mode 5: a switch does not need to be configured;
(7) balance-alb mode, mode 6: the method has the functions of high availability and load balancing, and does not need to configure a switch.
Different bond working modes have different configuration requirements on the switch, and a bond network card can be configured for the bare metal server according to the physical network card, the bond network card parameters and the configuration of the switch. At present, there are two bond network card configuration methods, which are as follows:
1) after the bare metal server deploys the operating system, a user manually configures the bond network card, and the manual configuration of the bond network card is low in efficiency and is not suitable for a cloud computing scene.
2) The method comprises the steps of presetting scripts in mirror images of bare metal servers, and automatically configuring the bond network card according to the preset scripts after the bare metal servers are started, but various errors are easily caused in the process of automatically configuring the bond network card, such as non-uniform names of configured physical network cards, errors of created bond modes and the like, and the method is inflexible.
Configuring a plurality of physical network cards into one bond network card, as shown in fig. 1, eno1 and eno3 represent two physical network cards, configuring physical network cards eno1 and eno3 into one network card bond1, and setting an IP address for network card bond1, wherein the IP address is 10.144.202.143.
Different physical network cards can be configured for different types of bare metal servers, for example, 1 physical network card with double 1GE electrical ports and 1 physical network card with double 10GE optical ports, namely 4 physical network cards, are configured for the bare metal server with the model 1; the bare metal server of model 2 is configured with 1 physical network card with double 1GE electric ports and two physical network cards with double 10GE optical ports, namely 6 physical network cards.
As shown in fig. 2, a bare metal server with 11 physical network cards has 1 single-port Intelligent Platform Management Interface (IPMI) network card, 2 physical network cards with two 1GE electrical ports, and 3 physical network cards with two 10GE optical ports, where the IPMI network card is not configured as a bond network card, and 10 network cards are configured as bond network cards, where slot represents slot position. As shown in table 1, according to the principle that every two physical network cards are configured into a bond network card, 5 bond network cards can be configured, if a physical network card in the same slot position cannot be configured with one bond network card, there are several mapping relationships between the bond network card and the physical network card, the combination in the table is only an example, slot1.1 in the table represents the physical network card corresponding to the first port of the first slot position:
TABLE 1
Figure BDA0002193160160000071
The configuration of the bond network card needs to refer to the network interface connection of the switch, whether the interface of the switch is matched with the bond network card of the bare metal server, namely whether the link aggregation group of the switch is matched with the bond network card. As shown in fig. 3, the network connection of the switch is already fixed, the physical network card slot2.1 is connected to the management network access switch 2, and the physical network card slot4.1 is connected to the service network access switch 2. Because the switches of the two networks can not access the same bond network card, the management network access switch 2 and the service network access switch 2 can not be adapted to the same bond network card of the bare metal server, if the physical network card slot2.1 and the physical network card slot4.1 are configured in the same bond network card, when the physical network card slot2.1 goes wrong, other physical network cards in the bond network card can not be used, and the bond network card can not realize high availability.
The embodiment of the present invention provides a network card configuration method, fig. 4 is a schematic view illustrating an implementation flow of the network card configuration method provided in the embodiment of the present invention, as shown in fig. 4, the method mainly includes the following steps:
step 401, obtaining configuration information of the binding bond network card.
It should be noted that the cloud platform may obtain the locally preset bond network card configuration information, and does not need to select or modify the bond network card configuration information by the user.
Step 402, obtaining link aggregation group configuration information of the target bare metal server.
It should be noted that the cloud platform may obtain configuration information of a link aggregation group of the target bare metal server, where the link aggregation group is a set of logical links formed by aggregating a plurality of physical links connected to the network card.
The cloud platform can acquire a target bare metal server according to a set scheduling strategy, acquire physical network card information of the target bare metal server according to the target bare metal server identifier and the corresponding relationship between the bare metal server identifier and the physical network card information of the bare metal server, and acquire link aggregation group configuration information of a switch of the target bare metal server according to the physical network card information of the target bare metal server. The scheduling policy may be scheduling according to a disk space of the bare metal server, for example, the cloud platform selects a target bare metal server with a largest disk space according to the disk space of each bare metal server in the cluster of bare metal servers. The cloud platform creates physical network card information of the bare metal server cluster locally, namely the cloud platform stores the corresponding relation between the bare metal server identifier and the physical network card information of the bare metal server, so that when the cloud platform can obtain the physical network card information of the target bare metal server in the created physical network card information of the bare metal server cluster according to the target bare metal server identifier and the corresponding relation between the bare metal server identifier and the physical network card information of the bare metal server, the physical network card information of the target bare metal server comprises switch port information connected with the physical network card, and link aggregation group configuration information of the switch is obtained according to the switch port information connected with the physical network card.
Step 403, determining whether the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information; and if the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, generating a bond network card configuration file according to the bond network card configuration information, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work.
It should be noted that, after the cloud platform acquires the link aggregation group configuration information of the target bare metal server, the link aggregation group configuration information is analyzed through a network protocol, physical network card information connected with a physical link in the link aggregation group configuration information is acquired, the physical network card information is matched with physical network card information in the bond network card configuration information, whether the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information is judged, the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, a bond network card configuration file is generated according to the bond network card configuration information, and the bond network card configuration file includes information such as an MAC address and a bond mode of a physical network card configuring the bond network card.
It should be noted that if the link aggregation group configuration information of the target bare metal server is not matched with the bond network card configuration information, a prompt message is generated, where the prompt message is used to prompt that the bond network card configuration information is not matched with the link aggregation group configuration information and that the bond network card configuration information needs to be modified.
Step 404, sending a bond network card configuration file to the target bare metal server.
It should be noted that, when the cloud platform determines that the link aggregation group configuration information of the target bare metal server matches with the bond network card configuration information, and generates a bond network card configuration file, the cloud platform sends the bond network card configuration file to the target bare metal server, so that the target bare metal server loads the bond network card configuration agent, and the network card configuration agent performs bond network card configuration work.
It should be noted that, when the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, the bond network card configuration file generated according to the bond network card configuration information is accurate, so as to avoid the problems of non-uniform names of subsequently configured physical network cards, error created bond modes, and the like.
The embodiment of the present invention provides a network card configuration method, and fig. 5 is a schematic view illustrating an implementation flow of the network card configuration method provided in the embodiment of the present invention, as shown in fig. 5, the method mainly includes the following steps:
step 501, the target bare metal server obtains a bound bond network card configuration file, and the bond network card configuration file is used for indicating a bond network card configuration agent to perform bond network card configuration work.
It should be noted that, after the cloud platform generates the bond network card configuration file, the bond network card configuration file is sent to the target bare metal server, and the target bare metal server receives the bond network card configuration file.
And 502, loading the bond network card configuration agent.
It should be noted that the bond network card configuration agent in the system image of the operating system is loaded, but the bond network card configuration agent is not configured in the process of deploying the operating system by the target bare metal server.
And 503, loading a bond network card configuration file by the bond network card configuration agent, and configuring the bond network card configuration information of the target bare metal server according to the bond network card configuration file.
It should be noted that, after the target bare metal server has loaded the bond network card configuration agent, the bond network card configuration agent determines whether a bond network card configuration file needs to be loaded according to the bond network card configuration identifier, and if it is determined that the bond network card configuration file needs to be loaded according to the bond network card configuration identifier, the bond network card configuration agent loads the bond network card configuration file, and configures the bond network card configuration information of the target bare metal server according to the bond network card configuration file. The method comprises the steps that a bond network card configuration identifier comprises a loaded state and an unloaded state, the bond network card configuration identifier is used for indicating whether a bond network card configuration file is loaded, when the bond network card configuration identifier is in the unloaded state, the bond network card configuration file is indicated to be unloaded, a target bare metal server is not configured with a bond network card, and the bond network card configuration file needs to be loaded; and when the configuration identifier of the bond network card is in a loaded state, indicating that the configuration file of the bond network card is loaded, and the target bare metal server configures the bond network card without loading the configuration file of the bond network card.
It should be noted that, after the bond network card configuration agent loads a bond network card configuration file and performs the bond network card configuration work of the target bare metal server according to the bond network card configuration file, the method further includes: constructing link aggregation group configuration information of the switch according to the link layer discovery protocol message; determining whether the constructed link aggregation group configuration information of the switch is matched with the bond network card configuration information of the target bare metal server; and if the constructed link aggregation group configuration information of the switch is not matched with the bond network card configuration information of the target bare metal server, modifying the bond network card configuration information according to the constructed link aggregation group configuration information of the switch. The link aggregation group configuration information of the switch constructed according to the LLDP message is link aggregation group information of the switch of the target bare metal server in an actual working state. And checking wrong bond network card information by determining whether the constructed link aggregation group configuration information of the switch is matched with the bond network card configuration information of the target bare metal server, so that the accuracy of bond network card configuration is ensured.
An embodiment of the present invention provides a network card configuration method, and fig. 6 is a schematic view illustrating an implementation flow of the network card configuration method provided in the embodiment of the present invention, as shown in fig. 6, the method mainly includes the following steps:
step 601, the cloud platform creates physical network card information of the bare metal server cluster according to the physical network card information of the bare metal server.
It should be noted that there are two ways to obtain the physical network card information of the bare metal server, one way, the user manually searches and records the model, MAC address, slot number, switch port information connected with the physical network card, and the like of each physical network card of all bare metal servers in the whole server cluster; in another mode, the network card information of the bare metal server is obtained by a mode that the bare metal server is provided with the network card information detection function, for example, the bare metal server starts an operating system carrying a function of detecting the physical network card information through a Preboot execution Environment (PXE) technology, and after the operating system runs, the physical network card information is automatically detected, wherein the physical network card information includes a model, an MAC address, a slot number of the physical network card and switch port information connected with the physical network card.
After the physical network card information of the bare metal server is obtained, reporting the physical network card information of the bare metal server to a cloud platform, and creating the physical network card information of a bare metal server cluster locally by the cloud platform according to the obtained physical network card information of the bare metal server, so that the physical network card information of all bare metal servers in the whole cluster is obtained.
Step 602, the cloud platform acquires bond network card configuration information.
It should be noted that the cloud platform may obtain the locally preset bond network card configuration information, and does not need to select or modify the bond network card configuration information by the user, for example, the cloud platform locally preset bond network card configuration information, the physical network cards of the pair of 1GE electrical ports are configured as a management network bond network card, the physical network cards of the pair of 10GE optical ports are configured as a service network bond network card, and the bond modes of the management network bond network card and the service network bond network card are all active-backup modes.
The method comprises the steps that after a cloud platform creates physical network card information of a metal server cluster according to the physical network card information of a bare metal server, the physical network card information can be displayed, a user inputs bond network card configuration information on an interface of the cloud platform according to the physical network card information, the bond network card configuration information comprises a physical network card list, a bond mode and a management strategy, the management strategy is a processing mode when the bond network card configuration information of the bare metal server is not matched with the link aggregation group configuration information of a switch, and the management strategy can be that when the bond network card configuration information of the bare metal server is not matched with the link aggregation group configuration information of the switch, the link aggregation group configuration information of the switch is updated to be matched with the bond network card configuration information of the bare metal server; or when the bond network card configuration information of the bare metal server is not matched with the link aggregation group configuration information of the switch, updating the bond network card configuration information of the bare metal server to match the link aggregation group configuration information of the switch; or when the bond network card configuration information of the bare metal server is not matched with the link aggregation configuration information of the switch, interrupting the bond network card configuration and reporting a configuration error. After the user selects the bond network card configuration information on the interface of the cloud platform, the cloud platform automatically acquires the bond network card configuration information selected by the user.
When the user does not select the bond network card configuration information, the cloud platform can also automatically acquire the bond network card configuration information according to a preset bond network card configuration strategy, wherein the bond network card configuration strategy can be that a physical network card in the same slot position is configured as a bond network card; the bond network card configuration strategy can also be that physical network cards with the same serial number in different slot positions are configured into a bond network card; the bond network card configuration strategy can also be that the physical network cards with the cross serial numbers of different slot positions are configured into one bond network card.
It should be noted that step 602 is a process of acquiring the bond network card configuration information by the cloud platform, and the following step 603-.
Step 603, the cloud platform acquires the target bare metal server according to a preset scheduling strategy.
It should be noted that the scheduler in the cloud platform selects a suitable target bare metal server from the cluster of bare metal servers according to a preset scheduling policy to configure the bond network card information. The scheduling policy may be scheduling according to a disk space of the bare metal server, or scheduling according to a size of a Central Processing Unit (CPU) of the bare metal server, or scheduling according to a bond network card configuration policy and a user requirement, and the like, and the scheduling policy is used to schedule a target bare metal server closest to the user requirement, where the target bare metal server is used to configure bond network card information.
Step 604, the cloud platform acquires the physical network card information of the target bare metal server according to the target bare metal server identifier.
It should be noted that, because the cloud platform creates the physical network card information of the bare metal server cluster locally according to the obtained physical network card information of the bare metal server, that is, the cloud platform stores the corresponding relationship between the bare metal server identifier and the physical network card information of the bare metal server, after the cloud platform obtains the target bare metal server, the cloud platform can obtain the physical network card information of the target bare metal server in the created physical network card information of the bare metal server cluster according to the target bare metal server identifier and the corresponding relationship between the bare metal server identifier and the physical network card information of the bare metal server, and the physical network card information of the target bare metal server includes the switch port information connected to the physical network card.
Step 605, the cloud platform acquires the link aggregation group configuration information of the switch according to the physical network card information of the target bare metal server.
It should be noted that the link aggregation group configuration information of the switch has two forms, one form is that the switch does not support or provide an interface for dynamically adjusting the link aggregation group configuration information, that is, the link aggregation group configuration information of the switch cannot be modified, and the link aggregation group information pre-configured on the switch determines the bond network card configuration of the target bare metal server; in another form, the switch supports or provides an interface for dynamically adjusting the configuration information of the link aggregation group, that is, the configuration information of the link aggregation group of the switch can be modified, and when the bond network card configuration information input by the user is consistent with the configuration information of the link aggregation group of the current switch, the configuration information of the link aggregation group of the switch does not need to be modified; when the bond network card configuration information input by the user is inconsistent with the link aggregation group configuration information of the current switch, the link aggregation group configuration information of the switch can be modified.
The method includes the steps that link aggregation group configuration information of a switch is preset on a cloud platform, and after the cloud platform obtains physical network card information of a target bare metal server, the link aggregation group configuration information of the switch can be obtained according to switch port information connected with the physical network card in the physical network card information.
Step 606, the cloud platform determines whether the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, and if the link aggregation group configuration information of the target bare metal server is not matched with the bond network card configuration information, the step 607 is switched; if the link aggregation group configuration information of the target bare metal server matches with the bond network card configuration information, go to step 608.
It should be noted that, after the cloud platform acquires the link aggregation group configuration information of the target bare metal server, the cloud platform analyzes the link aggregation group configuration information through a network protocol, acquires the physical network card information connected with the physical link in the link aggregation group configuration information, matches the physical network card information with the physical network card information in the bond network card configuration information, determines whether the link aggregation group configuration information of the target bare metal server matches the bond network card configuration information, and if the link aggregation group configuration information of the target bare metal server does not match the bond network card configuration information, proceeds to step 607; when the link aggregation group configuration information of the target bare metal server matches with the bond network card configuration information, step 608 is performed. The link aggregation group configuration information representing the target bare metal server is matched with the bond network card configuration information in two modes, wherein one mode is that part of physical network card information connected with a physical link in the link aggregation group configuration information is matched with the physical network card information in the bond network card configuration information, namely part of link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information; in another mode, all physical network card information connected with the physical link in the link aggregation group configuration information is matched with the physical network card information in the bond network card configuration information, that is, all link aggregation group configuration information of the target bare metal server is completely matched with the bond network card configuration information.
Step 607, the cloud platform generates a prompt message, where the prompt message is used to prompt that the bond network card configuration information is not matched with the link aggregation configuration information, and the current process is ended.
It should be noted that when the link aggregation group configuration information of the target bare metal server is not matched with the bond network card configuration information, a prompt message is generated, where the prompt message may prompt the user that the bond network card configuration information is not matched with the link aggregation group configuration information, and the user may modify the bond network card configuration information.
Step 608, the cloud platform generates a bond network card configuration file according to the bond network card configuration information, wherein the bond network card configuration file is used for indicating a bond network card configuration agent (agent) to perform bond network card configuration work, and the step 609 is switched to.
It should be noted that the bond network card configuration file includes information such as a MAC address and a bond mode of a physical network card configuring the bond network card.
And when the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, indicating that the bond network card configuration information is correct, and generating a bond network card configuration file from the bond network card configuration information so as to perform subsequent bond network card configuration work.
Step 609, the cloud platform sends a bond network card configuration file to the target bare metal server.
It should be noted that, after generating the bond network card configuration file, the cloud platform sends the bond network card configuration file to the target bare metal server according to the target bare metal server identifier.
In addition, the cloud platform can integrate the bond network card configuration file into a system image of the operating system, and the bond network card configuration agent can read the bond network card configuration file in the system image.
And step 610, loading a bond network card configuration agent by the target bare metal server, wherein the bond network card configuration agent is used for configuring a bond network card.
It should be noted that the bond network card configuration agent in the system image of the operating system is loaded, but the bond network card configuration agent is not configured in the process of deploying the operating system by the target bare metal server, and the bond network card configuration agent is integrated in the system image of the operating system.
611, determining whether a bond network card configuration file needs to be loaded according to the bond network card configuration identifier, and if the bond network card configuration file needs to be loaded, turning to 612; if it is determined that the bond network card configuration file does not need to be loaded, step 613 is performed.
It should be noted that the bond network card configuration identifier includes a loaded state and an unloaded state, and the bond network card configuration identifier is used to indicate whether a bond network card configuration file has been loaded. When the bond network card configuration identifier is in an unloaded state, indicating that the bond network card configuration file is not loaded, the target bare metal server does not configure the bond network card, and the bond network card configuration file needs to be loaded, then turning to step 612; when the bond network card configuration identifier is in the loaded state, it indicates that the bond network card configuration file has been loaded, the target bare metal server has configured the bond network card, and the bond network card configuration file does not need to be loaded, then step 613 is performed.
Step 612, the bond network card configuration agent loads the bond network card configuration file for the first time, and the step is shifted to step 613.
It should be noted that the bond network card configuration agent determines that the bond network card configuration file needs to be loaded according to the bond network card configuration identifier, loads the bond network card configuration file for the first time, configures the bond network card configuration information according to the bond network card configuration file, the bond network card is in a working state, completes the first loading of the bond network card configuration file, and updates the bond network card configuration identifier to a loaded state so as to prevent the bond network card configuration agent from repeatedly loading the bond network card configuration file.
Step 613, the bond network card configuration agent constructs Link aggregation group configuration information of the switch according to a Link Layer Discovery Protocol (LLDP) message, and the process goes to step 614.
It should be noted that the bond network card configuration agent may call an lldptool command to receive or send an LLDP packet, and may also call a packet capture command to obtain an LLDP packet sent by a switch connected to the physical network card of the target bare metal server, where the LLDP packet includes a Link Aggregation TLV, a sessions ID TLV, and a Port ID TLV, where the Link Aggregation TLV carries an Aggregated Port address (Aggregated Port ID) and an Aggregation state (Aggregated state), the bond network card configuration agent analyzes the LLDP packet, and constructs Link Aggregation group configuration information of the switch according to the Link Aggregation TLV, the sessions ID TLV, and the Port ID, and the LLDP packet is used to construct Link Aggregation group configuration information of the switch.
Step 614, the bond network card configuration agent determines whether the constructed link aggregation group configuration information of the switch is matched with the bond network card configuration information of the target bare metal server, and if the constructed link aggregation group configuration information of the switch is matched with the bond network card configuration information of the target bare metal server, the current flow is ended; if the constructed link aggregation group configuration information of the switch does not match with the bond network card configuration information of the target bare metal server, step 615 is performed.
It should be noted that the link aggregation group configuration information of the switch constructed according to the LLDP message is the link aggregation group information of the switch in the actual working state of the target bare metal server. And checking configuration by determining whether the constructed link aggregation group configuration information of the switch is matched with the bond network card configuration information of the target bare metal server, determining whether a bond network card configuration file sent by the cloud platform is correct, checking wrong bond network card information, and ensuring the accuracy of the bond network card configuration.
And step 615, modifying the bond network card configuration information of the target bare metal server by the bond network card configuration agent.
It should be noted that, when it is determined that the configuration information of the link aggregation group of the constructed switch is inconsistent with the bond network card of the target bare metal server, the bond network card configuration agent modifies the configuration information of the bond network card according to the configuration information of the link aggregation group of the constructed switch, for example, information such as a physical network card list, a bond mode, and the like.
In addition, when it is determined that the configuration information of the constructed link aggregation group of the switch is inconsistent with the bond network card of the target bare metal server and the bond network card configuration agent does not modify the bond network card configuration of the target bare metal server, the bond network card configuration agent can report a configuration error instruction to the cloud platform, wherein the configuration error instruction is used for indicating a user that the bond network card configuration is wrong.
Based on the same inventive concept of the foregoing embodiments, an embodiment of the present invention provides a network card configuration device, and fig. 7 is a schematic structural diagram of a network card configuration device 700 provided in an embodiment of the present invention, as shown in fig. 7, the device 700 includes:
a first obtaining unit 701, configured to obtain configuration information of the binding bond network card;
a second obtaining unit 702, configured to obtain link aggregation group configuration information of a target bare metal server;
a determining unit 703, configured to determine whether the link aggregation group configuration information of the target bare metal server matches the bond network card configuration information; if the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, generating a bond network card configuration file according to the bond network card configuration information, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work;
a sending unit 704, configured to send a bond network card configuration file to the target bare metal server.
It should be noted that the second obtaining unit 702 is specifically configured to obtain a target bare metal server according to a set scheduling policy; acquiring physical network card information of the target bare metal server according to the target bare metal server identification and the corresponding relation between the bare metal server identification and the physical network card information of the bare metal server; and acquiring the link aggregation group configuration information of the switch of the target bare metal server according to the physical network card information of the target bare metal server.
It should be noted that the determining unit 703 is further configured to generate a prompt message if the link aggregation group configuration information of the target bare metal server is not matched with the bond network card configuration information, where the prompt message is used to prompt that the bond network card configuration information is not matched with the link aggregation group configuration information and the bond network card configuration information needs to be modified.
Based on the same inventive concept of the foregoing embodiments, an embodiment of the present invention provides a network card configuration device, and fig. 8 is a schematic structural diagram of a network card configuration device 800 according to an embodiment of the present invention, and as shown in fig. 8, the device 800 includes:
an obtaining unit 801, configured to obtain a bond network card configuration file, where the bond network card configuration file is used to instruct a bond network card configuration agent to perform a bond network card configuration operation;
a loading unit 802, configured to load the bond network card configuration agent;
the first processing unit 803 is configured to load a bond network card configuration file, and configure the bond network card configuration information of the target bare metal server according to the bond network card configuration file.
It should be noted that the obtaining unit 801 is a logic module located in the target bare metal server.
It should be noted that the first processing unit 803 is specifically configured to determine whether a bond network card configuration file needs to be loaded according to a bond network card configuration identifier; and if the bond network card configuration file is determined to be loaded according to the bond network card configuration identifier, loading the bond network card configuration file by the bond network card configuration agent, and configuring the bond network card configuration information of the target bare metal server according to the bond network card configuration file.
It should be noted that the network card configuration device 800 further includes:
the second processing unit 804 is configured to construct link aggregation group configuration information of the switch according to the link layer discovery protocol packet; determining whether the constructed link aggregation group configuration information of the switch is matched with the bond network card configuration information of the target bare metal server; and if the constructed link aggregation group configuration information of the switch is not matched with the bond network card configuration information of the target bare metal server, modifying the bond network card configuration information according to the constructed link aggregation group configuration information of the switch.
The components in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the embodiments of the present invention essentially or a part of the technical solution contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Accordingly, embodiments of the present invention provide a computer storage medium storing a computer program that, when executed by at least one processor, performs the steps of the above-described embodiments.
Referring to fig. 9, a specific hardware structure of a network card configuration device 900 according to an embodiment of the present invention is shown, including: a network interface 901, memory 902, and processor 903; the various components are coupled together by a bus system 904. It is understood that the bus system 904 is used to enable communications among the components. The bus system 904 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled as bus system 904 in figure 9. The network interface 901 is configured to receive and transmit signals in a process of receiving and transmitting information with other external network elements;
a memory 902 for storing a computer program operable on the processor 903;
a processor 903 for executing, when running the computer program, the following:
mounting the Virtual media to a mounting point of a deployment server, wherein the mounting point is used for guiding a deployment mirror image;
sending a starting instruction to a target server, wherein the starting instruction is used for guiding the target server to load the deployment mirror image into the deployment server and starting an agent in the deployment mirror image;
mounting an operating system mirror image needing to be installed on the target server;
and performing installation operation of the operating system image according to the type of the operating system image needing to be installed.
The processor 903 is further configured to execute, when running the computer program, the following:
acquiring configuration information of the binding bond network card;
acquiring link aggregation group configuration information of a target bare metal server;
determining whether the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information;
if the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, generating a bond network card configuration file according to the bond network card configuration information, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work;
and sending a bond network card configuration file to the target bare metal server.
Referring to fig. 10, a specific hardware structure of a network card configuration device 1000 according to an embodiment of the present invention is shown, including: a network interface 1001, a memory 1002, and a processor 1003; the various components are coupled together by a bus system 1004. It is understood that the bus system 1004 is used to enable communications among the components. The bus system 1004 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for the sake of clarity the various busses are labeled in fig. 10 as the bus system 1004. Wherein,
the network interface 1001 is configured to receive and transmit signals during information transmission and reception with other external network elements;
a memory 1002 for storing a computer program capable of running on the processor 1003;
a processor 1003 configured to, when running the computer program, perform:
acquiring a bound bond network card configuration file, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work;
loading a bond network card configuration agent;
and loading the bond network card configuration file, and configuring the bond network card configuration information of the target bare metal server according to the bond network card configuration file.
It will be appreciated that the memory in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Sync Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory of the methodologies described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. The above-described terminal embodiments are only illustrative, for example, the division of the unit is only a logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. The above-described terminal embodiments are only illustrative, for example, the division of the unit is only a logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.

Claims (11)

1. A network card configuration method is characterized by comprising the following steps:
acquiring configuration information of the binding bond network card;
acquiring link aggregation group configuration information of a target bare metal server;
determining whether the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information;
if the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, generating a bond network card configuration file according to the bond network card configuration information, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work;
and sending a bond network card configuration file to the target bare metal server.
2. The method of claim 1, wherein the obtaining link aggregation group configuration information of the target bare metal server comprises:
acquiring a target bare metal server according to a set scheduling strategy;
acquiring physical network card information of the target bare metal server according to the target bare metal server identification and the corresponding relation between the bare metal server identification and the physical network card information of the bare metal server;
and acquiring the link aggregation group configuration information of the switch of the target bare metal server according to the physical network card information of the target bare metal server.
3. The method of claim 1, wherein after determining whether the link aggregation group configuration information of the target bare metal server matches the bond network card configuration information, further comprising:
and if the link aggregation group configuration information of the target bare metal server is not matched with the bond network card configuration information, generating prompt information, wherein the prompt information is used for prompting that the bond network card configuration information is not matched with the link aggregation group configuration information and the bond network card configuration information needs to be modified.
4. A network card configuration method is characterized by comprising the following steps:
the target bare metal server acquires a bound bond network card configuration file, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work;
loading a bond network card configuration agent;
and loading the bond network card configuration file by the bond network card configuration agent, and configuring the bond network card configuration information of the target bare metal server according to the bond network card configuration file.
5. The method of claim 4, wherein the loading of the bond network card configuration agent into the bond network card configuration file, and the configuring of the bond network card configuration information of the target bare metal server according to the bond network card configuration file, comprises:
the bond network card configuration agent determines whether a bond network card configuration file needs to be loaded according to the bond network card configuration identifier;
and if the bond network card configuration file is determined to be loaded according to the bond network card configuration identifier, loading the bond network card configuration file by the bond network card configuration agent, and configuring the bond network card configuration information of the target bare metal server according to the bond network card configuration file.
6. The method of claim 4, wherein the bond network card configuration agent loads a bond network card configuration file, and further comprises, after performing the bond network card configuration work of the target bare metal server according to the bond network card configuration file:
constructing link aggregation group configuration information of the switch according to the link layer discovery protocol message;
determining whether the constructed link aggregation group configuration information of the switch is matched with the bond network card configuration information of the target bare metal server;
and if the constructed link aggregation group configuration information of the switch is not matched with the bond network card configuration information of the target bare metal server, modifying the bond network card configuration information according to the constructed link aggregation group configuration information of the switch.
7. A network card configuration device, the device comprising:
the first acquisition unit is used for acquiring the configuration information of the binding bond network card;
the second acquisition unit is used for acquiring the link aggregation group configuration information of the target bare metal server;
a determining unit, configured to determine whether the link aggregation group configuration information of the target bare metal server matches the bond network card configuration information;
if the link aggregation group configuration information of the target bare metal server is matched with the bond network card configuration information, generating a bond network card configuration file according to the bond network card configuration information, wherein the bond network card configuration file is used for indicating a bond network card configuration agent to carry out bond network card configuration work;
and the sending unit is used for sending the bond network card configuration file to the target bare metal server.
8. A network card configuration device, the device comprising:
the device comprises an acquisition unit, a binding unit and a management unit, wherein the acquisition unit is used for acquiring a binding network card configuration file which is used for indicating a binding network card configuration agent to carry out binding network card configuration work;
the loading unit is used for loading the bond network card configuration agent;
and the first processing unit is used for loading the bond network card configuration file and configuring the bond network card configuration information of the target bare metal server according to the bond network card configuration file.
9. A network card configuration device is characterized in that the device comprises a network interface, a memory and a processor; wherein,
the network interface is configured to realize connection communication between the components;
the memory configured to store a computer program operable on the processor;
the processor, when executing the computer program, is configured to perform the method of any of claims 1 to 3.
10. A network card configuration device is characterized in that the device comprises a network interface, a memory and a processor; wherein,
the network interface is configured to realize connection communication between the components;
the memory configured to store a computer program operable on the processor;
the processor, when executing the computer program, is configured to perform the method of any of claims 4 to 6.
11. A computer storage medium, characterized in that the computer storage medium stores a computer program which, when executed by at least one processor, implements the method according to any one of claims 1 to 6.
CN201910839246.0A 2019-09-05 2019-09-05 Network card configuration method and device and computer storage medium Active CN112448839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910839246.0A CN112448839B (en) 2019-09-05 2019-09-05 Network card configuration method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910839246.0A CN112448839B (en) 2019-09-05 2019-09-05 Network card configuration method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN112448839A true CN112448839A (en) 2021-03-05
CN112448839B CN112448839B (en) 2022-06-03

Family

ID=74733078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910839246.0A Active CN112448839B (en) 2019-09-05 2019-09-05 Network card configuration method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN112448839B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941465A (en) * 2022-12-02 2023-04-07 京东科技信息技术有限公司 Network card configuration method and device, electronic equipment and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547233A (en) * 2018-10-10 2019-03-29 华为技术有限公司 A kind of method, apparatus and server of the configuration of server network interface

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547233A (en) * 2018-10-10 2019-03-29 华为技术有限公司 A kind of method, apparatus and server of the configuration of server network interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941465A (en) * 2022-12-02 2023-04-07 京东科技信息技术有限公司 Network card configuration method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112448839B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
EP3605323B1 (en) Method for generating network slice template and for applying network slice template, and apparatus
US11258667B2 (en) Network management method and related device
US9720678B2 (en) Network switching method, version upgrade method, and terminal device
CN114422618B (en) Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium
US12041688B2 (en) Screen projection method and system
CN111490947A (en) Data packet transmitting method, data packet receiving method, system, device and medium
CN110691375B (en) Selection method, selection device and computer storage medium
CN112448839B (en) Network card configuration method and device and computer storage medium
CN112511366A (en) Test system, method, device, equipment and storage medium
US20240147578A1 (en) Wireless communication service over an edge data network (edn) between a user equipment (ue) and an application server (as)
CN107659516B (en) Function control method and device for broadband remote access server BRAS
CN112055347A (en) Multi-gateway cooperative work method and system
US20230126360A1 (en) Wifi network access method, communication method, peripheral apparatus, and storage medium
CN111600833A (en) Network operating system and message forwarding method
JP7145170B2 (en) BASE STATION FUNCTION DEPLOYMENT METHOD AND APPARATUS
CN117676550A (en) Reporting and processing method of terminal capability, terminal equipment, network equipment and medium
JP2021510020A (en) Wireless communication method and equipment
CN113568669A (en) Service board card starting method based on orthogonal architecture, service board card and orthogonal equipment
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN113783971A (en) Address management method, network device, and storage medium
CN117857330A (en) Peer relationship establishment method, device, equipment and storage medium
CN115562466B (en) Unmanned aerial vehicle hardware reset control method and device and electronic equipment
JP2021523594A (en) Information processing method, network equipment, terminal equipment
CN113824795B (en) Communication method, device and system of vehicle end and cloud end
CN112732348B (en) Service processing method and device of multi-node integrated machine

Legal Events

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