CN109445910B - Virtual machine VLAN management method, device, terminal and storage medium - Google Patents

Virtual machine VLAN management method, device, terminal and storage medium Download PDF

Info

Publication number
CN109445910B
CN109445910B CN201811298831.6A CN201811298831A CN109445910B CN 109445910 B CN109445910 B CN 109445910B CN 201811298831 A CN201811298831 A CN 201811298831A CN 109445910 B CN109445910 B CN 109445910B
Authority
CN
China
Prior art keywords
virtual machine
management system
routing table
vlan
machine management
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
CN201811298831.6A
Other languages
Chinese (zh)
Other versions
CN109445910A (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 CN201811298831.6A priority Critical patent/CN109445910B/en
Publication of CN109445910A publication Critical patent/CN109445910A/en
Application granted granted Critical
Publication of CN109445910B publication Critical patent/CN109445910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a virtual machine VLAN management method, a device, a terminal and a storage medium, wherein the method comprises the following steps: installing a virtual machine management system on a physical machine and setting a service network trunk and the same vlan ID number for the virtual machine management system; installing a virtual machine on a physical machine, setting a vlan ID number different from other virtual machines for the virtual machine, and setting a network as a service network trunk in a corresponding virtual machine management system; adding an exit routing table of the virtual machine on a corresponding physical machine of the virtual machine; adding an entry routing table of the virtual machine on a corresponding physical machine of the virtual machine; and checking the newly added routing table by inquiring the routing table. By using the virtual machine to replace part of the physical host, a routing table is added on the physical host where the virtual machine is located so that hosts with different Vlan IDs can be added to the same iCenter to achieve the purpose of testing. And a special switch or router is not needed, so that the cost is saved and the working efficiency is improved.

Description

Virtual machine VLAN management method, device, terminal and storage medium
Technical Field
The invention belongs to the technical field of virtual machine management, and particularly relates to a virtual machine VLAN management method, a virtual machine VLAN management device, a virtual machine VLAN management terminal and a virtual machine VLAN management storage medium.
Background
An iCenter (management host node), a physical host node and a virtual host node in the virtualization management system; in the virtualization management system, the icnter can only manage hosts with the same Vlan ID, and cannot join the icnter when hosts with different Vlan IDs appear, and if the icnter is required to manage hosts with different Vlan IDs, a routing table needs to be set on a physical switch (the physical switch needs to support) or added in a router, and a plurality of physical hosts are needed. Direct communication between different VLAN ID hosts is not possible.
Disclosure of Invention
In order to overcome the defects in the prior art, the present invention provides a method, an apparatus, a terminal and a storage medium for managing a virtual machine VLAN.
In a first aspect, an embodiment of the present application provides a virtual machine VLAN management method, where the method includes:
installing a virtual machine management system on a physical machine and setting a service network trunk and the same vlan ID number for the virtual machine management system;
installing a virtual machine on a virtual machine management system of a physical machine, setting a vlan ID number different from other virtual machines for the virtual machine, and setting a network as a service network trunk in the corresponding virtual machine management system;
adding an exit routing table of a virtual machine on a corresponding virtual machine management system of the virtual machine;
adding an entry routing table of a virtual machine on a corresponding virtual machine management system of the virtual machine;
and checking the newly added routing table by inquiring the routing table.
With reference to the first aspect, in a first implementation manner of the first aspect, the installing a virtual machine management system on a physical machine and setting a service network trunk and a same vlan id number for the virtual machine management system includes:
installing a virtual machine management system on a physical machine and setting the same vlan ID number;
adding the virtual machine management system to an iCenter;
a traffic network trunk is added in the administrative exchange of the iecter.
With reference to the first aspect, in a second implementation manner of the first aspect, the adding an egress routing table of the virtual machine on a corresponding virtual machine management system of the virtual machine includes:
logging in a virtual machine management system corresponding to the virtual machine through SSH;
executing a command ovs-ofctl show manager vswitch in the corresponding hypervisor to obtain a port number of the hypervisor in the corresponding hypervisor;
and adding the outlet routing table of the virtual machine to a corresponding virtual machine management system according to the port serial number.
With reference to the first aspect, in a third implementation manner of the first aspect, the adding an ingress routing table of the virtual machine on a corresponding virtual machine management system of the virtual machine includes:
acquiring an inlet routing table configuration file of a virtual machine;
acquiring a vlan ID number of a virtual machine;
and adding the entry routing table of the virtual machine to the corresponding virtual machine management system according to the entry routing table configuration file and the vlan ID number.
In a second aspect, an embodiment of the present application provides a virtual machine VLAN management apparatus, where the apparatus includes:
the management setting unit is configured to install a virtual machine management system on a physical machine and set a service network trunk and the same vlan ID number for the virtual machine management system;
the virtual setting unit is configured to install a virtual machine on a virtual machine management system of a physical machine, set a vlan id number different from other virtual machines for the virtual machine, and set a network as a service network trunk in a corresponding virtual machine management system;
the virtual machine management system comprises an export adding unit, a virtual machine management unit and a virtual machine management unit, wherein the export adding unit is used for adding an export routing table of a virtual machine on a corresponding virtual machine management system of the virtual machine;
the virtual machine management system comprises an entry adding unit, a virtual machine management unit and a virtual machine management unit, wherein the entry adding unit is used for adding an entry routing table of a virtual machine on a corresponding virtual machine management system of the virtual machine;
and the adding and checking unit is configured for inquiring the routing table to check the newly added routing table.
With reference to the second aspect, in a first implementation manner of the second aspect, the management setting unit includes:
the management installation module is configured for installing the virtual machine management system on the physical machine and setting the same vlan ID number;
a management addition module configured to add the virtual machine management system to an iCenter;
and the network adding module is configured to add the service network trunk to the management switch of the iCenter.
With reference to the second aspect, in a second embodiment of the second aspect, the outlet adding unit includes:
the virtual login module is configured for logging in a virtual machine management system corresponding to the virtual machine through SSH;
the serial number acquisition module is configured to execute a command ovs-ofctl show manager vswitch on a corresponding virtual machine management system to acquire a port serial number of the virtual machine on the corresponding virtual machine management system;
and the outlet adding module is configured to add the outlet routing table of the virtual machine to the corresponding virtual machine management system according to the port serial number.
With reference to the second aspect, in a third implementation of the second aspect, the inlet adding module includes:
the file acquisition module is configured for acquiring an entry routing table configuration file of the virtual machine;
the number acquisition module is used for acquiring the vlan ID number of the virtual machine;
and the entry adding module is configured to add the entry routing table of the virtual machine to the corresponding virtual machine management system according to the entry routing table configuration file and the vlan ID number.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is configured to call and run the computer program from the memory, so that the terminal performs the above-mentioned method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the virtual machine VLAN management method, the virtual machine VLAN management device, the virtual machine VLAN management terminal and the virtual machine VLAN management storage medium, the virtual machine replaces part of physical hosts, and the routing table is added to the physical host where the virtual machine is located, so that hosts with different VLAN IDs can be added to the same iCenter to achieve the purpose of testing. And a special switch or router is not needed, so that the cost is saved and the working efficiency is improved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method of one embodiment of the present application.
FIG. 2 is a schematic block diagram of an apparatus of one embodiment of the present application.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following explains key terms appearing in the present application.
FIG. 1 is a schematic flow chart diagram of a method of one embodiment of the present application. The executive main body in fig. 1 may be a doctor-patient interaction management device.
As shown in fig. 1, the method 100 includes:
step 110, installing a virtual machine management system on a physical machine and setting a service network trunk and the same vlan id number for the virtual machine management system;
step 120, installing a virtual machine on a virtual machine management system of a physical machine, setting a vlan id number different from other virtual machines for the virtual machine, and setting a network as a service network trunk in a corresponding virtual machine management system;
step 130, adding an exit routing table of the virtual machine on a corresponding virtual machine management system of the virtual machine;
step 140, adding an entry routing table of the virtual machine to a corresponding virtual machine management system of the virtual machine;
step 150, the new routing table is checked by querying the routing table.
Optionally, as an embodiment of the present application, the installing a virtual machine management system on a physical machine and setting a service network trunk and the same vlan id number for the virtual machine management system includes:
installing a virtual machine management system on a physical machine and setting the same vlan ID number;
adding the virtual machine management system to an iCenter;
a traffic network trunk is added in the administrative exchange of the iecter.
Optionally, as an embodiment of the present application, the adding an egress routing table of a virtual machine to a virtual machine management system corresponding to the virtual machine includes:
logging in a virtual machine management system corresponding to the virtual machine through SSH;
executing a command ovs-ofctl show manager vswitch in the corresponding hypervisor to obtain a port number of the hypervisor in the corresponding hypervisor;
and adding the outlet routing table of the virtual machine to a corresponding virtual machine management system according to the port serial number.
Optionally, as an embodiment of the present application, the adding an ingress routing table of a virtual machine to a corresponding virtual machine management system of the virtual machine includes:
acquiring an inlet routing table configuration file of a virtual machine;
acquiring a vlan ID number of a virtual machine;
and adding the entry routing table of the virtual machine to the corresponding virtual machine management system according to the entry routing table configuration file and the vlan ID number.
In order to facilitate understanding of the present invention, the principle of the virtual machine VLAN management method of the present invention is combined with the process of managing a virtual machine VLAN in the embodiment to further describe the virtual machine VLAN management method provided by the present invention.
This embodiment specifically describes the virtual machine VLAN management method by taking two physical machines as an example, and includes:
s1, installing the virtual machine management system on the physical machine and setting a service network trunk and the same vlan ID number for the virtual machine management system.
Installing virtual machine management systems on the two physical machines (A, B) and setting the Vlan ID to be the same (0); the physical machine on which the virtual machine management system is installed is called a physical host, the host is added to the iCenter, and a service network trunk (vlan option: trunk all) is added to a management switch of the iCenter.
S2, installing the virtual machine on the virtual machine management system of the physical machine, setting a Vlan ID number different from other virtual machines for the virtual machine, and setting the network as a service network trunk in the corresponding virtual machine management system.
Virtual machines are installed on the two physical hosts, the operating systems of the installed virtual machines adopt virtual machine management systems consistent with the physical hosts, and the virtual machines with the virtual machine management systems are called virtual hosts. The virtual hosts are respectively set to different Vlan ID numbers, and the network selects the traffic network trunk in the management switch.
And S3, adding the exit routing table of the virtual machine on the corresponding virtual machine management system of the virtual machine.
Looking at the 'port names' of the two virtual machines, then logging in the corresponding physical hosts respectively through SSH to execute 'ovs-ofctl show manager vSwitch', and looking up the virtual machine according to the disconnection name, wherein the sequence number of the virtual machine corresponding to the corresponding physical host is H (namely the number in front of the port name).
Executing a command on the corresponding physical host to add an egress routing table of the virtual machine: ovs-opposite add-flow manager vswitch priority is 100, in _ port is H, actions is strip _ vlan, NORMAL
And S4, adding the entry routing table of the virtual machine on the corresponding virtual machine management system of the virtual machine.
Executing a command on a corresponding physical host of a virtual machine to add an ingress routing table of the virtual machine: ovs-opposite add-flow management vswitch priority is 100, dl _ dst is d2:38:88:1f: a4: d1, actions is mod _ vlan _ vid:81, wherein "d 2:38:88:1f: a4: d 1" is the mac corresponding to "HWADD" in the routing configuration file/etc/ics/ics-net/management ip.conf on the virtual machine; "81" is the Vlan ID value for the virtual host.
And S5, checking the newly added routing table by inquiring the routing table.
Executing ovs-inverse dump-flows manager vSitch on the physical host corresponding to the virtual machine to inquire whether the addition of the routing table is successful (2 newly-added routing tables are successfully generated), and the other virtual machine checking method is the same as the method.
Adding virtual hosts with different Vlan IDs into the iCenter, and generating 2 new management networks 'manageNetwork 81 and manageNetwork 82' on the management pipe switch after the successful addition; the management switch can manage the passing of the function test of the management network with a plurality of VLAN numbers.
As shown in fig. 2, the apparatus 200 includes:
a management setting unit 210, where the management setting unit 210 is configured to install a virtual machine management system on a physical machine and set a service network trunk and the same Vlan ID number for the virtual machine management system;
a virtual setting unit 220, where the virtual setting unit 220 is configured to install a virtual machine on a virtual machine management system of a physical machine, set a Vlan ID number different from other virtual machines for the virtual machine, and set a network as a service network trunk in a corresponding virtual machine management system;
an egress adding unit 230, wherein the egress adding unit 230 is configured to add an egress routing table of a virtual machine on a corresponding virtual machine management system of the virtual machine;
an entry adding unit 240, where the entry adding unit 240 is configured to add an entry routing table of a virtual machine on a corresponding virtual machine management system of the virtual machine;
and an adding and checking unit 250, wherein the adding and checking unit 250 is used for checking the newly added routing table by inquiring the routing table.
Optionally, as an embodiment of the present application, the management setting unit includes:
the management installation module is configured for installing the virtual machine management system on the physical machine and setting the same vlan ID number;
a management addition module configured to add the virtual machine management system to an iCenter;
and the network adding module is configured to add the service network trunk to the management switch of the iCenter.
Optionally, as an embodiment of the present application, the outlet adding unit includes:
the virtual login module is configured for logging in a virtual machine management system corresponding to the virtual machine through SSH;
the serial number acquisition module is configured to execute a command ovs-ofctl show manager vswitch on a corresponding virtual machine management system to acquire a port serial number of the virtual machine on the corresponding virtual machine management system;
and the outlet adding module is configured to add the outlet routing table of the virtual machine to the corresponding virtual machine management system according to the port serial number.
Optionally, as an embodiment of the present application, the entrance adding module includes:
the file acquisition module is configured for acquiring an entry routing table configuration file of the virtual machine;
the number acquisition module is used for acquiring the Vlan ID number of the virtual machine;
and the entry adding module is configured to add the entry routing table of the virtual machine to the corresponding virtual machine management system according to the entry routing table configuration file and the Vlan ID number.
Fig. 3 is a schematic structural diagram of a terminal device 300 according to an embodiment of the present invention, where the terminal device 300 may be used to execute the method for updating the heat dissipation policy parameter according to the embodiment of the present application.
Among them, the terminal apparatus 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not limiting of the application, and may be a bus architecture, a star architecture, a combination of more or fewer components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiments of the present application, the CPU may be a single arithmetic core or may include multiple arithmetic cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present application also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided in the present application when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the virtual machine replaces part of the physical hosts, and the routing table is added to the physical host where the virtual machine is located, so that hosts with different Vlan IDs can be added to the same iCenter to achieve the purpose of testing. The special switch or router is not needed, the cost is saved, and the working efficiency is also improved, and the technical effect achieved by the embodiment can be referred to the description above, which is not described herein again.
Those skilled in the art will clearly understand that the techniques in the embodiments of the present application may be implemented by way of software plus a required general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present application may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and includes several instructions to enable a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method according to the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units 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.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A virtual machine (VLAN) management method, the method comprising:
installing a virtual machine management system on a physical machine and setting a service network trunk and the same vlan ID number for the virtual machine management system;
installing a virtual machine on a virtual machine management system of a physical machine, setting a vlan ID number different from other virtual machines for the virtual machine, and setting a network as a service network trunk in the corresponding virtual machine management system;
adding an exit routing table of a virtual machine on a corresponding virtual machine management system of the virtual machine;
adding an entry routing table of a virtual machine on a corresponding virtual machine management system of the virtual machine;
checking the newly added routing table by inquiring the routing table;
the installing a virtual machine management system on a physical machine and setting a service network trunk and the same vlan id number for the virtual machine management system includes:
installing a virtual machine management system on a physical machine and setting the same vlan ID number;
adding the virtual machine management system to an iCenter;
a traffic network trunk is added in the administrative exchange of the iecter.
2. The method of claim 1, wherein adding the egress routing table of the virtual machine on a corresponding virtual machine management system of the virtual machine comprises:
logging in a virtual machine management system corresponding to the virtual machine through SSH;
executing a command ovs-ofctl show manager vswitch in the corresponding hypervisor to obtain a port number of the hypervisor in the corresponding hypervisor;
and adding the outlet routing table of the virtual machine to a corresponding virtual machine management system according to the port serial number.
3. The method of claim 1, wherein adding the ingress routing table of the virtual machine on a corresponding virtual machine management system of the virtual machine comprises:
acquiring an inlet routing table configuration file of a virtual machine;
acquiring a vlan ID number of a virtual machine;
and adding the entry routing table of the virtual machine to the corresponding virtual machine management system according to the entry routing table configuration file and the vlan ID number.
4. A virtual machine VLAN management apparatus, the apparatus comprising:
the management setting unit is configured to install a virtual machine management system on a physical machine and set a service network trunk and the same vlan ID number for the virtual machine management system;
the virtual setting unit is configured to install a virtual machine on a virtual machine management system of a physical machine, set a vlan id number different from other virtual machines for the virtual machine, and set a network as a service network trunk in a corresponding virtual machine management system;
the virtual machine management system comprises an export adding unit, a virtual machine management unit and a virtual machine management unit, wherein the export adding unit is used for adding an export routing table of a virtual machine on a corresponding virtual machine management system of the virtual machine;
the virtual machine management system comprises an entry adding unit, a virtual machine management unit and a virtual machine management unit, wherein the entry adding unit is used for adding an entry routing table of a virtual machine on a corresponding virtual machine management system of the virtual machine;
the adding and checking unit is configured for inquiring the routing table to check the newly added routing table;
the management setting unit includes:
the management installation module is configured for installing the virtual machine management system on the physical machine and setting the same vlan ID number;
a management addition module configured to add the virtual machine management system to an iCenter;
and the network adding module is configured to add the service network trunk to the management switch of the iCenter.
5. The apparatus of claim 4, wherein the outlet adding unit comprises:
the virtual login module is configured for logging in a virtual machine management system corresponding to the virtual machine through SSH;
the serial number acquisition module is configured to execute a command ovs-ofctl show manager vswitch on a corresponding virtual machine management system to acquire a port serial number of the virtual machine on the corresponding virtual machine management system;
and the outlet adding module is configured to add the outlet routing table of the virtual machine to the corresponding virtual machine management system according to the port serial number.
6. The apparatus of claim 4, wherein the entry addition module comprises:
the file acquisition module is configured for acquiring an entry routing table configuration file of the virtual machine;
the number acquisition module is used for acquiring the vlan ID number of the virtual machine;
and the entry adding module is configured to add the entry routing table of the virtual machine to the corresponding virtual machine management system according to the entry routing table configuration file and the vlan ID number.
7. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-3.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN201811298831.6A 2018-11-02 2018-11-02 Virtual machine VLAN management method, device, terminal and storage medium Active CN109445910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811298831.6A CN109445910B (en) 2018-11-02 2018-11-02 Virtual machine VLAN management method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811298831.6A CN109445910B (en) 2018-11-02 2018-11-02 Virtual machine VLAN management method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109445910A CN109445910A (en) 2019-03-08
CN109445910B true CN109445910B (en) 2022-03-04

Family

ID=65549746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811298831.6A Active CN109445910B (en) 2018-11-02 2018-11-02 Virtual machine VLAN management method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109445910B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607308A (en) * 2013-11-29 2014-02-26 杭州东信北邮信息技术有限公司 Virtual machine multi-network management system and method in cloud computing environment
CN104579898A (en) * 2015-01-26 2015-04-29 中国联合网络通信集团有限公司 Tenant isolating method and system
CN107332791A (en) * 2017-07-25 2017-11-07 郑州云海信息技术有限公司 A kind of method and apparatus that network is created with virtual switch

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7630368B2 (en) * 2006-06-30 2009-12-08 Sun Microsystems, Inc. Virtual network interface card loopback fastpath
CN102970204B (en) * 2012-10-24 2017-09-01 曙光信息产业(北京)有限公司 A kind of distribution switch system and its implementation based on xen virtual platforms
US9203781B2 (en) * 2013-08-07 2015-12-01 Cisco Technology, Inc. Extending virtual station interface discovery protocol (VDP) and VDP-like protocols for dual-homed deployments in data center environments
WO2015029048A1 (en) * 2013-08-29 2015-03-05 Hewlett-Packard Development Company, L.P. Automatically configuring virtual router

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607308A (en) * 2013-11-29 2014-02-26 杭州东信北邮信息技术有限公司 Virtual machine multi-network management system and method in cloud computing environment
CN104579898A (en) * 2015-01-26 2015-04-29 中国联合网络通信集团有限公司 Tenant isolating method and system
CN107332791A (en) * 2017-07-25 2017-11-07 郑州云海信息技术有限公司 A kind of method and apparatus that network is created with virtual switch

Also Published As

Publication number Publication date
CN109445910A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
EP3643008B1 (en) Network node memory utilization analysis
CN109951325B (en) Network cable connection checking method and device
CN109547349B (en) Virtual routing-based traffic management method, device, terminal and storage medium
CN108509210A (en) Automatically update the System and method for of basic input output system
CN109039829A (en) A kind of network card performance testing method, apparatus, terminal and storage medium
CN109995639B (en) Data transmission method, device, switch and storage medium
WO2017008578A1 (en) Data check method and device in network function virtualization framework
CN109815721A (en) A kind of method, apparatus, terminal and storage medium for modifying BIOS Setup option password by BMC
CN108737499A (en) server configuration method and device
CN109976926A (en) Method, circuit, terminal and the storage medium of protection BMC renewal process are restarted in a kind of shielding
CN110839007B (en) Cloud network security processing method and device and computer storage medium
CN113872951B (en) Hybrid cloud security policy issuing method and device, electronic equipment and storage medium
CN111124437A (en) Bare computer resource configuration information acquisition method, system and equipment based on OpenStack
CN112003794B (en) Floating IP current limiting method, system, terminal and storage medium
CN114124714A (en) Multi-level network deployment method, device, equipment and storage medium
CN109039823B (en) Network system firewall detection method, device, equipment and storage medium
CN112653576A (en) Network card identification processing method, system, terminal and storage medium based on Kylin system
CN112003730A (en) Method, system, terminal and storage medium for rapid cluster deployment
CN109445910B (en) Virtual machine VLAN management method, device, terminal and storage medium
CN111736993A (en) Cluster high-availability service configuration method, system, terminal and storage medium
CN109558300B (en) Whole cabinet alarm processing method and device, terminal and storage medium
CN109361543A (en) A kind of whole machine cabinet monitoring method, device, terminal and storage medium
CN113872826B (en) Network card port stability testing method, system, terminal and storage medium
CN115150268A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN109450682B (en) IB network card communication configuration method and device, terminal and storage medium

Legal Events

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