ideaPad U530 升级至 14.04 后无法连接互联网(以太网或 WiFi)

ideaPad U530 升级至 14.04 后无法连接互联网(以太网或 WiFi)

我目前无法在新升级的 Ubuntu 14.04 上连接到互联网。网络管理器能够识别无线网络,并且可以检测到我何时插入以太网连接,但尝试连接时似乎总是超时。我在工作和家中都尝试过,结果相同。

以下是输出的链接dmesg点击这里

以下是一些诊断:

用户@主机:~$ sudo lshw -C 网络

  *-network               
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: eth0
       version: 10
       serial: 08:9e:01:da:a1:e3
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.038.00-NAPI duplex=half latency=0 link=no multicast=yes port=twisted pair speed=10Mbit/s
       resources: irq:60 ioport:4000(size=256) memory:b2504000-b2504fff memory:b2500000-b2503fff
  *-network
       description: Wireless interface
       product: Wireless 7260
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: 73
       serial: 0c:8b:fd:4a:af:79
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=3.13.0-36-generic firmware=25.222.9.0 latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
       resources: irq:62 memory:b2400000-b2401fff

用户@主机:~$ ifconfig

eth0      Link encap:Ethernet  HWaddr 08:9e:01:da:a1:e3  
          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:60 Base address:0x8000 

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

wlan0     Link encap:Ethernet  HWaddr 0c:8b:fd:4a:af:79  
          inet6 addr: fe80::e8b:fdff:fe4a:af79/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:106 errors:0 dropped:0 overruns:0 frame:0
          TX packets:275 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:43446 (43.4 KB)  TX bytes:50008 (50.0 KB)

用户@主机:~$ route -n

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

用户@主机:~$ lspci -vnn |复制代码

01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
Kernel driver in use: r8168

用户@主机:~$ lspci -vnn |复制代码

02:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b2] (rev 73)
Subsystem: Intel Corporation Wireless-N 7260 [8086:4262]

用户@主机:~$ vim /etc/network/interfaces

auto lo
iface lo inet loopback

用户@主机:~$ vim /etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8

用户@主机:~$ vim /etc/hosts

127.0.0.1       localhost
127.0.1.1       Host

# The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters

用户@主机:~$ vim /etc/NetworkManager/NetworkManager.conf

[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=true

我觉得我已经尝试了所有方法,没有其他选择了。如果有人知道接下来该怎么办,请告诉我。

非常感谢!

答案1

您可以发布输出吗dmesg

您可以尝试修改 /etc/network/interfaces 文件以包含以下内容:

# The primary network interface
auto eth0 
iface eth0 inet dhcp

就在环回网络接口条目之后。理论上,如果路由器启用了 DHCP,这应该允许自动分配 IP 地址。

进行更改后,运行

sudo /etc/init.d/networking restart

相关内容