我的虚拟机内有互联网连接,但一周多没用后,我就没有互联网连接了。(类似问题对于在 ask ubuntu 上发布的问题)
我想到的是:
- 重置路由器
- 在我的两个虚拟机之间启用串行端口
我按照 stack-exchange 中其他答案建议的步骤操作,但都不起作用。(当我切换到 NAT 时,我有互联网连接,但出于调试目的,我必须拥有它,因为bridge-adapter
每个虚拟机都有不同的 ip
主机:Win10
以下是虚拟机的设置:(虚拟机运行的是 Linux 4.17.0v 内核)
ifconfig
eth0 Link encap: Ethernet HWaddr 08:00:27:dd:5d:7f
inet6 addr: fe80:a00:27ff:fedd:5d7f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3847 (3.8 KB) TX bytes:4962 (4.9 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mast:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:151 errors:0 dropped:0 overruns:0 frame:0
TX packets:151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10965 (10.9 KB) TX bytes:10965 (10.9 KB)
ipconfig (in host)
Windows IP Configuration
Ethernet adapter Ethernet:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Local Area Connection* 1:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Local Area Connection* 11:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::18dd:2b82:c82:2f51%19
IPv4 Address. . . . . . . . . . . : 192.168.1.21
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :