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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


