互联网连接不再起作用

互联网连接不再起作用

从今天早上开始我就无法连接互联网。但是,我可以访问本地网络,其他设备访问互联网也没有问题。我尝试重新启动,甚至关闭笔记本电脑一段时间,两个网络接口(eth0 和 wlan0)上都是同样的情况。我甚至尝试了另一个互联网连接。

预先感谢您的帮助。

跟踪路径:

% tracepath 192.168.1.1        
 1?: [LOCALHOST]                                         pmtu 1500
 1:  forumanalogue.fr                                      1.592ms reached
 1:  forumanalogue.fr                                      1.359ms reached
     Resume: pmtu 1500 hops 1 back 1
% tracepath 8.8.8.8            
 1?: [LOCALHOST]                                         pmtu 1500
 1:  no reply
 2:  no reply
 3:  no reply
 4:  no reply
 5:  no reply
 6:  no reply
 7:  no reply
 8:  no reply
 9:  no reply
10:  no reply
11:  no reply
12:  no reply
13:  no reply
14:  no reply
15:  no reply
16:  no reply
17:  no reply
18:  no reply
19:  no reply
20:  no reply
21:  no reply
22:  no reply
23:  no reply
24:  no reply
25:  no reply
26:  no reply
27:  no reply
28:  no reply
29:  no reply
30:  no reply
     Too many hops: pmtu 1500
     Resume: pmtu 1500

更多信息:

% sudo lshw -C network
  *-network              
       description: Ethernet interface
       product: NetXtreme BCM57765 Gigabit Ethernet PCIe
       vendor: Broadcom Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: eth0
       version: 10
       serial: 68:5b:35:96:f6:e1
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 firmware=57765-v1.37 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:16 memory:a0400000-a040ffff memory:a0410000-a041ffff
  *-network
       description: Wireless interface
       product: BCM4331 802.11a/b/g/n
       vendor: Broadcom Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: 02
       serial: a8:86:dd:93:41:6c
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=wl0 driverversion=6.30.223.248 (r487574) ip=192.168.1.5 latency=0 multicast=yes wireless=IEEE 802.11abg
       resources: irq:17 memory:a0600000-a0603fff


% sudo ifconfig
eth0      Link encap:Ethernet  HWaddr 68:5b:35:96:f6:e1  
          UP BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          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:5074 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5074 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1602881 (1.6 MB)  TX bytes:1602881 (1.6 MB)

wlan0     Link encap:Ethernet  HWaddr a8:86:dd:93:41:6c  
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::aa86:ddff:fe93:416c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23639 errors:0 dropped:0 overruns:0 frame:1319
          TX packets:20794 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28913966 (28.9 MB)  TX bytes:2315442 (2.3 MB)
          Interrupt:17
% cat  /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

奇怪?wlan0 在哪里?虽然我可以访问本地网络。

% sudo nm-tool

NetworkManager Tool

State: connected (global)

- Device: 30:76:6F:0A:8D:02 ----------------------------------------------------
  Type:              Bluetooth
  Driver:            bluez
  State:             disconnected
  Default:           no

  Capabilities:


