VirtualBox - Windows 8主机,UbuntuServer Guest

时间:2013-10-30 18:40:08

标签: linux interface virtualbox

我想/需要在linux机器上安装我的网络服务器,我想在我的VirtualBox上安装UbuntuServer。 我唯一的问题是让2系统通信在一起。 如果我选择NAT,我的访客可以上网,但我不能与主机(也不是SSH nether http)通信,即使我设置主机的8888端口与访客的80和2222与22。 如果我选择桥接连接,我可以与客户通信抛出其IP,但我无法与访客上网。如果我离开DHCP我可以,但当然我需要一个静态IP,所以例如如果我的主机是192.168.0.x我用“sudo nano / etc / network / interfaces”编辑 像这样的东西:

iface eth0 inet static
address 192.168.0.y
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.1 

但我无法ping我的主持人,Google ecc。

2 个答案:

答案 0 :(得分:0)

您是否在ubuntu机器上安装了ssh服务器,以便它可以接受ssh连接?

使用安装ssh服务器 https://help.ubuntu.com/10.04/serverguide/openssh-server.html

答案 1 :(得分:0)

刚用putty签出我可以用SSH连接到“localhost”端口2222,但我真的无法将localhost:8080连接到网络服务器