Ubuntu 无法连接到互联网

Ubuntu 无法连接到互联网

因此我无法使用我的 Ubuntu 操作系统进行连接,但我可以用 Windows 上网。我可以用谷歌上网,但只要我尝试其他网站,它就会崩溃

我跑了ifconfig,得到了以下结果

eth0      Link encap:Ethernet  HWaddr 90:2b:34:13:12:a3  
          inet addr:130.215.246.212  Bcast:130.215.246.255  Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST  MTU:922  Metric:1
          RX packets:30 errors:0 dropped:30 overruns:0 frame:30
          TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5126 (5.1 KB)  TX bytes:9875 (9.8 KB)
          Interrupt:41 Base address:0xc000 

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:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
~$ host google.com

google.com has address 74.125.225.0
google.com has address 74.125.225.6
google.com has address 74.125.225.5
google.com has address 74.125.225.7
google.com has address 74.125.225.3
google.com has address 74.125.225.2
google.com has address 74.125.225.14
google.com has address 74.125.225.4
google.com has address 74.125.225.1
google.com has address 74.125.225.8
google.com has address 74.125.225.9
google.com has IPv6 address 2607:f8b0:4009:806::100e
google.com mail is handled by 30 alt2.aspmx.l.google.com.
google.com mail is handled by 20 alt1.aspmx.l.google.com.
google.com mail is handled by 50 alt4.aspmx.l.google.com.
google.com mail is handled by 10 aspmx.l.google.com.
google.com mail is handled by 40 alt3.aspmx.l.google.com.
~$ nm-tool

NetworkManager Tool
State: connected (global)
- Device: eth0  [WPI-Wired] ----------------------------------------------------
  Type:              Wired
  Driver:            r8169
  State:             connected
  Default:           yes
  HW Address:        90:2B:34:13:12:A3

  Capabilities:
    Carrier Detect:  yes
    Speed:           1000 Mb/s

  Wired Properties
    Carrier:         on

  IPv4 Settings:
    Address:         130.215.246.212
    Prefix:          25 (255.255.255.128)
    Gateway:         130.215.246.129

    DNS:             130.215.32.18
    DNS:             130.215.39.18
    DNS:             130.215.5.18

然后我尝试运行一些程序并得到

~$ host google.com
;; connection timed out; no servers could be reached

任何帮助都将不胜感激

答案1

尝试不同的 DNS 设置:8.8.8.8 和 8.8.4.4(此处有简短指南,可能有点过时,但应该可以起作用:http://ubuntuforums.org/showthread.php?t=2078398

另外,请确保您的子网正确。我日常工作中管理着大量网络,子网输入错误可能会导致各种问题。

相关内容