你好,这是我的 ifconfig 输出:
eth0 Link encap:Ethernet HWaddr 50:46:5d:44:5e:fe
inet addr:10.0.0.6 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::5246:5dff:fe44:5efe/64 Scope:Link
UP BROADCAST RUNNING 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:19
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:7874 errors:0 dropped:0 overruns:0 frame:0
TX packets:7874 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1236727 (1.2 MB) TX bytes:1236727 (1.2 MB)
wlan0 Link encap:Ethernet HWaddr 60:36:dd:97:4a:f0
inet6 addr: fe80::6236:ddff:fe97:4af0/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5061 (5.0 KB) TX bytes:9874 (9.8 KB)
可以看到eth0下没有数据包。如果我尝试监视以太网活动,该图根本不会执行任何操作。如果我用 wifi 尝试一下,效果就很好。
我连接到互联网的方式是:路由器-->交换机-->我的以太网端口。我运行 Xubuntu 14.04。
编辑:
IP路由:
default via 10.0.0.138 dev eth0 proto static
10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.6 metric 1
路线:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.0.138 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 * 255.255.255.0 U 1 0 0 eth0
我可以 ping 通 10.0.0.138
答案1
OK 这个问题的解决方案是将内核从 3.13 升级到 3.14。
非常感谢 @garethTheRed 引导我找到这个解决方案。
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.1-trusty/linux-headers-3.14.1-031401_3.14.1-031401.201404141220_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.1-trusty/linux-headers-3.14.1-031401-generic_3.14.1-031401.201404141220_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.1-trusty/linux-image-3.14.1-031401-generic_3.14.1-031401.201404141220_amd64.deb
sudo dpkg -i linux-headers-3.14.1-*.deb linux-image-3.14.1-*.deb
sudo reboot