【发布时间】:2014-10-10 11:52:21
【问题描述】:
我在 vmware 上有 Windows 7 主机和来宾 debian 7。我通过 3G 调制解调器连接到互联网,这是主机的 ip 配置
PPP adapter [provider name]:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 10.47.235.94
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 0.0.0.0
我想要实现的是
1) set static ip for guest
2) connect from host to guest by ftp and remote mysql
3) access internet in guest
过去我有有线互联网连接,主机的 ipconfig 是这样的
IPv4 Address. . . . . . . . . . . : 192.168.0.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
那次我只是将 vmware 中的网络类型更改为桥接并有这个
nameserver 192.168.0.1
在etc/resolv.conf 以及etc/network/interfaces 中的这些行,一切都很好。
iface eth0 inet static
address 192.168.0.107
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.0.1
我尝试做类似的事情
address 10.47.235.95 # just putting some ip other than the host's ip
netmask 255.255.255.255 # same as for host
network 192.168.1.0 # did not know what to put, so just left the same
gateway 0.0.0.0 # host's gateway
但不起作用,我既无法连接到访客,也无法在访客中连接互联网。
谢谢
【问题讨论】:
标签: networking vmware vmware-workstation