![Ubuntu 服务器无法连接到互联网;外网无法连接到 Ubuntu 服务器](https://linux22.com/image/993334/Ubuntu%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%97%A0%E6%B3%95%E8%BF%9E%E6%8E%A5%E5%88%B0%E4%BA%92%E8%81%94%E7%BD%91%EF%BC%9B%E5%A4%96%E7%BD%91%E6%97%A0%E6%B3%95%E8%BF%9E%E6%8E%A5%E5%88%B0%20Ubuntu%20%E6%9C%8D%E5%8A%A1%E5%99%A8%20.png)
好的,问题就在这里。升级到 16.04 后,我的 Ubuntu 服务器与外界失去了所有连接。它通过以太网连接到调制解调器,端口为 21、22、80、25565。路由器和 Box 上的防火墙都已禁用,我尝试了多个 DNS 服务器。我可以重新映像服务器,但我试图避免这种情况。我重置了网卡,重新启动了机器,重新启动了路由器和调制解调器。
eth0 Link encap:Ethernet HWaddr 00:1c:23:e2:bb:ca
inet addr:10.0.0.124 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: 2601:45:8100:3944:21c:23ff:fee2:bbca/64 Scope:Global
inet6 addr: fe80::21c:23ff:fee2:bbca/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1592832 errors:0 dropped:182 overruns:0 frame:0
TX packets:1607356 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:176241490 (176.2 MB) TX bytes:381500041 (381.5 MB)
Interrupt:16
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:48585 errors:0 dropped:0 overruns:0 frame:0
TX packets:48585 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:15182251 (15.1 MB) TX bytes:15182251 (15.1 MB)
# The loopback network interface
auto lo
iface lo net loopback
#The primary network interface
auto eth0
iface eth0 inet static
address 10.0.0.124
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 8.8.8.8 8.8.4.4
答案1
更换网卡后,服务器开始正常运行。原来是电源浪涌导致芯片烧坏。