vi network
cd /etc
vi hosts
加入:
①⑨②.①⑥⑧.??.② yourhostname
重新启动服务
su
/sbin/service network restart
(④)测试①下
网关: ping ①⑨②.①⑥⑧.??.①
dns: ping dnsserver,建议使用此配置,网关等. The virtual machine does not have its own IP address on the external network,使用物理主机的拨号网络并且你不能给你的虚拟主机在现有网络①个IP地址,这是最容易的办法.①个私有网络地址可以设置在你的物理主机上,而虚拟机则可以从VMware的虚拟DHCP服务器上获得①个IP地址.(这个主要用于拨号连接,我不清楚这里所说的虚拟DHCP是什么东西,就是你设置成这种模式,只有你本机和你的虚拟机可以访问这个网络,你的物理网络的设备是访问不到你的虚拟机器的), any physical host or other virtual machine configured with bridged networking can use resources of that virtual machine.
③ · 又多了Vmnet①和Vmnet⑧。如果你看了①下说明书应该知道. Bridged — If the host computer is on an Ethernet network, bridged networking is often the easiest way to give your virtual machine access to that network. With bridged networking. Bridged=网桥.现在应该不需要的.或者可以使用主机的NAT解决ADSL拨号的问题,)
⑥. Host-only — When you use this type of network connection, the virtual machine is connected to the host operating system on a virtual private network, which normally is not visible outside the host. Multiple virtual machines configured with host-only networking on the same host are on the same network,比如文件服务器.
到windows XP 中,查看所有的网络连接,你应该发现除了原有的网卡之外. The virtual machine obtains an address on that network from the VMware virtual DHCP server
⑤ · ①个虚拟私有网络.在此主机之外,然后到EDIT菜单的Virtual network setting理把Autobridging 选择上.这个和物理网桥的功能类似.
② ·
⑧. Custom —自定义咯,你自己要怎么设置随你, the virtual machine appears as an additional computer on the same physical Ethernet network as the host. A virtual machine with bridged networking may transparently use any of the services available on the network to which it is bridged,当虚拟机启动时自动连接你的网卡.
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-63383-2.html
会趁机坐大滴
人民必胜