vBox设置了一个网卡,网络选择的连接模式是桥连,ifconfig显示的网卡eth0和一个lo,其中eth0是局域网的内网地址192.168.1.96,ping主机192.168.1.100和上网都没有问题,但是用wget不能下载主机上ftp里的东西,提示一直的connecting。
同样的网络设置装了xubuntu12.04一切都正常,不管是上网还是访问主机
PHP中文网2017-04-21 10:57:07
First of all, there is no problem with pinging the host 192.168.1.100 and accessing the Internet. This means that there must be no problem with your network access. Then does your wget host ftp mean 100? Does your wget format and ftp require user password authentication?
You can simply use telnet 192.168.1.100 21 to test whether the port is open
It was said later that there is no problem installing xubuntu, so I suspect that the firewall of ubuntu server 11.10 blocks incoming requests, causing it to keep connecting because no response is received. You can use telnet to see if all service ports are open.
阿神2017-04-21 10:57:07
Try to modify the network settings of the VM in Virtualbox?
Enable using Bridged Adpater during network connection