Ubuntu 12.04 机器上的无线网络

Ubuntu 12.04 机器上的无线网络

我的机器是双启动的 Windows 7 和 Ubuntu 12.04。一台装有 Ubuntu 12.04 的新笔记本电脑让我重新配置了调制解调器。现在我在 Windows 和笔记本电脑上都可以连接互联网,但在 Ubuntu 上却不行。启动后,无线连接会自动建立,但我无法 ping 192.168.1.1。

我迄今已做了什么。

  • 确保 Windows 和 Ubuntu 上的 IP 地址相同
  • /etc/resolv.conf在 中添加名称服务器/etc/resolvconf/resolv.conf.d/head
  • sudo resolvconf -u
  • sudo service network-manager restart

仍然没有连接。

ifconfig -a输出:

eth0      Link encap:Ethernet  HWaddr 70:71:bc:3c:3d:bc  
          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:20 Memory:fb100000-fb120000 

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

wlan0     Link encap:Ethernet  HWaddr 1c:bd:b9:81:3a:8f  
          inet addr:192.168.1.85  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::1ebd:b9ff:fe81:3a8f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:742 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:89112 (89.1 KB)

nm-tool输出:

NetworkManager Tool

State: connected (global)

Device: wlan0 [www] --------------------------------------------------------- Type: 802.11 WiFi Driver: rt2800usb State: connected Default: yes HW Address: 1C:BD:B9:81:3A:8F

Capabilities: Speed: 36 Mb/s

Wireless Properties WEP Encryption: yes WPA Encryption: yes WPA2 Encryption: yes

Wireless Access Points (* = current AP) *www: Infra, 00:FD:07:9C:78:5B, Freq 2412 MHz, Rate 54 Mb/s, Strength 63 WEP

IPv4 Settings: Address: 192.168.1.85 Prefix: 24 (255.255.255.0) Gateway: 192.168.1.1

DNS: 59.185.0.23

Device: eth0 ----------------------------------------------------------------- Type: Wired Driver: e1000e State: unavailable Default: no HW Address: 70:71:1D:3C:3D:BC

Capabilities: Carrier Detect: yes

Wired Properties Carrier: off

route输出:

Kernel IP routing table

Destination      Gateway       Genmask         Flags Metric Ref      Use  Iface


default         192.168.1.1     0.0.0.0         UG    0      0        0   wlan0

link-local      *               255.255.0.0     U     1000   0        0   wlan0

192.168.1.0     *               255.255.255.0   U     2      0        0   wlan0

lsusb输出:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 006: ID 1c4f:0003 SiGma Micro HID controller
Bus 001 Device 004: ID 046d:c31d Logitech, Inc. 
Bus 001 Device 007: ID 07d1:3c16 D-Link System DWA-125 Wireless N 150 Adapter(rev.A2) [Ralink RT3070]    
Bus 002 Device 005: ID 0951:162d Kingston Technology 

我检查了一下/etc,发现没有无线文件夹。我安装了 DWA-125 的驱动程序,但仍然没有连接。

相关内容