VmWare虚拟机组建局域网,很急!!
来源:百度知道 编辑:UC知道 时间:2024/05/25 17:56:06
不懂的请不要随便回答,我在网上找了很久,没有满意的,而且网上的几乎都是以linux系统为例子。
请写上详细步骤,没有详细步骤也请不要回答,谢谢!
主机上以下参数供参考:
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for
VMnet8
Physical Address. . . . . . . . . : 00-50-56-C0-00-08
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.186.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter
两虚拟机以NAT方式接入物理主机,并设置两VM的IP都为自动获取,这样你的主机就会为其分陪IP并成为其网关,很简单,我建立成功过,所以楼主不要怀疑我的答案:
主机:Windows Vista 3GB内存(内存一定要大些)
VM1:Windows XP(内存分512MB)
VM2: Windows 2008(1GB)
VM3: Fedora Linux(512MB)
VM4: Mac OSX(1GB)
以上四个VM任启两个都能满足你的要求,我同时就启动两个VM
给你做个例子吧:
如网关地址是:192.168.3.1
主机IP地址信息:
IP Address:192.168.3.10
Subnet Mask:255.255.255.0
Default Gateway:192.168.3.1
VM1的IP地址信息:
IP Address:192.168.3.20
Subnet Mask:255.255.255.0
Default Gateway:192.168.3.1
VM2的IP地址信息:
IP Address:192.168.3.30
Subnet Mask:255.255.255.0
Default Gateway:192.168.3.1
要想互相PING的通,前提是VM的网卡要设置成bridget模式:
device status一栏中勾选如下选项:
connect at power on
network connection 一栏中选择如下选项:
bridget:connected directly to the physical network
然后保存设置
开机后然后设置虚拟机的IP地址和物理机在同一网段
以上都设置好了之后,无论VM还是真机都能互相Ping通了
如果真机能上网的话,虚拟机也能上网啊
希望