|
发表于 2010-1-31 17:40:09
|
显示全部楼层
vmware网络有4中
重点说第一种和第二中
1)桥接
2)NAT
windows 运行-->cmd
ipconfig /allWindows IP Configuration
Host Name . . . . . . . . . . . . : PC-20100123PFSY
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : domain
[color="Red"]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. . . . . . . . . . . . : [color="Blue"]192.168.233.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1
Physical Address. . . . . . . . . : 00-50-56-C0-00-01
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.29.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
[color="Red"]Ethernet adapter 本地连接:
Connection-specific DNS Suffix . : domain
Description . . . . . . . . . . . : Realtek PCIe FE Family Controller
Physical Address. . . . . . . . . : 00-E0-A0-19-58-D5
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
[color="Red"]
IP Address. . . . . . . . . . . . : 192.168.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
[color="Red"] Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
[color="Red"] DNS Servers . . . . . . . . . . . : 202.102.152.3
202.102.154.3
Lease Obtained. . . . . . . . . . : 2010年1月31日 星期日 16:33:12
Lease Expires . . . . . . . . . . : 2010年1月31日 星期日 18:33:12
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
Physical Address. . . . . . . . . : 08-00-27-00-50-61
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
其中,如果虚拟机设置的 [color="Red"]桥接那么配置相应于上面的网络信息,应该是
Ethernet adapter 本地连接
所以在你的LFS系统中应该配置的网络参数是
ip=192.168.1.XXX #XXX随便填好了。 XXX 应<255
Gateway=192.168.1.1
BROADCAST=192.168.1.255
那俩DNS应该设定为
202.102.152.3
202.102.154.3 #其实第二个不用填
如果你设置为NAT方式,那么配置应该是
[color="Red"]Ethernet adapter VMware Network Adapter VMnet8:
相应的网络参数应该是
ip=192.168.233.XXX #XXX随便填好了。 XXX 应<255
Gateway=192.168.233.2
BROADCAST=192.168.233.255
那俩DNS应该设定为
192.168.233.2
PS:楼主,你一定要根据你自己的 ipconfig /all 来设置啊!!。你的参数可不能直接复制我的呀。。。嘻嘻。开个玩笑先 |
|