您好,这是我的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 route:
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
解决方法:
好这个问题的解决方案是将内核从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