我最近在我的 Windows 7 主机中安装了 Kali Linux 版本的 Linux 作为虚拟机。
设置完Linux后,我打开VM -> Removable Devies -> Network Adapter -> Settings
并启用了以下配置,
Connected
Connected at Power on
Bridge: Connected directly to a physical Network
之后,当我运行ifconfig
命令时,我看到以下输出,
root@kali:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:34:a2:c1
inet addr:192.168.0.130 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe34:a2c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13782 errors:0 dropped:0 overruns:0 frame:0
TX packets:3253 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9988969 (9.5 MiB) TX bytes:370134 (361.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1680 (1.6 KiB) TX bytes:1680 (1.6 KiB)
如果我尝试ping
从主机访问我的来宾操作系统,我会得到,
C:\Users\Alik>ping 192.168.0.130 -t
Pinging 192.168.0.130 with 32 bytes of data:
Reply from 192.168.0.5: Destination host unreachable.
Reply from 192.168.0.5: Destination host unreachable.
Reply from 192.168.0.5: Destination host unreachable.
Reply from 192.168.0.5: Destination host unreachable.
Ping statistics for 192.168.0.130:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Control-C
^C
仅当我没有在来宾操作系统中执行任何操作时才会出现这种情况。但是,一旦我在来宾操作系统中执行任何活动,我就能够成功 ping 来宾操作系统。
例如,
在来宾操作系统中,我打开浏览器并访问 google.com,一旦 google 加载,我就开始在主机操作系统中收到 ping 回复,
Pinging 192.168.0.130 with 32 bytes of data:
Reply from 192.168.0.5: Destination host unreachable
Reply from 192.168.0.5: Destination host unreachable
Reply from 192.168.0.5: Destination host unreachable
Reply from 192.168.0.5: Destination host unreachable
Reply from 192.168.0.5: Destination host unreachable
Reply from 192.168.0.5: Destination host unreachable
Reply from 192.168.0.5: Destination host unreachable
Reply from 192.168.0.5: Destination host unreachable
Reply from 192.168.0.5: Destination host unreachable
Reply from 192.168.0.130: bytes=32 time=2506ms TTL=6
Reply from 192.168.0.130: bytes=32 time<1ms TTL=64
Reply from 192.168.0.130: bytes=32 time=1ms TTL=64
Reply from 192.168.0.130: bytes=32 time<1ms TTL=64
Reply from 192.168.0.130: bytes=32 time<1ms TTL=64
Reply from 192.168.0.130: bytes=32 time<1ms TTL=64
Reply from 192.168.0.130: bytes=32 time<1ms TTL=64
我还尝试static
通过编辑在来宾操作系统中使用 IP 地址/etc/network/interfaces
,但问题仍然相同。
ipconfig
这是我在主机中的输出,
Windows IP Configuration
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . : Home
Link-local IPv6 Address . . . . . : fe80::f49a:847d:4877:86c2%11
IPv4 Address. . . . . . . . . . . : 192.168.0.5
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
Ethernet adapter VMware Network Adapter VMnet1:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::7cb6:45ef:7ca0:cb22%19
Autoconfiguration IPv4 Address. . : 169.254.203.34
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
Ethernet adapter VMware Network Adapter VMnet8:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::c57e:f209:9e2:92eb%20
IPv4 Address. . . . . . . . . . . : 192.168.217.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Tunnel adapter isatap.Home:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : Home
Tunnel adapter isatap.{64A5DB56-CAC6-45A4-9569-E52762E8306D}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.{760AD03F-B3C0-4297-AF67-031BF0F4B681}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
谁能指导我可能是什么问题?为什么来宾操作系统在不执行任何互联网操作时会超时?