无法在 ubuntu 12.04 上访问互联网

无法在 ubuntu 12.04 上访问互联网

我最近安装了 Ubuntu 12.04。现在无法访问互联网(有线)。我尝试了更新 IP 地址等方法,但似乎不起作用。它可以识别局域网电缆是否插入,但我仍然无法访问互联网。任何帮助都将不胜感激。

以下是命令的输出:

$ ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0f:fe:59:71:3e  
          inet6 addr: fe80::20f:feff:fe59:713e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1682 errors:0 dropped:0 overruns:0 frame:0
          TX packets:389 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:139639 (139.6 KB)  TX bytes:102684 (102.6 KB)
          Interrupt:19 Memory:f0400000-f0420000 

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:2688 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2688 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:219840 (219.8 KB)  TX bytes:219840 (219.8 KB)

$ route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

$ lspci -nnk | grep -iEA3 "(network|ethernet)"

00:19.0 Ethernet controller [0200]: Intel Corporation 82566DM Gigabit Network Connection [8086:104a] (rev 02)
    Subsystem: Hewlett-Packard Company Device [103c:2800]
    Kernel driver in use: e1000e
    Kernel modules: e1000e

答案1

类型Ctrl+Alt+T和类型echo on | sudo tee /sys/class/net/eth0/device/power/control

之后,注销你的机器,拔出以太网电缆,然后在登录后重新插入。这应该有效

相关内容