Unlock instant, AI-driven research and patent intelligence for your innovation.

A method for realizing dual-line access of a virtual machine with a single network card

A technology of virtual machine and virtual network interface, which is applied to the field of dual-line access for virtual machines with a single network card, can solve problems such as high cost, difficulty in maintenance work by application managers, and the inability of telecommunication network and Netcom network to be well interconnected. , to achieve the effect of saving costs and reducing workload

Active Publication Date: 2017-09-22
G CLOUD TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem solved by the present invention is to provide a method for a virtual machine with a single network card to realize two-line access, which solves the problem that the telecommunications network and the Netcom network cannot be well interconnected, and the cost of setting a mirror server is relatively high. The way of implementing dual network cards and dual network bridges will inevitably increase the difficulty of maintenance work for application managers and increase the workload of virtual machine managers.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for realizing dual-line access of a virtual machine with a single network card
  • A method for realizing dual-line access of a virtual machine with a single network card
  • A method for realizing dual-line access of a virtual machine with a single network card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] See attached figure 1 , 2 As shown, the present invention first: configure the operating system kernel parameters of the host computer, and set it to allow IP forwarding. The specific configuration is as follows:

[0026] Configure the / etc / sysctl.conf file:

[0027] net.ipv4.ip_forward=1

[0028] After configuration, execute the sysctl-p command to take effect immediately

[0029] Step 2: Configure two network cards in the host machine, one network card is bridged to the bridge br1, br1 is configured with a private IP, and a virtual machine is created with br1; the other network card is connected to the switch of the external network, and bridged to br0, but br0 No IP is configured, which is used to assign the public IP of the virtual machine;

[0030] Step 3: After creating the virtual machine, assign it a private IP. To set the intranet IP of the virtual machine, a private IP and a MAC address are bound and stored in the DNSmasq configuration file. The DNSmasq ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of cloud computing, in particular to a method for realizing dual-line access of a virtual machine with a single network card. The present invention firstly configures operating system kernel parameters in the host machine to allow IP forwarding; then configures two network cards in the host machine, one network card is bridged to the network bridge br1, and a private IP is configured for it to create a virtual machine; the other A network card is connected to the switch of the external network, and bridged to br0, but no IP is configured, which is used to assign the public IP of the virtual machine; after the virtual machine is created successfully, assign a private IP to it; Configure a pair of public IPs on the bridge, mark the virtual network interface of br0 with the id of the virtual machine, and use NAT mapping rules to map each pair of public IPs to the private IP of the virtual machine; when dual-line access is not required , delete the NAT mapping rule corresponding to this virtual machine. The invention can realize the access of the virtual machine two-line network in the single network card environment; it can be used for the network access of the virtual machine.

Description

technical field [0001] The invention relates to the technical field of cloud computing, in particular to a method for realizing dual-line access of a virtual machine with a single network card. Background technique [0002] In China, it is a real problem that the telecommunications network and Netcom network cannot be well interconnected, and the cost of setting up a mirror server is relatively high. Therefore, usually the host will use a two-line access method to implement Dual-line access generally adopts dual-network card and double-bridge mode. The dual-line access achieved by this method has the following disadvantages: [0003] 1. The two network cards installed on the host are used on the virtual network, and the third network card must be installed for internal management, which will increase the hardware cost of the cloud platform; [0004] 2. The data forwarding of the two network cards of the virtual machine needs to be managed by the user of the virtual machine ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/455
Inventor 莫佩红杨松莫展鹏季统凯
Owner G CLOUD TECH