Home > database >  The virtual machine and host ping impassability, make a day, ask for help, solve WeChat send a small
The virtual machine and host ping impassability, make a day, ask for help, solve WeChat send a small

Time:09-29

Yesterday was configure the mysql master-slave, but to start after the slave, there is a problem of use: IO RUNNING for no), and then gradually screening to is a network problem..
Now find the situation:
1. The host can't two virtual machines,
2. Two virtual machine can ping the host, (ask host IP ipv4 address?)
3. The two virtual machine can't each other..
Virtual machine and host firewall are closed,
Virtual machine network connection mode is: NAT, I tried to bridge the brige, but even on a less than average Internet, after changed more ping don't..

Make a day, ask a master to help, very grateful...



Two virtual machines are the same connection mode. Who can help me to solve distributed small red envelopes, sincerely thank you!!!!!!!!!!

is the IP address of the host that ipv4??


I don't have any points,.. I'm sorry...

CodePudding user response:

Do not use NAT, with bridge, let host and from the machine in a network segment,

CodePudding user response:

With upstairs, with the bridge, set after the bridge, to modify the virtual machine network preferences, the original card automatically choose the network card to your host computer currently used, to prevent it no effect, the Settings before you dropped the virtual organ,

CodePudding user response:

"And why do you open a virtual machine, directly on the machine to install two instances, configured for primary 1 from it can be tested directly

CodePudding user response:

refer to the original poster kk25885 response:
configure mysql master-slave yesterday, but to start after the slave, there is a problem of use: IO RUNNING for no), and then gradually screening to is a network problem..
Now find the situation:
1. The host can't two virtual machines,
2. Two virtual machine can ping the host, (ask host IP ipv4 address?)
3. The two virtual machine can't each other..
Virtual machine and host firewall are closed,
Virtual machine network connection mode is: NAT, I tried to bridge the brige, but even on a less than average Internet, after changed more ping don't..

Make a day, ask a master to help, very grateful...



Two virtual machines are the same connection mode. Who can help me to solve distributed small red envelopes, sincerely thank you!!!!!!!!!!

is the IP address of the host that ipv4??


I don't have any points,.. I'm sorry...


Networking can't directly on the bridge model, ping also suggest not connected!
I don't know much about to the knowledge of the network, it's convenient for you can leave a QQ or add me QQ935579178

CodePudding user response:

reference 1st floor zhu19774279 response:
do not use NAT, bridge, let host and from the machine in a network segment,


Networking can't directly on the bridge model, ping also suggest not connected!
I don't know much about to the knowledge of the network, it's convenient for you can leave a QQ or add me QQ935579178

CodePudding user response:

reference fcy_n reply: 3/f
why open the virtual machine, directly on the machine to install two instances, configuration from can be directly tested for primary 1

Has been met, want to solve this pit..

CodePudding user response:

Bridge pattern is certainly no problem,
You check the native IP, gateway, subnet mask, the virtual machine's IP + 1 on the machine IP, gateway, subnet mask and the machine is consistent,
Such as: the machine is 192.168.1.100 IP, then the virtual machine's IP to 192.168.1.101,

CodePudding user response:

refer to 7th floor zhu19774279 response:
bridge model is certainly no problem,
You check the native IP, gateway, subnet mask, the virtual machine's IP + 1 on the machine IP, gateway, subnet mask and the machine is consistent,
Such as: the machine is 192.168.1.100 IP, then the virtual machine's IP to 192.168.1.101,



Checked that I how to modify? IP by ifconfig I can see, for example, several other?? Wrong words, how do I change? In the virtual machine always setting change or change to a specific virtual out system? Sorry I want to be weak in this aspect, can explain in detail a little bit of trouble..
thank you

CodePudding user response:

refer to the eighth floor kk25885 response:
Quote: refer to 7th floor zhu19774279 response:

Bridge pattern is certainly no problem,
You check the native IP, gateway, subnet mask, the virtual machine's IP + 1 on the machine IP, gateway, subnet mask and the machine is consistent,
Such as: the machine is 192.168.1.100 IP, then the virtual machine's IP to 192.168.1.101,



Checked that I how to modify? IP by ifconfig I can see, for example, several other?? Wrong words, how do I change? In the virtual machine always setting change or change to a specific virtual out system? Sorry I want to be weak in this aspect, can explain in detail a little bit of trouble..
Thank you

Modify the IP address can be baidu, then a firewall close ping try,

CodePudding user response:

refer to the eighth floor kk25885 response:
checked how do I change? IP by ifconfig I can see, for example, several other?? Wrong words, how do I change? In the virtual machine always setting change or change to a specific virtual out system? Sorry I want to be weak in this aspect, can explain in detail a little bit of trouble..
Thank you

In virtual out of system change, specific how to change yourself baidu, different system is not the same as the other way,

CodePudding user response:

Recommended bridge mode, check the machine IP network segment, and then the virtual machine system configuration the same static IP network segment, the Linux system generally directly modify network adapter configuration file,/etc system
Modify finished remember to restart the network card service network restart

CodePudding user response:

Also can use NAT mode, but between the virtual machine needs to access by means of virtual host port, concrete can baidu

CodePudding user response:

Step one: two virtual machine to two network CARDS, the second chapter first network on the network

The second part: into the heart of the network connection Settings nic IP it is good to their favorite

Step 3: log in virtual machine can be set up two pieces of card,,,,,,, the network card a manually set (IP segment to step 2 IP segment as well) card two DHCP


Okok ~ ~ finish can find on the Internet!!!!!! Can ping each other

I am using virtualbox method ~ ~ ~ ~ ~ ~ ~ ~


CodePudding user response:

Bridge model

CodePudding user response:

reference 13 floor qq_19533439 reply:
the first step: two virtual machine with two network CARDS, the second chapter first network on the network

The second part: into the heart of the network connection Settings nic IP it is good to their favorite

Step 3: log in virtual machine can be set up two pieces of card,,,,,,, the network card a manually set (IP segment to step 2 IP segment as well) card two DHCP


Okok ~ ~ finish can find on the Internet!!!!!! Can ping each other

I am using virtualbox method ~ ~ ~ ~ ~ ~ ~ ~

Network connection center not the virtual network adapter
  • Related