CN109347656B - Method and system for configuring virtual host uplink network card - Google Patents

Method and system for configuring virtual host uplink network card Download PDF

Info

Publication number
CN109347656B
CN109347656B CN201811057477.8A CN201811057477A CN109347656B CN 109347656 B CN109347656 B CN 109347656B CN 201811057477 A CN201811057477 A CN 201811057477A CN 109347656 B CN109347656 B CN 109347656B
Authority
CN
China
Prior art keywords
network card
virtual host
host
virtual
card configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811057477.8A
Other languages
Chinese (zh)
Other versions
CN109347656A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811057477.8A priority Critical patent/CN109347656B/en
Publication of CN109347656A publication Critical patent/CN109347656A/en
Application granted granted Critical
Publication of CN109347656B publication Critical patent/CN109347656B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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

Landscapes

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

Abstract

The invention provides a method and a system for configuring an uplink network card of a virtual host, wherein the method comprises the following steps: when the virtualization management system configures an uplink, establishing an association relation among a virtual host IP, a network card and a binding mode; storing a host IP (Internet protocol), a network card name and binding mode information of the virtual host to be configured to a Post instruction; sending a Post instruction to a virtual host to be configured; and the virtual host to be configured receives the Post instruction and executes network card configuration. The invention solves the problems of low configuration efficiency and waste of space resources of the virtualization management system caused by that only one host can be selected by one network card each time to execute network card configuration in the uplink configuration process of the virtualization management system at the present stage, and has good technical value and wide application prospect.

Description

