Ubuntu 14.04 VirtualBox 來賓無法 ping 通外部世界

Ubuntu 14.04 VirtualBox 來賓無法 ping 通外部世界

關於伺服器故障的詢問:https://serverfault.com/questions/706488/ubuntu-14-04-virtualbox-guest-unable-to-ping-outside-world但作為題外話暫時擱置:

我有一個 Ubuntu 14.04 虛擬機在我的家庭網路上的 Ubuntu 14.04 主機上運行,主機可以完全正常存取網路和互聯網,並且來賓可以 ping 網路上的裝置並被 ping 到 - 但是它無法 ping(或curl)外部世界(即Google):

ptinkler@ptinkler-dev:~$ ping www.google.com
PING www.google.com (216.58.208.68) 56(84) bytes of data.
From ptinkler-dev.home (192.168.1.75) icmp_seq=1 Destination Host Unreachable
From ptinkler-dev.home (192.168.1.75) icmp_seq=2 Destination Host Unreachable
From ptinkler-dev.home (192.168.1.75) icmp_seq=3 Destination Host Unreachable
^C
--- www.google.com ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3014ms

我嘗試過橋接和 NAT 適配器,並且虛擬機在我的工作網路上運作良好,這讓我認為這可能是我的家庭網路路由器的問題。

編輯:

sysctl net.ipv4.ip_forward返回 0,但將其設為 1 並沒有什麼區別。

iptables -L -n -v回來了:

ptinkler@ptinkler-dell-xps:~$ iptables -L -n -v
modprobe: ERROR: could not insert 'ip_tables': Operation not permitted
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded

主持人:

wlan0     Link encap:Ethernet  HWaddr c8:f7:33:da:68:21  
          inet addr:192.168.1.72  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::caf7:33ff:feda:6821/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:248973 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160935 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:233346198 (233.3 MB)  TX bytes:22586578 (22.5 MB)

客人:

eth0      Link encap:Ethernet  HWaddr 08:00:27:31:7d:f6  
          inet addr:192.168.1.75  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe31:7df6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1349 errors:0 dropped:0 overruns:0 frame:0
          TX packets:687 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:144462 (144.4 KB)  TX bytes:50305 (50.3 KB)
          Interrupt:19 Base address:0xd020 

相關內容