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

如何使虚拟机和主机ip不同(如何让每个虚拟机不同ip)

How to make the virtual machine and host have different IP addresses but still be able to access the Internet
If you use bridging to access the Internet, then the network card of the
virtual machine
Must be the same as the host's IP address. But you need to share the broadband
dial-up connection
with the local connection network card, and check all the options in the settings under sharing.
If you are using NAT, then you only need to set the IP address of the VMnet8 network card to automatically obtain in the network connection, and you must also share the broadband dial-up connection with the local connection network card. , and check all options in the settings under sharing.

How to make the external IP addresses of the virtual machine and the host different.
You need to set the virtual machine's network card to bridge, that is, bridge mode, not NAT mode. 1. In BRIDGE mode, the IP of the virtual machine is independent of the host IP and can be regarded as a completely independent network environment. The specific IP address to set depends on your specific network environment
2. If you use If the router is connected to the Internet, you can only have one external IP. Not to mention the virtual machine, even if multiple computers are connected to the router, there will only be one external IP, which is the external IP obtained by the egress router.
3. This is related to your network environment. If you are accessing the Internet through dial-up methods such as ADSL, you can only obtain one external IP address; if you are in a LAN environment such as a campus network, you can obtain multiple IP external addresses - this is only possible. If the network The provider has made restrictions, and it may also be limited to 1 IP.

How to set the IP in the virtual machine is different
First install and open the system on the virtual machine. The editor installed the XP system here, as shown in the picture:
Click the "Virtual Machine" button on the menu bar and open the drop-down menu, as shown in the figure:
In the drop-down menu, click the "Settings" button to open the virtual machine settings interface, as shown in the figure:
4
In the virtual machine settings interface, there are various hardware settings options for the virtual machine. Here we select "Network Adapter". You can see in the "Network Adapter" that the default The network connection method is "NAT", as shown in the figure:
5
In "Network Adapter" we change the network connection method from "NAT" to "Bridge", that is, direct connection Go to the physical network, so that the virtual machine and the physical host are on the same network segment, as shown in the figure:
How can I set the IP addresses of the host and the virtual machine to be different?
Already used the VM virtual machine,
Double lines,
The game service allows two numbers with the same IP,
So I want the host virtual machine to have the same IP,
My telecom 1.5M broadband (PPPoE)
Use TP-LINK
(TL-R402M) to provide two networks
I Computer illiterate-
-Understand
I will add questions!! 1111
Set up the bridge
OK
Make sure to install the VM bridge (VMnet0)
Router
DHCP (IP address self-obtained) 22222
.win run --cmd
ig
3. See this connection ip address gateway.:202.114.16.35,255.255.0.0
4. Terminal setup
5. Select network configuration options
6. Change ip202.114.16.34 (optional, must be on the same network segment). Write gateway
7. Exit
8. System options, network connection activation eth0
e
network

P.S.
Virtual machine and host connection type bridge 33333