自从升级到 11.10 以来,我遇到了很多网络问题
我们公司有 3 台电脑升级到了 11.10。每台电脑都有网络问题。其他电脑使用的是 Ubutun 11.04,运行正常。
网络问题不是经常发生的,有时重启后就可以正常工作。但如果重启后出现问题,我就会继续出现。例如,我们有:
- 连接问题:流音乐无法播放超过 30 秒,许多 AJAX 请求无法播放。
- 请求网页时出错,浏览器(firefox、chromium)找不到主机
- 请求 /etc/hosts 主机的网页时经常出错
- ssh 或 scp 出错,显示消息:no root to host
- svn 上出现错误。
我们已经尝试过:
- 停用 IP v6
- 安装 Wicd 而不是“网络管理器”
- 用静态数据替换 /etc/resolv.conf
- ETC。
有人有想法吗?
多谢 !
再见,托马斯。
[编辑] 添加一些硬件信息
sudo lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 82P965/G965 Memory Controller Hub [8086:29a0] (rev 02)
00:01.0 PCI bridge [0604]: Intel Corporation 82P965/G965 PCI Express Root Port [8086:29a1] (rev 02)
00:02.0 VGA compatible controller [0300]: Intel Corporation 82G965 Integrated Graphics Controller [8086:29a2] (rev 02)
00:02.1 Display controller [0380]: Intel Corporation 82G965 Integrated Graphics Controller [8086:29a3] (rev 02)
00:19.0 Ethernet controller [0200]: Intel Corporation 82562V 10/100 Network Connection [8086:104c] (rev 02)
00:1a.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 [8086:2834] (rev 02)
00:1a.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 [8086:2835] (rev 02)
00:1a.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 [8086:283a] (rev 02)
00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 02)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 [8086:283f] (rev 02)
00:1d.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 [8086:2830] (rev 02)
00:1d.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 [8086:2831] (rev 02)
00:1d.2 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 [8086:2832] (rev 02)
00:1d.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 [8086:2836] (rev 02)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev f2)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801HH (ICH8DH) LPC Interface Controller [8086:2812] (rev 02)
00:1f.2 RAID bus controller [0104]: Intel Corporation 82801 SATA RAID Controller [8086:2822] (rev 02)
00:1f.3 SMBus [0c05]: Intel Corporation 82801H (ICH8 Family) SMBus Controller [8086:283e] (rev 02)
--
sudo lshw -class network
*-network
description: Ethernet interface
product: 82562V 10/100 Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eth0
version: 02
serial: 00:19:d1:47:e4:da
size: 100Mbit/s
capacity: 100Mbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=1.3.10-k2 duplex=full firmware=1.1-2 ip=192.168.2.166 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:42 memory:dfde0000-dfdfffff memory:dfddb000-dfddbfff ioport:ecc0(size=32)
答案1
这似乎是 Linux 内核的一个错误。
我们回滚到 2.6.38,一切又恢复正常了。
为此,我们只需安装了 Grub Customizer [法语链接]
答案2
我有关于我们网络问题的消息。
这似乎是 Linux 内核 >= 3.0.0 的一个 icmp 重定向错误。
内核从 ICMP 重定向消息向 ARP 表中添加条目,但实际上不应该这样做。
解决方案是:
- 编辑 /etc/sysctl.conf 以添加:
net.ipv4.conf.all.accept_redirects=0
net.ipv4.conf.default.accept_redirects=0 - 重启