![VirtualBox 中的 Ubuntu 服务器:没有与主机的连接](https://linux22.com/image/988797/VirtualBox%20%E4%B8%AD%E7%9A%84%20Ubuntu%20%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%9A%E6%B2%A1%E6%9C%89%E4%B8%8E%E4%B8%BB%E6%9C%BA%E7%9A%84%E8%BF%9E%E6%8E%A5.png)
为了完成一项任务,我需要使用 nginx 托管 2 个网站。默认页面昨天可以正常工作,现在却不行了(虽然我没有做任何重大更改),而且我也无法再打开 SSH 连接(昨天还可以正常工作),此外,我无法 ping 通服务器或从服务器 ping 通。
我已经配置了 1 个桥接网络接口和 2 个仅主机接口。 ifconfig 看起来像这样(抱歉缩进不好,这里也有一张截图):https://i.stack.imgur.com/EYnwA.png)
enp0s3 Link encap:Ethernet HWaddr 08:00:27:27:92:36
inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: 2a02:1812:d1c:1700:a00:27ff:fe27:9236/64
Scope:Globa inet6 addr: fe80::a00:27ff:fe27:9236/64
Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:286 errors:0 dropped:0 overruns:0 frame:0 TX packets:23 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:69110 (69.1 NB) TX bytes:2200 (2.2 NB)
enp0s8 Link encap:Ethernet HWaddr 08:00:27:82:2a:43
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe82:2a43/64
Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:212 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:63669 (63.6 NB) TX bytes:648 (648.0 B)
enp0s9 Link encap:Ethernet HWaddr 08:00:27:bd:75:43
inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:febd:7543/64
Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:236 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX b tes:70850 (70.8 NB) TX b tes:648 (648.0 B)
提前致谢,如果有什么不清楚的话,请询问!