Method and system for configuring virtual host uplink network card
Technical Field
The invention relates to the technical field of network card configuration, in particular to a method and a system for configuring an uplink network card of a virtual host.
Background
In the process of configuring the uplink by the virtualization management system, tens of virtual hosts and even hundreds of virtual hosts are generally required to be configured with the uplink, in the process of configuring the uplink network card of the virtual hosts at the present stage, only one host can be selected by one network card at a time, and the efficiency of performing uplink network card configuration by one-to-one selection is extremely low, so that the space resources of the virtualization management system are greatly wasted, and meanwhile, the waste of manpower resources is caused. In order to solve the above problems, the present invention provides a method and a system for configuring an uplink network card of a virtual host.
Disclosure of Invention
The present invention provides a method and a system for configuring an uplink network card of a virtual host, so as to solve the above technical problems.
In a first aspect, the present invention provides a method for configuring an uplink network card of a virtual host, including:
when the virtualization management system configures an uplink, establishing an association relation among a virtual host IP, a network card and a binding mode;
storing a host IP (Internet protocol), a network card name and binding mode information of the virtual host to be configured to a Post instruction;
sending a Post instruction to a virtual host to be configured;
and the virtual host to be configured receives the Post instruction and executes network card configuration.
Further, the virtual host to be configured is a virtual host with the same network card name when the network card is configured.
Further, before sending the Post instruction to the virtual host to be configured, the method further includes: the virtualization management system establishes a communication channel with a virtual host to be configured.
Further, the virtualization management system establishes a communication channel with the virtual host to be configured through the OVS bridge.
Further, the receiving, by the virtual host to be configured, the Post instruction and executing the network card configuration include:
receiving a Post instruction;
reading network card configuration information in the Post instruction;
converting the network card configuration information into virtual host network card configuration information to be configured, which is matched with a system of the virtual host to be configured;
and executing network card configuration according to the network card configuration information of the virtual host to be configured.
In a second aspect, the present invention provides a system for configuring an uplink network card of a virtual host, including: a virtualization management system and a virtual host to be configured;
the virtualization management system includes:
a first processing module: the method comprises the steps of establishing an association relation among a virtual host IP, a network card and a binding mode when an uplink is configured;
storing a host IP (Internet protocol), a network card name and binding mode information of the virtual host to be configured to a Post instruction;
sending a Post instruction to a virtual host to be configured;
the virtual host to be configured comprises:
a second processing module: and the system is used for receiving a Post instruction sent by the virtualization management system and executing network card configuration.
Further, the virtual host to be configured is a virtual host with the same network card name when the network card is configured.
Further, the first processing module is further configured to: and establishing a communication channel with the virtual host to be configured.
Further, the first processing module is further configured to: and establishing a communication channel between the OVS bridge and the virtual host to be configured.
Further, the second processing module is specifically configured to:
receiving a Post instruction;
reading network card configuration information in the Post instruction;
converting the network card configuration information into virtual host network card configuration information to be configured, which is matched with a system of the virtual host to be configured;
and executing network card configuration according to the network card configuration information of the virtual host to be configured.
The method for configuring the virtual host uplink network card provided by the invention achieves the purpose of executing network card configuration by a plurality of virtual hosts to be configured in a mode of establishing the incidence relation among the IP (Internet protocol) of the virtual host, the network card and the binding mode and transmitting through the Post instruction, and solves the problems of low configuration efficiency and waste of space resources of a virtualization management system caused by that one network card can only select one host to execute the network card configuration each time in the process of configuring the uplink of the virtualization management system at the present stage. The invention improves the configuration efficiency, and meanwhile, when the configuration information needs to be modified or the uplink needs to be modified, only the association relation needs to be redefined and the Post information needs to be modified, so that the correction and the modification can be carried out, and the working efficiency is greatly improved.
The beneficial effects of the system for configuring the virtual host uplink network card provided by the invention are as described above, and are not repeated.
Drawings
For a clearer explanation of the embodiments of the present invention, the drawings needed in the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for configuring an uplink network card of a virtual host according to an embodiment of the present invention.
Fig. 2 is a system schematic diagram of virtual host uplink network card configuration disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
In order that those skilled in the art will better understand the technical solution of the present invention, the following detailed description of the present invention is provided in conjunction with the accompanying drawings and the detailed description.
Example 1
The present embodiment provides a method for configuring an uplink network card of a virtual host, as shown in fig. 1, including:
when the virtualization management system configures an uplink, establishing an association relation among a virtual host IP, a network card and a binding mode;
storing a host IP (Internet protocol), a network card name and binding mode information of the virtual host to be configured to a Post instruction;
sending a Post instruction to a virtual host to be configured;
and the virtual host to be configured receives the Post instruction and executes network card configuration.
In this embodiment, the virtual host to be configured is a virtual host with the same name of the network card when the network card is configured.
The embodiment further provides a system for configuring an uplink network card of a virtual host, as shown in fig. 2, including: a virtualization management system and a virtual host to be configured;
the virtualization management system includes:
a first processing module: the method comprises the steps of establishing an association relation among a virtual host IP, a network card and a binding mode when an uplink is configured;
storing a host IP (Internet protocol), a network card name and binding mode information of the virtual host to be configured to a Post instruction;
sending a Post instruction to a virtual host to be configured;
the virtual host to be configured includes:
a second processing module: and the system is used for receiving a Post instruction sent by the virtualization management system and executing network card configuration.
In this embodiment, the virtual host to be configured is a virtual host with the same network card name when the network card is configured.
Example 2
The embodiment provides a method for configuring an uplink network card of a virtual host, which includes:
SS1, when the virtualization management system configures the uplink, the incidence relation of the virtual host machine IP, the network card and the binding mode is established;
the SS2 stores the host IP, the network card name and the binding mode information of the virtual host to be configured to a Post instruction;
SS3, establishing a communication channel with the virtual host to be configured;
SS4, sending a Post instruction to the virtual host to be configured;
and the SS5 receives the Post command and executes the network card configuration by the virtual host to be configured.
In this embodiment, in step SS3, the virtualization management system establishes a communication channel with the virtual host to be configured through the OVS bridge, and in addition, the virtualization management system may also establish a communication channel with the virtual host to be configured through serial structure connection of the management plane.
In this embodiment, step SS5 specifically includes:
receiving a Post instruction;
reading network card configuration information in the Post instruction, namely host IP, network card name and binding mode information;
converting the network card configuration information into virtual host network card configuration information to be configured, which is matched with a system of the virtual host to be configured;
and executing network card configuration according to the network card configuration information of the virtual host to be configured.
The present embodiment further provides a system for configuring an uplink network card of a virtual host, including: a virtualization management system and a virtual host to be configured;
the virtualization management system includes:
a first processing module: the method comprises the steps of establishing an association relation among a virtual host IP, a network card and a binding mode when an uplink is configured;
storing a host IP (Internet protocol), a network card name and binding mode information of the virtual host to be configured to a Post instruction;
sending a Post instruction to a virtual host to be configured;
the virtual host to be configured includes:
a second processing module: and the system is used for receiving a Post instruction sent by the virtualization management system and executing network card configuration.
In this embodiment, the virtual host to be configured is a virtual host with the same name of the network card when the network card is configured.
In this embodiment, the first processing module is further configured to: the method comprises the steps of establishing a communication channel with a virtual host to be configured, specifically, establishing the communication channel with the virtual host to be configured through an OVS bridge by a first processing module, and establishing the communication channel with the virtual host to be configured through serial structure connection of a management surface by the first processing module.
In this embodiment, the second processing module is specifically configured to:
receiving a Post instruction;
reading network card configuration information in the Post instruction, namely host IP, network card name and binding mode information;
converting the network card configuration information into virtual host network card configuration information to be configured, which is matched with a system of the virtual host to be configured;
and executing network card configuration according to the network card configuration information of the virtual host to be configured.
According to the method and the system for configuring the virtual host uplink network card, the purpose that a plurality of virtual hosts to be configured execute network card configuration is achieved by establishing the association relation among the IP (Internet protocol) of the virtual hosts, the network card and the binding mode and through the Post instruction transmission mode, and the problems that in the process of configuring the uplink of a virtualization management system at the present stage, only one host can be selected by one network card each time to execute the network card configuration, the configuration efficiency is low, and the space resources of the virtualization management system are wasted are solved. The invention improves the configuration efficiency, and meanwhile, when the configuration information needs to be modified or the uplink needs to be modified, only the association relation needs to be redefined and the Post information needs to be modified, so that the correction and the modification can be carried out, and the working efficiency is greatly improved.
The method and system for configuring the virtual host uplink network card disclosed by the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, since the system corresponds to the method disclosed by the embodiment, the description is simple, and reference may be made to the description of the method. The above description is only of the preferred embodiments of the present invention, and it should be noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.

