当前位置:首页 > 虚拟机 > 正文

虚拟机怎么设置跟本机ip不同(怎么设置虚拟机不同ip)

How to connect the linux system and win in the virtual machine with different IPs
Directly use the last option of the vm network, select a network card, use hostonly, and then configure the network address under windows, and then Configure an IP address under the virtual machine and it will be on a network segment. There is no problem in interoperability between the two.
How to set the IP address of the virtual network card of the Win10 computer

We need to set the IP address of the virtual network card of the Win10 computer. How to do it? Today I will introduce to you the specific steps on how to set the IP address of the virtual network card of a win10 computer.

1. First turn on the computer, find the computer icon on the desktop, right-click, select the Properties option in the menu that opens, and then click on the control panel above to enter.

2. After entering the control panel page, select the [Network and Internet] option and open it.

3. On the Network and Sharing Center page that opens, click the Change Adapter Settings option in the upper left corner.

4. On the page that opens, right-click the virtual network card and select the Enable option in the menu that opens.

5. Then continue to right-click on the above, select the properties option in the menu that opens, and in the pop-up window, click the configuration button on the right.

6. In the pop-up window, switch to the advanced options at the top, enter the IP address under the value on the right, and finally, click the OK button to complete the operation.

How to modify the IP address in the virtual machine?
Actually, the IP addresses of real machines and virtual machines that you refer to for accessing the Internet are "the same", but the actual situation is not the same. Although the virtual machine is hosted on the real machine and runs together, the network card on the virtual machine is actually the virtual network card on the real machine. Therefore, if you want to set the IP of the virtual machine to be different from the IP of the real machine, then you need to set the virtual network card access method of your virtual platform (for example: VMware). There are several options, including: NAT access (that is, the real machine and virtual machine IPs are the same), bridging (that is, the virtual machine's IP is obtained from DHCP according to the real machine's IP network segment), and internal host. By choosing bridging, you can achieve the desired effect of different host and virtual machine IPs, which means that there is an extra computer (virtual machine) on the real machine network. Follow-up question: The problem is that I cannot dual-dial. Does one more computer mean one more network? I use routing. Answer: This is two questions: (1) Dial-up. Since you are using routing, ADSL Modem should have been connected to the router for use, so your computer (regardless of host/virtual machine) does not need to dial-up to access the Internet. It only needs to be connected through routing. It's enough to access the Internet, let alone dial-up the Internet independently, because there is no ADSL Modem available/connected to your computer for dial-up! (2) One more computer does not mean one more network, because multiple computers can have the same network IP address segment, such as: 192.168.0.0/24 (192.168.0.0/255.255.255.0), as long as the IP of each computer As long as they are in the same IP segment, that is, computer one IP: 192.168.0.100/255.255.255.0 and computer two IP: 192.168.0.101/255.255.255.0 can definitely access each other. Follow-up question: You are talking about the internal IP, but I am talking about the external IP. The intranet IP is different. It's very easy to set up. I asked if the external network could be different. Thank you! Answer: The external network is restricted by telecommunications and cannot be completed by just relying on your own settings. If the external network IP is different, it means a different public network IP address, which will be charged separately.