检测到无线,但无法连接。以太网可以工作。如何更正无线地址?

检测到无线,但无法连接。以太网可以工作。如何更正无线地址?

我正在使用有线互联网运行 Ubuntu 14.04,我的无线网络被检测到并连接,但我无法连接到互联网。我知道问题出在我的计算机上,因为其他计算机可以正常连接到同一路由器。我也可以通过以太网正常连接。

以下是一些值得注意的测试:

ping 192.168.0.105在数据包丢失率为 0% 的情况下可以工作,但ping 192.168.0.1数据包丢失率为 100%。

当我插入以太网时,ping 192.168.0.1数据包丢失率为 0%。

我的无线名称是tg,路由器 IP 是192.168.0.1(我可以在此处输入用户名和密码)。我怀疑我需要将无线地址从 更改为192.168.0.105192.168.0.1关于如何继续,有什么建议吗?

额外信息:

[lucas@lucas-ThinkPad-W520]/home/lucas$ iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11abgn  ESSID:"tg"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:02:6F:83:F8:F4   
          Bit Rate=1 Mb/s   Tx-Power=15 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=62/70  Signal level=-48 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:52  Invalid misc:166   Missed beacon:0


[lucas@lucas-ThinkPad-W520]/home/lucas$ ifconfig
eth0      Link encap:Ethernet  HWaddr f0:de:f1:b2:53:53  
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::f2de:f1ff:feb2:5353/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:980003 errors:0 dropped:0 overruns:0 frame:0
          TX packets:498384 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1320506168 (1.3 GB)  TX bytes:59780591 (59.7 MB)
          Interrupt:20 Memory:f3a00000-f3a20000 

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:21927 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21927 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1781719 (1.7 MB)  TX bytes:1781719 (1.7 MB)

wlan0     Link encap:Ethernet  HWaddr 24:77:03:29:8f:dc  
          inet addr:192.168.0.105  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2677:3ff:fe29:8fdc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11828 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15444 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4855662 (4.8 MB)  TX bytes:2250585 (2.2 MB)


[lucas@lucas-ThinkPad-W520]/home/lucas$ lspci -nn | grep 0280
03:00.0 Network controller [0280]: Intel Corporation Centrino Ultimate-N 6300 [8086:4238]
 (rev 3e)                                                                               



[lucas@lucas-ThinkPad-W520]/home/lucas$ rfkill list
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: tpacpi_bluetooth_sw: Bluetooth
        Soft blocked: no
        Hard blocked: no
2: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no

拔下以太网:

[lucas@lucas-ThinkPad-W520]/home/lucas$ route -n | grep UG
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0

插入以太网:

[lucas@lucas-ThinkPad-W520]/home/lucas$ route -n | grep UG
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0




[lucas@lucas-ThinkPad-W520]/home/lucas$ nm-tool

NetworkManager Tool

State: connected (global)

- Device: wlan0  [tg] ----------------------------------------------------------
  Type:              802.11 WiFi
  Driver:            iwlwifi
  State:             connected
  Default:           no
  HW Address:        24:77:03:29:8F:DC

  Capabilities:
    Speed:           52 Mb/s

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

  Wireless Access Points (* = current AP)
    tatum:           Infra, 40:8B:07:D8:A5:04, Freq 2437 MHz, Rate 54 Mb/s, Strength 

42 W
    PA WPA2
        ums:             Infra, 00:20:A6:72:52:BF, Freq 2437 MHz, Rate 54 Mb/s, Strength 59
        Alpha 40:        Infra, 28:CF:E9:86:59:5D, Freq 5260 MHz, Rate 54 Mb/s, Strength 30 W
PA WPA2
    thepromiselan:   Infra, 58:6D:8F:51:E5:54, Freq 2452 MHz, Rate 54 Mb/s, Strength 34 $
PA WPA2
    xfinitywifi:     Infra, 06:1D:D5:84:27:A0, Freq 2437 MHz, Rate 54 Mb/s, Strength 52
    *tg:             Infra, 00:02:6F:83:F8:F4, Freq 2462 MHz, Rate 54 Mb/s, Strength 73 W
PA2
    ums:             Infra, 00:20:A6:A1:9F:25, Freq 2452 MHz, Rate 54 Mb/s, Strength 44
    BRIAN-PC_Network:Infra, 20:AA:4B:DD:93:D6, Freq 2462 MHz, Rate 54 Mb/s, Strength 35 W
PA2
    HOME-C0F8:       Infra, 44:32:C8:D2:C0:F8, Freq 2412 MHz, Rate 54 Mb/s, Strength 40 W
PA WPA2                                                                                 
    abcsexy:         Infra, 28:28:5D:27:5D:85, Freq 2412 MHz, Rate 54 Mb/s, Strength 27 W
PA WPA2                                                                                 

  IPv4 Settings:
    Address:         192.168.0.105
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.0.1

    DNS:             192.168.0.1


- Device: eth0  [Wired connection 1] -------------------------------------------
  Type:              Wired
  Driver:            e1000e
  State:             connected
  Default:           yes
  HW Address:        F0:DE:F1:B2:53:53

  Capabilities:
    Carrier Detect:  yes
    Speed:           100 Mb/s

  Wired Properties
    Carrier:         on

  IPv4 Settings:
    Address:         192.168.0.100
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.0.1

    DNS:             192.168.0.1

答案1

安装以太网接口

sudo ifconfig eth0 up

获取 IP。使用以下任何一种方法(只要有效)

sudo dhclient eth0
sudo dhclient3 eth0
sudo dhcpcd eth0

相关内容