Claims (6)

1. A method for configuring a virtual host uplink network card, comprising:
when the virtualization management system configures an uplink, establishing an association relation among a virtual host IP, a network card and a binding mode;
storing a host IP (Internet protocol), a network card name and binding mode information of the virtual host to be configured to a Post instruction;
sending a Post instruction to a virtual host to be configured;
the virtual host to be configured receives the Post instruction and executes network card configuration;
the virtual host to be configured receives the Post instruction and executes network card configuration, including:
receiving a Post instruction;
reading network card configuration information in the Post instruction;
converting the network card configuration information into virtual host network card configuration information to be configured, which is matched with a system of the virtual host to be configured;
executing network card configuration according to the virtual host network card configuration information to be configured;
and the virtual host to be configured is the virtual host with the same network card name when the network card is configured.
2. The method according to claim 1, wherein before sending the Post command to the virtual host to be configured, the method further comprises:
the virtualization management system establishes a communication channel with a virtual host to be configured.
3. The method for virtual host uplink network card configuration according to claim 2, wherein the virtualization management system establishes a communication channel with the virtual host to be configured through the OVS bridge.
4. A system for virtual host uplink network card configuration, comprising: a virtualization management system and a virtual host to be configured;
the virtualization management system includes:
a first processing module: the method comprises the steps of establishing an association relation among a virtual host IP, a network card and a binding mode when an uplink is configured; storing a host IP (Internet protocol), a network card name and binding mode information of the virtual host to be configured to a Post instruction; sending a Post instruction to a virtual host to be configured;
the virtual host to be configured comprises:
a second processing module: the system comprises a virtual management system and a network card configuration module, wherein the virtual management system is used for receiving a Post instruction sent by the virtual management system and executing the network card configuration; the method is specifically used for: receiving a Post instruction; reading network card configuration information in the Post instruction; converting the network card configuration information into virtual host network card configuration information to be configured, which is matched with a system of the virtual host to be configured; executing network card configuration according to the virtual host network card configuration information to be configured;
and the virtual host to be configured is the virtual host with the same network card name when the network card is configured.
5. The system for virtual host uplink network card configuration according to claim 4, wherein the first processing module is further configured to:
and establishing a communication channel with the virtual host to be configured.
6. The system for virtual host uplink network card configuration according to claim 5, wherein the first processing module is further configured to:
and establishing a communication channel between the OVS bridge and the virtual host to be configured.
CN201811057477.8A 2018-09-11 2018-09-11 Method and system for configuring virtual host uplink network card Active CN109347656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811057477.8A CN109347656B (en) 2018-09-11 2018-09-11 Method and system for configuring virtual host uplink network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811057477.8A CN109347656B (en) 2018-09-11 2018-09-11 Method and system for configuring virtual host uplink network card

Publications (2)

Publication Number Publication Date
CN109347656A CN109347656A (en) 2019-02-15
CN109347656B true CN109347656B (en) 2022-02-18

Family