- Device: wlan0  [Bbox-A7B38DFF-5GHz] ------------------------------------------
  Type:              802.11 WiFi
  Driver:            wl
  State:             connected
  Default:           yes
  HW Address:        A8:86:DD:93:41:6C

  Capabilities:
    Speed:           300 Mb/s

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points (* = current AP)
    Bbox-A7B38DFF:   Infra, 5C:A3:9D:85:40:98, Freq 2412 MHz, Rate 54 Mb/s, Strength 100 WPA WPA2
    Bbox-0A2E264B-5GHz: Infra, 64:7C:34:33:4C:30, Freq 5180 MHz, Rate 54 Mb/s, Strength 60 WPA WPA2
    Bbox-0A2E264B:   Infra, 64:7C:34:33:4C:2C, Freq 2462 MHz, Rate 54 Mb/s, Strength 55 WPA WPA2
    SFR-0313:        Infra, FC:B4:E6:3B:0A:C1, Freq 5240 MHz, Rate 54 Mb/s, Strength 39 WPA WPA2
    SFR-0313:        Infra, 00:37:B7:51:03:19, Freq 2412 MHz, Rate 54 Mb/s, Strength 45 WPA WPA2
    Bbox-233A6BC7:   Infra, E8:BE:81:AF:55:40, Freq 2412 MHz, Rate 54 Mb/s, Strength 42 WPA WPA2
    freebox_PVAGJE:  Infra, 00:24:D4:6B:77:C4, Freq 2432 MHz, Rate 54 Mb/s, Strength 27 WPA
    SFR_80A0:        Infra, 24:95:04:C9:80:A4, Freq 2437 MHz, Rate 54 Mb/s, Strength 27 WPA
    SFR WiFi Mobile: Infra, D2:95:04:C9:80:A7, Freq 2437 MHz, Rate 54 Mb/s, Strength 25 WPA2 Enterprise
    FreeWifi_secure: Infra, 00:24:D4:E6:E2:96, Freq 2447 MHz, Rate 54 Mb/s, Strength 24 WPA2 Enterprise
    Bouygues Telecom Wi-Fi: Infra, 64:7C:34:33:4C:2D, Freq 2462 MHz, Rate 54 Mb/s, Strength 55
    SFR WiFi FON:    Infra, D2:95:04:C9:80:A5, Freq 2437 MHz, Rate 54 Mb/s, Strength 25
    LG-E460_6416:    Infra, 9A:D6:F7:ED:AA:63, Freq 2412 MHz, Rate 54 Mb/s, Strength 68 WPA2
    Bbox-233A6BC7-5GHz: Infra, E8:BE:81:AF:55:44, Freq 5200 MHz, Rate 54 Mb/s, Strength 35 WPA WPA2
    FreeWifi_secure: Infra, 00:24:D4:6B:77:C6, Freq 2432 MHz, Rate 54 Mb/s, Strength 27 WPA2 Enterprise
    FreeWifi:        Infra, 00:24:D4:6B:77:C5, Freq 2432 MHz, Rate 54 Mb/s, Strength 27
    FreeWifi:        Infra, 00:24:D4:E6:E2:95, Freq 2447 MHz, Rate 54 Mb/s, Strength 22
    Freebox-AF55C5:  Infra, 00:24:D4:E6:E2:94, Freq 2447 MHz, Rate 54 Mb/s, Strength 19 WPA
    DOC:             Infra, F4:CA:E5:87:F7:3C, Freq 2462 MHz, Rate 54 Mb/s, Strength 20 WPA
    Bbox-AA1A1FAE:   Infra, A0:1B:29:B1:59:20, Freq 2412 MHz, Rate 54 Mb/s, Strength 17 WPA WPA2
    PIERREBRUN:      Infra, 80:EA:96:F3:60:9A, Freq 2412 MHz, Rate 54 Mb/s, Strength 32 WPA WPA2
    *Bbox-A7B38DFF-5GHz: Infra, 5C:A3:9D:85:40:90, Freq 5180 MHz, Rate 54 Mb/s, Strength 72 WPA WPA2

  IPv4 Settings:
    Address:         192.168.1.5
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.1.254

    DNS:             127.0.0.1
    DNS:             192.168.1.8


- Device: eth0 -----------------------------------------------------------------
  Type:              Wired
  Driver:            tg3
  State:             unavailable
  Default:           no
  HW Address:        68:5B:35:96:F6:E1

  Capabilities:
    Carrier Detect:  yes

  Wired Properties
    Carrier:         off

答案1

在命令 iptables -L 奇怪地返回后,我发现文件 /etc/iptables/rules.v4 已损坏,因此我刷新规则 iptables -F 并添加正确的规则。

相关内容