ID=65304884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811057477.8A Active CN109347656B (en) 2018-09-11 2018-09-11 Method and system for configuring virtual host uplink network card

Country Status (1)

Country Link
CN (1) CN109347656B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835775B (en) * 2021-01-29 2024-03-01 许继集团有限公司 Simulation network communication method and device and relay protection device simulation test system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488918A (en) * 2009-01-09 2009-07-22 杭州华三通信技术有限公司 Multi-network card server access method and system
CN102427483A (en) * 2011-11-15 2012-04-25 浪潮电子信息产业股份有限公司 Method for binding network card name with equipment under Linux system
CN103795603A (en) * 2012-11-01 2014-05-14 杭州华三通信技术有限公司 Edge virtual bridging method and device based on multiple network interface cards
CN105472058A (en) * 2015-12-09 2016-04-06 国云科技股份有限公司 Method for setting IP address for virtual machine
CN106375131A (en) * 2016-10-20 2017-02-01 浪潮电子信息产业股份有限公司 Virtual network uplink load balancing method
CN106911779A (en) * 2017-02-27 2017-06-30 郑州云海信息技术有限公司 A kind of cloud platform virtual machine obtains IP method and devices
CN107317710A (en) * 2017-06-30 2017-11-03 郑州云海信息技术有限公司 A kind of method and apparatus for carrying out QoS configurations to Microsoft Loopback Adapter based on SDN
CN107707687A (en) * 2017-10-10 2018-02-16 郑州云海信息技术有限公司 A kind of method and apparatus of virtual machine IP address configuration

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488918A (en) * 2009-01-09 2009-07-22 杭州华三通信技术有限公司 Multi-network card server access method and system
CN102427483A (en) * 2011-11-15 2012-04-25 浪潮电子信息产业股份有限公司 Method for binding network card name with equipment under Linux system
CN103795603A (en) * 2012-11-01 2014-05-14 杭州华三通信技术有限公司 Edge virtual bridging method and device based on multiple network interface cards
CN105472058A (en) * 2015-12-09 2016-04-06 国云科技股份有限公司 Method for setting IP address for virtual machine
CN106375131A (en) * 2016-10-20 2017-02-01 浪潮电子信息产业股份有限公司 Virtual network uplink load balancing method
CN106911779A (en) * 2017-02-27 2017-06-30 郑州云海信息技术有限公司 A kind of cloud platform virtual machine obtains IP method and devices
CN107317710A (en) * 2017-06-30 2017-11-03 郑州云海信息技术有限公司 A kind of method and apparatus for carrying out QoS configurations to Microsoft Loopback Adapter based on SDN
CN107707687A (en) * 2017-10-10 2018-02-16 郑州云海信息技术有限公司 A kind of method and apparatus of virtual machine IP address configuration

Also Published As

Publication number Publication date
CN109347656A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN107431651B (en) Life cycle management method and equipment for network service
EP3373518B1 (en) Service configuration method and device for network service
WO2017162011A1 (en) Network element performance data processing method and device, and nms
CN109039788B (en) Port configuration method and device of network equipment and storage medium
CN101499002A (en) Method, system and apparatus for generating interface document
CN106708748B (en) Method and system for improving mounting performance of OpenStack block storage volume
CN109413210A (en) Target drives upgrade method, device, equipment and the medium of distributed cluster system
CN113596832A (en) Network connection establishing method and device, storage medium and electronic device
CN109347656B (en) Method and system for configuring virtual host uplink network card
CN105025254A (en) Multi-platform monitoring terminal system development method
CN105162667A (en) Method and device for configuration of virtual machine
CN106254040B (en) Command response processing method and device
CN105786732A (en) Data access method and apparatus
CN110730112A (en) Method, system, equipment and storage medium for testing network running speed
CN103560918A (en) Method and system for managing CPE port
CN101707622A (en) Method for realizing remote data monitoring
CN109634908A (en) Data correlation method, data processing equipment and storage medium
CN110912725A (en) Configuration method and configuration device of OpenFlow virtual switch
EP2387287A1 (en) Wireless data card, method and system for communicationg between wireless data card and computer side
CN111200519B (en) Data processing method and device, BBU, access network equipment and storage medium
CN107608887A (en) A kind of method for creating virtual opetrating system test server
CN103873450A (en) Network access method and system
CN105912371A (en) Method for automatically deploying operation systems on basis of CS mode
CN113282374B (en) Server control method, device and system
CN109324820B (en) Host updating method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant